Fix systemd install path on 64-bit architecture 10/27310/3 accepted/tizen/ivi/20141001.180659 submit/tizen_ivi/20140930.212904
authorManuel Bachmann <manuel.bachmann@open.eurogiciel.org>
Wed, 10 Sep 2014 16:08:35 +0000 (18:08 +0200)
committerBrian Jones <brian.j.jones@intel.com>
Tue, 30 Sep 2014 17:14:44 +0000 (10:14 -0700)
Contrary to what happens with binary install paths in the
general case, systemd unit files will still be installed
to "/usr/lib" (even if "/usr/lib64" exists e.g.).

Change-Id: Ib46615529860236c0c4a256148399ae42f31d6a4
Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
packaging/modello-homescreen.spec

index b3155eb..bc1a318 100644 (file)
@@ -23,17 +23,17 @@ A proof of concept pure html5 UI
     install -m 0644 Homescreen_icon.png %{buildroot}%{_datadir}/Modello/Common/icons
 
     mkdir -p %{buildroot}%{_bindir}
-    mkdir -p %{buildroot}%{_libdir}/systemd/user/weston.target.wants/
+    mkdir -p %{buildroot}%{_unitdir_user}/weston.target.wants/
     install -m 755 systemd/modello_launcher.sh %{buildroot}%{_bindir}
-    install -m 0644 systemd/Modello_Homescreen-launchpad-ready.path %{buildroot}%{_libdir}/systemd/user
-    install -m 0644 systemd/Modello_Homescreen.service %{buildroot}%{_libdir}/systemd/user
-    ln -sf ../Modello_Homescreen-launchpad-ready.path %{buildroot}%{_libdir}/systemd/user/weston.target.wants/
+    install -m 0644 systemd/Modello_Homescreen-launchpad-ready.path %{buildroot}%{_unitdir_user}
+    install -m 0644 systemd/Modello_Homescreen.service %{buildroot}%{_unitdir_user}
+    ln -sf ../Modello_Homescreen-launchpad-ready.path %{buildroot}%{_unitdir_user}/weston.target.wants/
 
 %files
 %defattr(-,root,root,-)
 %{TZ_SYS_APP_PREINSTALL}/Modello_Homescreen.wgt
 %{_datadir}/Modello/Common/icons/Homescreen_icon.png
-%{_libdir}/systemd/user/Modello_Homescreen.service
-%{_libdir}/systemd/user/Modello_Homescreen-launchpad-ready.path
+%{_unitdir_user}/Modello_Homescreen.service
+%{_unitdir_user}/Modello_Homescreen-launchpad-ready.path
 %{_bindir}/modello_launcher.sh
-%{_libdir}/systemd/user/weston.target.wants
+%{_unitdir_user}/weston.target.wants