File clutter.spec of Package clutter
#
# spec file for package clutter (Version 0.8.0)
#
# Copyright (c) 2008 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: The clutter library
Name: clutter
Version: 0.8.0
Release: 5
License: LGPL v2.1 or later
Group: System/Libraries
Source0: http://www.clutter-project.org/sources/clutter/0.6/%{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM clutter-fixed.diff http://bugzilla.openedhand.com/show_bug.cgi?id=1038 -- hfiguiere@suse.de
Patch0: clutter-fixed.diff
# PATCH-FIX-UPSTREAM clutter-raise_rename.diff http://bugzilla.o-hand.com/show_bug.cgi?id=1308 -- hfiguiere@suse.de
Patch1: clutter-raise_rename.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: xorg-x11-devel xorg-x11-libXfixes-devel
BuildRequires: glib2-devel >= 2.14
BuildRequires: Mesa-devel gtk2-devel pango-devel xmlto
BuildRequires: gtk-doc >= 1.6
%if 0%{?suse_version} > 1020
BuildRequires: fdupes
%endif
Url: http://clutter-project.org/
%define prefix /usr
%define debug_package_requires libclutter-glx-0_8-0 = %{version}-%{release}
%description
Clutter is an open source software library for creating fast, visually
rich and animated graphical user interfaces.
%package -n libclutter-glx-0_8-0
License: LGPL v2.1 or later
Summary: The clutter library
Group: System/Libraries
%description -n libclutter-glx-0_8-0
Clutter is an open source software library for creating fast, visually
rich and animated graphical user interfaces.
%package devel
License: LGPL v2.1 or later
Summary: The clutter library (Development)
Requires: libclutter-glx-0_8-0 = %{version}
Requires: pango-devel
Requires: glib2-devel >= 2.14
Requires: gtk2-devel
Group: Development/Libraries/GNOME
%description devel
Clutter is an open source software library for creating fast, visually
rich and animated graphical user interfaces. This package contain the
files for development.
%package doc
License: LGPL v2.1 or later
Summary: The clutter library (Documentation)
Group: System/Libraries
%description doc
Clutter is an open source software library for creating fast, visually
rich and animated graphical user interfaces. This package contain the
documentation.
%prep
%setup -q
%patch0 -p1
%patch1
%build
#autoreconf -si
%configure --enable-gtk-doc
make %{?jobs:-j%jobs}
make %{?jobs:-j%jobs} check
%install
DESTDIR=$RPM_BUILD_ROOT make install
%if 0%{?suse_version} > 1020
%fdupes -s $RPM_BUILD_ROOT/%{_datadir}/gtk-doc/html
%fdupes $RPM_BUILD_ROOT
%endif
%post -n libclutter-glx-0_8-0 -p /sbin/ldconfig
%postun -n libclutter-glx-0_8-0 -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files -n libclutter-glx-0_8-0
%defattr(-,root,root)
%doc README COPYING ChangeLog
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root)
%{_libdir}/*.so
%{_libdir}/*.*a
%{_includedir}/clutter-0.8
%{_libdir}/pkgconfig/*.pc
%files doc
%defattr(-,root,root)
%{_datadir}/gtk-doc/html/clutter
%{_datadir}/gtk-doc/html/cogl
%changelog
* Thu Nov 27 2008 hfiguiere@suse.de
- patch tag for clutter-raise_rename.diff
* Mon Oct 27 2008 ro@suse.de
- fix compilation of testsuite by renaming "raise" to "raise_c"
* Wed Oct 22 2008 maw@suse.de
- Make debug packages require a specific %%{version}-%%{release}.
* Fri Aug 01 2008 ro@suse.de
- fix requires for debuginfo package
* Wed Jul 16 2008 hfiguiere@suse.de
- Upgrade to 0.8.0
* Large parts rewritten
* API changes.
* Fri Jul 04 2008 hfiguiere@suse.de
- Initial package