File clutter.spec of Package clutter
#
# spec file for package clutter
#
# 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/
#
Summary: The clutter library
Name: clutter
Version: 1.8.2
Release: 1
License: LGPLv2.1+
Url: http://clutter-project.org/
Group: System/Libraries
Source0: http://download.gnome.org/sources/clutter/1.8/%{name}-%{version}.tar.bz2
Source99: baselibs.conf
BuildRequires: fdupes
BuildRequires: xmlto
BuildRequires: pkgconfig(atk) >= 2.1.5
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(cogl-1.0) >= 1.8.0
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(gobject-2.0) >= 2.28.0
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(libdrm)
BuildRequires: pkgconfig(pangocairo)
BuildRequires: pkgconfig(pangoft2)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xcomposite)
BuildRequires: pkgconfig(xdamage)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xfixes)
BuildRequires: pkgconfig(xi)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Clutter is an open source software library for creating fast, visually
rich and animated graphical user interfaces.
%package -n libclutter-glx-1_0-0
License: LGPLv2.1+
Summary: The clutter library
Group: System/Libraries
Recommends: %{name}-lang = %{version}
# To make the lang package installable
Provides: %{name} = %{version}
%description -n libclutter-glx-1_0-0
Clutter is an open source software library for creating fast, visually
rich and animated graphical user interfaces.
%package devel
License: LGPLv2.1+
Summary: The clutter library (Development)
Group: Development/Libraries/GNOME
Requires: libclutter-glx-1_0-0 = %{version}
Provides: %{name}-doc = %{version}
Obsoletes: %{name}-doc < %{version}
%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.
%lang_package
%prep
%setup -q
%build
%configure \
--disable-static \
--enable-xinput \
--disable-conformance \
--enable-docs
make %{?_smp_mflags} V=1
%install
%makeinstall
%{__rm} %{buildroot}%{_libdir}/*.la
%find_lang clutter-1.0
%fdupes -s %{buildroot}%{_datadir}/gtk-doc/html
%fdupes %{buildroot}
%check
make %{?_smp_mflags} check
%post -n libclutter-glx-1_0-0 -p /sbin/ldconfig
%postun -n libclutter-glx-1_0-0 -p /sbin/ldconfig
%files -n libclutter-glx-1_0-0
%defattr(-,root,root)
%doc README COPYING ChangeLog
%{_libdir}/*.so.*
%{_libdir}/girepository-1.0/*.typelib
%files devel
%defattr(-,root,root)
%{_libdir}/*.so
%{_includedir}/clutter-1.0
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gir-1.0/*.gir
%dir %{_datadir}/clutter-1.0/
%doc %{_datadir}/clutter-1.0/cookbook/
%doc %{_datadir}/gtk-doc/html/cally/
%doc %{_datadir}/gtk-doc/html/clutter/
%doc %{_datadir}/gtk-doc/html/clutter-cookbook/
%files lang -f clutter-1.0.lang
%changelog