Author: glen Date: Thu May 4 19:13:59 2006 GMT Module: SPECS Tag: HEAD ---- Log message: - buildroot replacements in %install. very nice!
---- Files affected: SPECS: adapter.awk (1.302 -> 1.303) ---- Diffs: ================================================================ Index: SPECS/adapter.awk diff -u SPECS/adapter.awk:1.302 SPECS/adapter.awk:1.303 --- SPECS/adapter.awk:1.302 Thu May 4 21:10:14 2006 +++ SPECS/adapter.awk Thu May 4 21:13:54 2006 @@ -85,6 +85,7 @@ "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. @@ -449,6 +450,11 @@ print "rm -rf $RPM_BUILD_ROOT" did_rmroot=1 } + + if (tmpdir) { + buildroot = tmpdir "/" name "-" version "-root-" ENVIRON["USER"] + gsub(buildroot, "$RPM_BUILD_ROOT") + } use_macros() ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/adapter.awk?r1=1.302&r2=1.303&f=u _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit