File clutter-gtk.spec of Package clutter-gtk

#
# spec file for package clutter-gtk
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           clutter-gtk
Version:        1.8.0
Release:        0
Summary:        GTK+ integration for Clutter
License:        LGPL-2.1+
Group:          System/Libraries
Url:            http://clutter-project.org/
Source0:        http://download.gnome.org/sources/clutter-gtk/1.8/%{name}-%{version}.tar.xz
Source99:       baselibs.conf
BuildRequires:  gobject-introspection-devel
BuildRequires:  gtk-doc
BuildRequires:  libtool
BuildRequires:  pkgconfig(clutter-1.0) >= 1.23.7
BuildRequires:  pkgconfig(gdk-3.0)
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.19.4
BuildRequires:  pkgconfig(gtk+-x11-3.0) >= 3.6.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Clutter is an open source software library for creating fast, visually
rich and animated graphical user interfaces.

Clutter GTK+ enables the use of GTK+ with Clutter.

%package -n libclutter-gtk-1_0-0
Summary:        GTK+ integration for Clutter
Group:          System/Libraries
Recommends:     %{name}-lang
# To make lang package installable
Provides:       %{name} = %{version}

%description -n libclutter-gtk-1_0-0
Clutter is an open source software library for creating fast, visually
rich and animated graphical user interfaces.

Clutter GTK+ enables the use of GTK+ with Clutter.

%package -n typelib-1_0-GtkClutter-1_0
Summary:        GTK+ integration for Clutter -- Introspection bindings
Group:          System/Libraries

%description -n typelib-1_0-GtkClutter-1_0
Clutter is an open source software library for creating fast, visually
rich and animated graphical user interfaces.

Clutter GTK+ enables the use of GTK+ with Clutter.

This package provides the GObject Introspection bindings for Clutter
GTK+.

%package devel
Summary:        GTK+ integration for Clutter - Development Files
Group:          Development/Libraries/GNOME
Requires:       libclutter-gtk-1_0-0 = %{version}
Requires:       typelib-1_0-GtkClutter-1_0 = %{version}
Provides:       clutter-gtk-doc = %{version}
Obsoletes:      clutter-gtk-doc < %{version}

%description  devel
Clutter is an open source software library for creating fast, visually
rich and animated graphical user interfaces.

Clutter GTK+ enables the use of GTK+ with Clutter.

%lang_package
%prep
%setup -q

%build
%configure --disable-static \
           --enable-gtk-doc
make %{?_smp_mflags}

%check
make %{?_smp_mflags} check

%install
%makeinstall
%{__rm} %{buildroot}/%{_libdir}/*.la
%find_lang cluttergtk-1.0 %{?no_lang_C}

%post -n libclutter-gtk-1_0-0 -p /sbin/ldconfig

%postun -n libclutter-gtk-1_0-0 -p /sbin/ldconfig

%files -n libclutter-gtk-1_0-0
%defattr(-,root,root)
%doc README COPYING
%{_libdir}/*.so.*

%files -n typelib-1_0-GtkClutter-1_0
%defattr(-,root,root)
%{_libdir}/girepository-1.0/GtkClutter-1.0.typelib

%files devel
%defattr(-,root,root)
%{_libdir}/*.so
%{_includedir}/clutter-gtk-1.0/
%{_libdir}/pkgconfig/clutter-gtk-1.0.pc
%{_datadir}/gir-1.0/*.gir
%{_datadir}/gtk-doc/html/clutter-gtk-1.0/

%files lang -f cluttergtk-1.0.lang

%changelog
openSUSE Build Service is sponsored by