File clutter-gtk.spec of Package clutter-gtk

#
# spec file for package clutter-gtk
#
# Copyright (c) 2011 SUSE LINUX Products 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/
#

# norootforbuild

Summary:        GTK+ integration for Clutter

Name:           clutter-gtk
Version:        0.10.8
Release:        4.<RELEASE3>
License:        LGPLv2.1+
Group:          System/Libraries
Source0:        http://www.clutter-project.org/sources/clutter-gtk/0.6/%{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM clutter-fixes-from-git.patch vuntz@opensuse.org -- Taken from git, to fix build
Patch0:         clutter-fixes-from-git.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  clutter-devel
BuildRequires:  gobject-introspection-devel
BuildRequires:  gtk-doc
BuildRequires:  gtk2-devel
Url:            http://clutter-project.org/

%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-0_10-0
License:        LGPLv2.1+
Summary:        GTK+ integration for Clutter
Group:          System/Libraries
# Fix for 11.4: in 11.3, we had clutter-gtk 0.90.1 and upgrading to 11.4 will
# leave this package around. However, this means that the 0.90.1 introspection
# files will be used by default, since they have a higher version, and that's
# just plain wrong. So we have to conflict with the old package.
Conflicts:      libclutter-gtk-0_90-0 <= 0.90.1

%description -n libclutter-gtk-0_10-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 devel
License:        LGPLv2.1+
Summary:        GTK+ integration for Clutter - Development Files
Requires:       libclutter-gtk-0_10-0 = %{version}
Requires:       gtk2-devel
Requires:       clutter-devel
Provides:       clutter-gtk-doc = %{version}
Obsoletes:      clutter-gtk-doc < %{version}
Group:          Development/Libraries/GNOME

%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.

%prep
%setup -q
%patch0 -p1

%build
%configure --disable-static \
           --enable-gtk-doc
make %{?jobs:-j%jobs}

%check
make %{?jobs:-j%jobs} check

%install
%makeinstall
%{__rm} %{buildroot}/%{_libdir}/*.la

%post -n libclutter-gtk-0_10-0 -p /sbin/ldconfig

%postun -n libclutter-gtk-0_10-0 -p /sbin/ldconfig

%clean
rm -rf %{buildroot}

%files -n libclutter-gtk-0_10-0
%defattr(-,root,root)
%doc README COPYING ChangeLog
%{_libdir}/*.so.*
%{_libdir}/girepository-1.0/GtkClutter-0.10.typelib

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

%changelog
openSUSE Build Service is sponsored by