+#
+# Conditional build:
+%bcond_without egl # EGL framebuffer backend
+%bcond_without wayland # Wayland backend
+%bcond_without evdev # evdev support for input events
+%bcond_with tslib # TSLib support for input events (outdated?)
+#
Summary: Library for rich GUIs
Summary(pl.UTF-8): Biblioteka do bogatych graficznych interfejsów użytkownika
Name: clutter
-Version: 1.11.14
+Version: 1.18.0
Release: 1
License: LGPL v2+
Group: Libraries
-Source0: http://ftp.gnome.org/pub/GNOME/sources/clutter/1.11/%{name}-%{version}.tar.xz
-# Source0-md5: a7a01520be905e2ef96c0b9a630b2284
+Source0: http://ftp.gnome.org/pub/GNOME/sources/clutter/1.18/%{name}-%{version}.tar.xz
+# Source0-md5: bdd6426ab2ca4885164736aa49dcea0a
Patch0: gtkdoc.patch
Patch1: missing.patch
URL: http://www.clutter-project.org/
BuildRequires: automake >= 1:1.11
BuildRequires: cairo-devel >= 1.10
BuildRequires: cairo-gobject-devel >= 1.10
-BuildRequires: cogl-devel >= 1.10.0
+BuildRequires: cogl-devel >= 1.18.0
+%{?with_wayland:BuildRequires: cogl-devel(wayland) >= 1.18.0}
BuildRequires: docbook-dtd412-xml
BuildRequires: gdk-pixbuf2-devel >= 2.0
BuildRequires: gettext-devel >= 0.17
-BuildRequires: glib2-devel >= 1:2.32.0
+BuildRequires: glib2-devel >= 1:2.37.3
BuildRequires: gobject-introspection-devel >= 0.10.0
BuildRequires: gtk+3-devel >= 3.4.0
BuildRequires: gtk-doc >= 1.15
BuildRequires: json-glib-devel >= 0.12.0
+%{?with_evdev:BuildRequires: libevdev-devel}
+BuildRequires: libinput-devel
BuildRequires: libtool >= 2:2.2.6
BuildRequires: libxslt-progs
BuildRequires: pango-devel >= 1:1.30
-BuildRequires: pkgconfig
+BuildRequires: pkgconfig >= 1:0.16
BuildRequires: python-modules
BuildRequires: tar >= 1:1.22
+%{?with_tslib:BuildRequires: tslib-devel >= 1.1}
+%{?with_evdev:BuildRequires: udev-glib-devel}
BuildRequires: xorg-lib-libX11-devel
BuildRequires: xorg-lib-libXcomposite-devel >= 0.4
BuildRequires: xorg-lib-libXdamage-devel
BuildRequires: xorg-lib-libXext-devel
BuildRequires: xorg-lib-libXfixes-devel >= 4
BuildRequires: xorg-lib-libXi-devel
+%if %{with evdev} || %{with wayland}
+BuildRequires: xorg-lib-libxkbcommon-devel
+%endif
BuildRequires: xz
+# wayland-client wayland-cursor (for client), wayland-server (for compositor)
+%{?with_wayland:BuildRequires: wayland-devel}
+BuildRequires: xorg-lib-libxkbcommon-devel
Requires: atk >= 1:2.5.3
Requires: cairo-gobject >= 1.10
-Requires: cogl >= 1.10.0
-Requires: glib2 >= 1:2.32.0
+Requires: cogl >= 1.18.0
+%{?with_wayland:Requires: cogl(wayland) >= 1.18.0}
+Requires: glib2 >= 1:2.37.3
Requires: gtk+3 >= 3.4.0
Requires: json-glib >= 0.12.0
Requires: pango >= 1:1.30
+%{?with_evdev:Provides: clutter(evdev) = %{version}-%{release}}
Obsoletes: clutter-cairo < 1.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Requires: OpenGL-GLX-devel
Requires: atk-devel >= 1:2.5.3
Requires: cairo-gobject-devel >= 1.10
-Requires: cogl-devel >= 1.10.0
+Requires: cogl-devel >= 1.18.0
+%{?with_wayland:Requires: cogl-devel(wayland) >= 1.18.0}
Requires: gdk-pixbuf2-devel >= 2.0
-Requires: glib2-devel >= 1:2.32.0
+Requires: glib2-devel >= 1:2.37.3
Requires: gtk+3-devel >= 3.4.0
Requires: json-glib-devel >= 0.12.0
Requires: pango-devel >= 1:1.30
Requires: xorg-lib-libXext-devel
Requires: xorg-lib-libXfixes-devel >= 4
Obsoletes: clutter-cairo-devel < 1.0
+%{?with_evdev:Provides: clutter-devel(evdev) = %{version}-%{release}}
%description devel
Header files for clutter library.
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
Obsoletes: clutter-cairo-static < 1.0
+%{?with_evdev:Provides: clutter-static(evdev) = %{version}-%{release}}
%description static
Static clutter library.
%configure \
--disable-silent-rules \
--enable-docs \
+ %{?with_egl:--enable-egl-backend} \
+ %{?with_evdev:--enable-evdev-input} \
+ --enable-gdk-backend \
--enable-gtk-doc \
--enable-static \
+ %{?with_tslib:--enable-tslib-input} \
+%if %{with wayland}
+ --enable-wayland-backend \
+ --enable-wayland-compositor \
+%endif
+ --enable-xinput \
--with-html-dir=%{_gtkdocdir}
%{__make}
%{__rm} $RPM_BUILD_ROOT%{_libdir}/libclutter-1.0.la
-# drop unsupported locale
-%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/az_IR
-
# move to %{_examplesdir} and package in -examples?
%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/clutter-1.0/cookbook/examples
%{_pkgconfigdir}/clutter-gdk-1.0.pc
%{_pkgconfigdir}/clutter-glx-1.0.pc
%{_pkgconfigdir}/clutter-x11-1.0.pc
+%{_pkgconfigdir}/clutter-egl-1.0.pc
+%{_pkgconfigdir}/clutter-wayland-1.0.pc
+%{_pkgconfigdir}/clutter-wayland-compositor-1.0.pc
%files static
%defattr(644,root,root,755)