summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonan Le Martret <ronan@fridu.net>2014-11-05 15:35:02 +0100
committerRonan Le Martret <ronan@fridu.net>2014-12-03 14:12:11 +0100
commit9c32ed0cdd914f2a0308570cffbc7373a4a75258 (patch)
tree5c8bba8df760c4dc7f4b44571679a87e9130c3c9
parentd962be480686977a9573650fe4b05c477d5d0eea (diff)
downloadrpm-9c32ed0cdd914f2a0308570cffbc7373a4a75258.tar.gz
rpm-9c32ed0cdd914f2a0308570cffbc7373a4a75258.tar.bz2
rpm-9c32ed0cdd914f2a0308570cffbc7373a4a75258.zip
allow rpm to custom systemd installation
Change-Id: I5d0d86ca8788837c78ee078c5dfa6d4396168f95 Signed-off-by: Ronan Le Martret <ronan@fridu.net>
-rw-r--r--packaging/rpm-tizen_macros7
1 files changed, 5 insertions, 2 deletions
diff --git a/packaging/rpm-tizen_macros b/packaging/rpm-tizen_macros
index 3846e5ca6..253f89c33 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}