]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- buildroot replacements in %install. very nice!
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 4 May 2006 19:13:54 +0000 (19:13 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    adapter.awk -> 1.303

adapter.awk

index 3c42a4126807bb5cda11e0a8f7f3b62254b74b1a..513ce08c257527d6faaae2ecb5878d5df8a642c8 100644 (file)
@@ -85,6 +85,7 @@ BEGIN {
        "rpm --eval %py_sitedir" | getline py_sitedir
        "rpm --eval %py_scriptdir " | getline py_scriptdir
        "rpm --eval %php_pear_dir" | getline php_pear_dir
+       "rpm --eval %tmpdir" | getline tmpdir
 }
 
 # There should be a comment with CVS keywords on the first line of file.
@@ -450,6 +451,11 @@ function b_makekey(a, b,   s) {
                did_rmroot=1
        }
 
+    if (tmpdir) {
+        buildroot = tmpdir "/" name "-" version "-root-" ENVIRON["USER"]
+               gsub(buildroot, "$RPM_BUILD_ROOT")
+    }
+
        use_macros()
 
        # 'install -d' instead 'mkdir -p'
This page took 0.035946 seconds and 4 git commands to generate.