add wayland profile for giflib 82/12882/1 accepted/tizen/20131126.000657 submit/tizen/20131125.114000
authorwangfei <feix.w.wang@intel.com>
Mon, 25 Nov 2013 07:32:47 +0000 (15:32 +0800)
committerwangfei <feix.w.wang@intel.com>
Mon, 25 Nov 2013 09:19:16 +0000 (17:19 +0800)
in wayland profile, giflib did not requires Xorg, remove this dependency.

Change-Id: I96a49223e1c139b25eccbc14860c13d681e248dc
Signed-off-by: wangfei <feix.w.wang@intel.com>
packaging/giflib.spec

index 3c1b12f..f1a4078 100644 (file)
@@ -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/'`