From: Ronan Le Martret Date: Wed, 5 Nov 2014 14:35:02 +0000 (+0100) Subject: allow rpm to custom systemd installation X-Git-Tag: accepted/tizen/common/20141203.182814~1^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Frpm.git;a=commitdiff_plain;h=9c32ed0cdd914f2a0308570cffbc7373a4a75258 allow rpm to custom systemd installation Change-Id: I5d0d86ca8788837c78ee078c5dfa6d4396168f95 Signed-off-by: Ronan Le Martret --- diff --git a/packaging/rpm-tizen_macros b/packaging/rpm-tizen_macros index 3846e5c..253f89c 100644 --- a/packaging/rpm-tizen_macros +++ b/packaging/rpm-tizen_macros @@ -4,8 +4,11 @@ %_sysconfdir /etc %_localstatedir /var %_defaultdocdir %{_usr}/share/doc/packages -%_unitdir_user /usr/lib/systemd/user -%_unitdir /usr/lib/systemd/system + +# _rootprefix can be set to (/,%{_prefix}) to customize systemd installation) +%_rootprefix %{_prefix} +%_unitdir_user %{_prefix}/lib/systemd/user +%_unitdir %{_rootprefix}/lib/systemd/system # package build macros # %make_install make install DESTDIR=%{?buildroot}