summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStéphane Desneux (sdx) <stephane.desneux@open.eurogiciel.org>2014-12-03 05:46:12 -0800
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>2014-12-03 05:46:12 -0800
commit0f8e139c29fcad0404c85eb6709f5e50db0846fc (patch)
treee2c6c349d81cb01901ed3a006cf5b3c604ce3445
parent3ef23ff0bfc2ac3cfe81148655bfcd028edb1400 (diff)
parent9c32ed0cdd914f2a0308570cffbc7373a4a75258 (diff)
downloadrpm-0f8e139c29fcad0404c85eb6709f5e50db0846fc.tar.gz
rpm-0f8e139c29fcad0404c85eb6709f5e50db0846fc.tar.bz2
rpm-0f8e139c29fcad0404c85eb6709f5e50db0846fc.zip
Merge "allow rpm to custom systemd installation" into tizen
-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}