packaging: fix build issues w/ IVI profile and GBS
authorTomasz Olszak <olszak.tomasz@gmail.com>
Tue, 10 Nov 2015 14:42:06 +0000 (15:42 +0100)
committerTomasz Olszak <olszak.tomasz@gmail.com>
Tue, 10 Nov 2015 14:42:06 +0000 (15:42 +0100)
* use "" to eval macro
* egl: fix 'enable also for Tizen 3.0 Mobile'
* unset CFLAGS, CXXFLAGS and LFLAGS for all builds

Change-Id: I99d04d2c638f68e2042058bd76ef0626b36d5eab
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
packaging/qt5.spec

index d7946fe191e8f6aa4182dfca5ec2cc9aa86792b9..8e9370861d1e9354b377e78c7fd7cfd37357d132 100644 (file)
@@ -54,7 +54,7 @@
 %endif
 
 
-%if "%{profile}" == "mobile" && 0%{tizen_version_major} < 3
+%if "%{profile}" == "mobile" && "%{tizen_version_major}" < "3"
 %define _with_tizenscim 1
 %endif
 
@@ -63,7 +63,7 @@
 %define _with_xscrnsaver 1
 %endif
 
-%if "%{profile}" != "wearable" && "%{profile}" != "mobile" && 0%{tizen_version_major} < 3
+%if "%{profile}" != "wearable" && "%{profile}" != "mobile" && "%{tizen_version_major}" > "2"
 %define _with_egl 1
 %endif
 
@@ -602,11 +602,9 @@ export CXXFLAGS="$(echo $CXXFLAGS| sed 's/-mfpu=neon//gi')"
 %endif
 %endif
 
-%if "%{profile}" == "mobile"
 %ifarch %arm armv7l %{aarch64}
 unset CFLAGS CXXFLAGS LFLAGS
 %endif
-%endif
 
 MAKEFLAGS=%{?_smp_mflags} \
 ./configure --disable-static \