Change reference to macro 'emulator' to 'with emulator' in spec 19/23119/1 tizen_3.0.m14.2_ivi accepted/tizen/common/20140618.144331 accepted/tizen/ivi/20140619.124125 submit/accepted/tizen/ivi/20140618.073339 submit/accepted/tizen_common/20140618.073320 submit/tizen/20140618.051235 submit/tizen_common/20140618.074012 submit/tizen_common/20140618.080340 submit/tizen_ivi/20140618.080337 tizen_3.0.m14.2_ivi_release
authorDongxing Liu <dongxing.x.liu@intel.com>
Wed, 18 Jun 2014 02:49:43 +0000 (10:49 +0800)
committerDongxing Liu <dongxing.x.liu@intel.com>
Wed, 18 Jun 2014 02:49:43 +0000 (10:49 +0800)
Now Project Configuration in OBS uses macro 'with emulator',
so we need to change reference in spec file accordingly.

Change-Id: Icd8622c5cdea7e76784787fa67e57c5cb93095c2
Signed-off-by: Dongxing Liu <dongxing.x.liu@intel.com>
packaging/sdbd.spec

index 410ebec8eb7683314cdb094e030c44286dcf0dcf..dc2c194eb0b3a4a9b4e8b8e9de38b83a6e1e4f61 100644 (file)
@@ -1,3 +1,5 @@
+%bcond_with emulator
+
 Name:       sdbd
 Summary:    SDB daemon
 Version:    3.0.1
@@ -32,7 +34,7 @@ make %{?jobs:-j%jobs}
 %make_install
 
 mkdir -p %{buildroot}%{_libdir}/systemd/system
-%if 0%{?emulator}
+%if %{with emulator}
 install -m 0644 %SOURCE1002 %{buildroot}%{_libdir}/systemd/system/sdbd.service
 mkdir -p %{buildroot}/%{_libdir}/systemd/system/emulator.target.wants
 ln -s %{_libdir}/systemd/system/sdbd.service %{buildroot}/%{_libdir}/systemd/system/emulator.target.wants/
@@ -52,7 +54,7 @@ install -m 755 script/sdk_launch %{buildroot}%{_prefix}/sbin/
 %{_prefix}/sbin/sdk_launch
 %attr(0755, root, root) %{_sysconfdir}/init.d/sdbd
 %{_libdir}/systemd/system/sdbd.service
-%if 0%{?emulator}
+%if %{with emulator}
 %{_libdir}/systemd/system/emulator.target.wants/sdbd.service
 %else
 %{_libdir}/systemd/system/sdbd_tcp.service