packaging: Set _tizen_emulator for emulator builds.
authorTomasz Olszak <olszak.tomasz@gmail.com>
Tue, 10 Nov 2015 14:42:03 +0000 (15:42 +0100)
committerTomasz Olszak <olszak.tomasz@gmail.com>
Tue, 10 Nov 2015 14:42:03 +0000 (15:42 +0100)
In wearable profile "%{_repository}" != "emulator"
for emulator. That's why new _tizen_emulator macro
is introduced.

Change-Id: I8c770ceb5dec0c60b21aba2e232ba9e3a826fa3f
Bug-Tizen: TIVI-2416
Signed-off-by: Tomasz Olszak <olszak.tomasz@gmail.com>
packaging/qt5.spec

index c2f326042ea8ae13b2e6d664289e2df476f66c50..c8271d0a1a3bb6d98be51f5e2de7dfb47d967dce 100644 (file)
 %define xkb_config_root -xkb-config-root /etc/X11/xkb
 %define _force_eglx 1
 %ifnarch armv7l armv7el
-%define _repository emulator
+%define _tizen_emulator 1
 %endif
 %else
+%if "%{_repository}" == "emulator"
+%define _tizen_emulator 1
+%endif
 %define _with_xkbcommon 1
 %define xkb_config_root %{nil}
 %endif
@@ -593,7 +596,7 @@ MAKEFLAGS=%{?_smp_mflags} \
     -platform devices/linux-g++-tizen \
 %if "%{profile}" != ""
     -device-option TIZEN_PROFILE=%{profile} \
-%if "%_repository" == "emulator"
+%if 0%{?_tizen_emulator:1}
     -device-option TIZEN_EMULATOR=1 \
 %endif
 %endif