Add a condition on X for BuildRequire of UtilX. 84/16184/1 accepted/tizen/generic accepted/tizen/ivi accepted/tizen/mobile accepted/tizen_ivi_release tizen_ivi_release accepted/tizen/generic/20140212.084239 accepted/tizen/generic/20140312.094952 accepted/tizen/ivi/20140212.184832 accepted/tizen/ivi/panda/20140312.111823 accepted/tizen/ivi/release/20140312.121153 accepted/tizen/mobile/20140225.043803 submit/tizen/20140212.085334 submit/tizen/20140312.070651 submit/tizen_ivi_release/20140312.071126
authorRonan Le Martret <ronan@fridu.net>
Mon, 10 Feb 2014 11:07:46 +0000 (12:07 +0100)
committerRonan Le Martret <ronan@fridu.net>
Mon, 10 Feb 2014 11:07:46 +0000 (12:07 +0100)
Change-Id: If9dc0cc716d1237d2d6f2d648c4c0fe2f5d305dd
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
packaging/bluetooth-frwk.spec

index c84ab48..99f6f64 100644 (file)
@@ -1,6 +1,7 @@
 %bcond_with bluetooth_frwk_libnotify
 %bcond_with bluetooth_frwk_libnotification
 %bcond_with multi_user
+%bcond_with x
 
 Name:       bluetooth-frwk
 Summary:    Bluetooth framework for BlueZ and Obexd
@@ -29,7 +30,9 @@ BuildRequires:  pkgconfig(syspopup-caller)
 BuildRequires:  pkgconfig(vconf)
 BuildRequires:  pkgconfig(libxml-2.0)
 BuildRequires:  pkgconfig(dbus-1)
+%if %{with x}
 BuildRequires:  pkgconfig(utilX)
+%endif
 BuildRequires:  pkgconfig(capi-network-tethering)
 BuildRequires:  pkgconfig(libprivilege-control)
 BuildRequires:  pkgconfig(status)
@@ -81,7 +84,7 @@ cp %{SOURCE1001} .
 
 %ifarch x86_64
 export CFLAGS+="   -Wall -g -fvisibility=hidden -fPIC"
-export LDFLAGS+=" -Wl,--rpath=%{_libdir} -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs" 
+export LDFLAGS+=" -Wl,--rpath=%{_libdir} -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs"
 %else
 export CFLAGS+=" -fpie"
 export LDFLAGS+=" -Wl,--rpath=%{_libdir} -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs -pie"