From: Dongxing Liu Date: Wed, 18 Jun 2014 02:49:43 +0000 (+0800) Subject: Change reference to macro 'emulator' to 'with emulator' in spec X-Git-Tag: submit/tizen/20140618.051235^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=10b8282c3559f5331a1d85ae5b0b9b7f6a2f7faf;p=sdk%2Ftarget%2Fsdbd.git Change reference to macro 'emulator' to 'with emulator' in spec 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 --- diff --git a/packaging/sdbd.spec b/packaging/sdbd.spec index 410ebec..dc2c194 100644 --- a/packaging/sdbd.spec +++ b/packaging/sdbd.spec @@ -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