summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyuk Lee <hyuk0512.lee@samsung.com>2016-02-02 15:11:37 +0900
committerHyuk Lee <hyuk0512.lee@samsung.com>2016-02-02 15:11:37 +0900
commit326d738aac3b87135998db67607a9d785e11fb95 (patch)
tree8b0e24b299e1fa56803dd861c669156eee266034
parent9ce9ed4830af05d43625db4c8d2e14557b7b0ad7 (diff)
downloadbluez-326d738aac3b87135998db67607a9d785e11fb95.tar.gz
bluez-326d738aac3b87135998db67607a9d785e11fb95.tar.bz2
bluez-326d738aac3b87135998db67607a9d785e11fb95.zip
Change-Id: I167b7792a60357ffd86929ae6cd4afed001addee Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
-rw-r--r--packaging/bluez.spec9
1 files changed, 8 insertions, 1 deletions
diff --git a/packaging/bluez.spec b/packaging/bluez.spec
index a0006abc..6f6941eb 100644
--- a/packaging/bluez.spec
+++ b/packaging/bluez.spec
@@ -176,7 +176,10 @@ install -D -m 0755 attrib/gatttool $RPM_BUILD_ROOT/%{_bindir}/
install -D -m 0755 tools/obexctl %{buildroot}%{_bindir}/obexctl
#test
+%if "%{?_with_emulator}" == "1"
+%else
ln -sf bluetooth.service %{buildroot}%{_libpath}/systemd/system/dbus-org.bluez.service
+%endif
%post -n libbluetooth -p /sbin/ldconfig
@@ -210,10 +213,14 @@ ln -sf bluetooth.service %{buildroot}%{_libpath}/systemd/system/dbus-org.bluez.s
/usr/lib/udev/*
#test -2
+%if "%{?_with_emulator}" == "1"
+%exclude /%{_libpath}/systemd/system/bluetooth.service
+%exclude /%{_datadir}/dbus-1/system-services/org.bluez.service
+%else
%{_libpath}/systemd/system/bluetooth.service
%{_libpath}/systemd/system/dbus-org.bluez.service
-
%{_datadir}/dbus-1/system-services/org.bluez.service
+%endif
%config %{_sysconfdir}/dbus-1/system.d/bluetooth.conf
%dir /var/lib/bluetooth
%dir %{_sysconfdir}/modprobe.d