From: Manuel Bachmann Date: Wed, 10 Sep 2014 16:08:35 +0000 (+0200) Subject: Fix systemd install path on 64-bit architecture X-Git-Tag: accepted/tizen/ivi/20141001.180659^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1dcef1fbedc00584e6e0cd2eeea12c7bd0669a50;p=profile%2Fivi%2FModello_Homescreen.git Fix systemd install path on 64-bit architecture 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 --- diff --git a/packaging/modello-homescreen.spec b/packaging/modello-homescreen.spec index b3155eb..bc1a318 100644 --- a/packaging/modello-homescreen.spec +++ b/packaging/modello-homescreen.spec @@ -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