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.6.0
Release:        1
License:        LGPLv2.1+
Url:            http://clutter-project.org/
Group:          System/Libraries
Source0:        http://www.clutter-project.org/sources/clutter/0.6/%{name}-%{version}.tar.bz2
BuildRequires:  fdupes
BuildRequires:  xmlto
BuildRequires:  pkgconfig(atk)
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(gdk-pixbuf-2.0)
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(gobject-2.0)
BuildRequires:  pkgconfig(gobject-introspection-1.0)
BuildRequires:  pkgconfig(json-glib-1.0)
BuildRequires:  pkgconfig(pangocairo)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xcomposite)
BuildRequires:  pkgconfig(xdamage)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(xfixes)
BuildRequires:  pkgconfig(xi)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define debug_package_requires libclutter-glx-1_0-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-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}

%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:        LGPLv2.1+
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.

%lang_package
%prep
%setup -q

%build
%configure \
        --disable-static \
        --enable-xinput \
        --disable-conformance
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 %{?jobs:-j%jobs} check

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

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

%clean
rm -rf %{buildroot}

%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

%files doc
%defattr(-,root,root)
%{_datadir}/gtk-doc/html/cally/
%{_datadir}/gtk-doc/html/clutter/
%{_datadir}/gtk-doc/html/cogl/
# Own these repositories to not depend on gtk-doc while building:
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html

%files lang -f clutter-1.0.lang

%changelog
openSUSE Build Service is sponsored by