X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=clutter.spec;h=b9214e56ce23594494e0207ae5e05171c87efc4c;hb=fe01564121d20dc60a9cec5c8367b5bce2866bc3;hp=a8cf5c0b211b5caed0aa5d58f24297c6673f6461;hpb=08cb6c806ed589b20c676bb2a399f33ed420e7b4;p=packages%2Fclutter.git diff --git a/clutter.spec b/clutter.spec index a8cf5c0..b9214e5 100644 --- a/clutter.spec +++ b/clutter.spec @@ -1,12 +1,19 @@ +# +# 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/ @@ -16,35 +23,48 @@ BuildRequires: autoconf >= 2.63 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) @@ -78,9 +98,10 @@ Requires: %{name} = %{version}-%{release} 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 @@ -90,6 +111,7 @@ Requires: xorg-lib-libXdamage-devel 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. @@ -103,6 +125,7 @@ Summary(pl.UTF-8): Statyczna biblioteka clutter 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. @@ -137,8 +160,17 @@ Dokumentacja API clutter. %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} @@ -150,9 +182,6 @@ rm -rf $RPM_BUILD_ROOT %{__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 @@ -190,6 +219,9 @@ rm -rf $RPM_BUILD_ROOT %{_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)