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>
+%bcond_with emulator
+
Name: sdbd
Summary: SDB daemon
Version: 3.0.1
%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/
%{_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