From: Ronan Le Martret Date: Thu, 30 Jan 2014 08:54:20 +0000 (+0100) Subject: Allow gdk-pixbuf to build into pure Wayland profile. X-Git-Tag: accepted/tizen/generic/20140213.074843^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F16%2F15916%2F1;p=platform%2Fupstream%2Fgdk-pixbuf.git Allow gdk-pixbuf to build into pure Wayland profile. Signed-off-by: Ronan Le Martret Change-Id: If77c3609fc3080a89b83a1dc41b168356da81daa --- diff --git a/packaging/gdk-pixbuf.spec b/packaging/gdk-pixbuf.spec index 4fe429b..9360514 100644 --- a/packaging/gdk-pixbuf.spec +++ b/packaging/gdk-pixbuf.spec @@ -1,5 +1,7 @@ %define gdk_pixbuf_binary_version 2.10.0 %bcond_with introspection +%bcond_with x + Name: gdk-pixbuf Version: 2.28.1 Release: 0 @@ -20,7 +22,9 @@ BuildRequires: pkgconfig(glib-2.0) >= 2.31.0 BuildRequires: pkgconfig(gobject-introspection-1.0) %endif BuildRequires: pkgconfig(libpng) +%if %{with x} BuildRequires: pkgconfig(x11) +%endif Requires(post): gdk-pixbuf-query-loaders %description @@ -78,7 +82,10 @@ export CFLAGS=`echo $RPM_OPT_FLAGS |sed -e 's/atom/i686/g'` --enable-introspection \ %endif --with-libjasper \ +%if %{with x} --with-x11 +%endif + %{__make} %{?_smp_mflags} %install @@ -128,7 +135,9 @@ fi %defattr(-, root, root) %license COPYING %{_libdir}/libgdk_pixbuf-2.0.so.0* +%if %{with x} %{_libdir}/libgdk_pixbuf_xlib-2.0.so.0* +%endif %dir %{_libdir}/gdk-pixbuf-2.0 %dir %{_libdir}/gdk-pixbuf-2.0/%{gdk_pixbuf_binary_version} %dir %{_libdir}/gdk-pixbuf-2.0/%{gdk_pixbuf_binary_version}/loaders