aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2014-12-16 14:29:17 +0000
committerRoss Burton <ross.burton@intel.com>2014-12-16 14:29:17 +0000
commit7e362759a07597b81266354e52fb3072a9602ed0 (patch)
tree1698f47c3bcff5730431a26e963ca4c5fe064d86
parent72d58928fc5de4b5667081feb327d930973b82e7 (diff)
downloadmeta-translator-7e362759a07597b81266354e52fb3072a9602ed0.tar.gz
meta-translator-7e362759a07597b81266354e52fb3072a9602ed0.tar.bz2
meta-translator-7e362759a07597b81266354e52fb3072a9602ed0.zip
srpm_utils: replace systemd_unitdir
The Tizen RPM macro %{_unitdir} is the *system* unit directory, so this has to be expanded to the parent of that directory. Ugly, but it works. Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--lib/srpm_utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/srpm_utils.py b/lib/srpm_utils.py
index 7b33c27..29a290a 100644
--- a/lib/srpm_utils.py
+++ b/lib/srpm_utils.py
@@ -29,6 +29,7 @@ def clean_data(d):
"datadir", "sysconfdir", "sharedstatedir", "localstatedir",
"libdir", "includedir", "infordir", "mandir"):
ld.setVar(s, "%%{_%s}" % s)
+ ld.setVar("systemd_unitdir", "%{_unitdir}/..")
ld.setVar("STAGING_DIR_NATIVE", "")
ld.setVar("STAGING_DIR_HOST", "")