Modify the bluetoothd to On-demand mode 48/61148/1 accepted/tizen/common/20160308.142311 accepted/tizen/ivi/20160308.022518 accepted/tizen/mobile/20160308.022321 accepted/tizen/tv/20160308.022400 accepted/tizen/wearable/20160308.022437 submit/tizen/20160307.112555
authorHyuk Lee <hyuk0512.lee@samsung.com>
Fri, 4 Mar 2016 07:50:30 +0000 (16:50 +0900)
committerHyuk Lee <hyuk0512.lee@samsung.com>
Fri, 4 Mar 2016 07:50:30 +0000 (16:50 +0900)
Change-Id: Iff36426e76d9a83a1c40cc15ecec221f9fc29ada
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
packaging/bluez.spec

index 6f6941e..271137b 100644 (file)
@@ -176,8 +176,7 @@ 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
+%if "%{?profile}" == "tv"
 ln -sf bluetooth.service %{buildroot}%{_libpath}/systemd/system/dbus-org.bluez.service
 %endif
 
@@ -213,13 +212,13 @@ 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
+%if "%{?profile}" == "tv"
 %{_libpath}/systemd/system/bluetooth.service
 %{_libpath}/systemd/system/dbus-org.bluez.service
 %{_datadir}/dbus-1/system-services/org.bluez.service
+%else
+%exclude /%{_libpath}/systemd/system/bluetooth.service
+%exclude /%{_datadir}/dbus-1/system-services/org.bluez.service
 %endif
 %config %{_sysconfdir}/dbus-1/system.d/bluetooth.conf
 %dir /var/lib/bluetooth