From aa5fbde1f98ed3fce681b7c2160d1e9750c7a076 Mon Sep 17 00:00:00 2001 From: wangfei Date: Mon, 25 Nov 2013 15:32:47 +0800 Subject: [PATCH] add wayland profile for giflib in wayland profile, giflib did not requires Xorg, remove this dependency. Change-Id: I96a49223e1c139b25eccbc14860c13d681e248dc Signed-off-by: wangfei --- packaging/giflib.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/packaging/giflib.spec b/packaging/giflib.spec index 3c1b12f..f1a4078 100644 --- a/packaging/giflib.spec +++ b/packaging/giflib.spec @@ -1,3 +1,5 @@ +%bcond_with wayland + Name: giflib Version: 4.1.6 Release: 9 @@ -9,8 +11,12 @@ Source0: http://downloads.sourceforge.net/giflib/%{name}-%{version}.tar.b Source1001: giflib.manifest BuildRequires: pkgconfig(ice) BuildRequires: pkgconfig(sm) +%if %{with wayland} + +%else BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xv) +%endif %description The giflib package contains a shared library of functions for @@ -53,7 +59,11 @@ You'll also need to install the giflib package. cp %{SOURCE1001} . %build -%configure +%configure \ +%if %{with wayland} + --disable-x11 +%endif + make %{?_smp_mflags} all MAJOR=`echo '%{version}' | sed 's/\([0-9]\+\)\..*/\1/'` -- 2.7.4