Use macro %{_unitdir_user} unstead of %{_libdir}/systemd/user in specfile 47/4247/1
authorVictor Hakoun <victor.hakoun@eurogiciel.fr>
Tue, 25 Jun 2013 15:24:14 +0000 (17:24 +0200)
committerVictor Hakoun <victor.hakoun@eurogiciel.fr>
Tue, 25 Jun 2013 15:24:14 +0000 (17:24 +0200)
packaging/bluetooth-frwk.spec

index 83b244ac0d8260ed47271ce7e32269c780a4e87e..87c21d87e98758e6332d48bf8231c57a9c97379b 100644 (file)
@@ -86,10 +86,10 @@ mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc5.d/
 ln -s %{_sysconfdir}/rc.d/init.d/bluetooth-frwk-service %{buildroot}%{_sysconfdir}/rc.d/rc3.d/S80bluetooth-frwk-service
 ln -s %{_sysconfdir}/rc.d/init.d/bluetooth-frwk-service %{buildroot}%{_sysconfdir}/rc.d/rc5.d/S80bluetooth-frwk-service
 
-mkdir -p %{buildroot}%{_libdir}/systemd/user
-mkdir -p %{buildroot}%{_libdir}/systemd/user/tizen-middleware.target.wants
-install -m 0644 bt-service/bluetooth-frwk-service.service %{buildroot}%{_libdir}/systemd/user/
-ln -s ../bluetooth-frwk-service.service %{buildroot}%{_libdir}/systemd/user/tizen-middleware.target.wants/bluetooth-frwk-service.service
+mkdir -p %{buildroot}%{_unitdir_user}
+mkdir -p %{buildroot}%{_unitdir_user}/tizen-middleware.target.wants
+install -m 0644 bt-service/bluetooth-frwk-service.service %{buildroot}%{_unitdir_user}
+ln -s ../bluetooth-frwk-service.service %{buildroot}%{_unitdir_user}/tizen-middleware.target.wants/bluetooth-frwk-service.service
 
 
 %post
@@ -124,8 +124,8 @@ vconftool set -tf int memory/bluetooth/btsco "0" -g 6520 -i
 %{_sysconfdir}/rc.d/rc5.d/S80bluetooth-frwk-service
 %{_datadir}/dbus-1/services/org.projectx.bt.service
 %{_bindir}/bt-service
-%{_libdir}/systemd/user/tizen-middleware.target.wants/bluetooth-frwk-service.service
-%{_libdir}/systemd/user/bluetooth-frwk-service.service
+%{_unitdir_user}/tizen-middleware.target.wants/bluetooth-frwk-service.service
+%{_unitdir_user}/bluetooth-frwk-service.service
 %attr(0666,-,-) /opt/var/lib/bluetooth/auto-pair-blacklist
 
 %files core