]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- add py3 macros
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 18 Jan 2011 07:16:38 +0000 (07:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    adapter.awk -> 1.482
    adapter.sh -> 1.47

adapter.awk
adapter.sh

index f106f06f9369cf4a792bfb95d24938965079f2ee..4ad940b334c00087597bf30763b11889bf3e31ac 100644 (file)
@@ -1570,13 +1570,10 @@ function use_files_macros(      i, n, t, a, l)
                t = substr($0, 0, l);
                s = substr($0, l + 1, RLENGTH - l - length("-py"py_ver".egg-info"));
                if (match(s, "[^-]+$")) {
-#printf("s[%s]; start[%d]; length[%d]\n", s, RSTART, RLENGTH);
                        if (RSTART > 1) {
                                s = substr(s, 0, RSTART - 1);
                        }
-#printf("s2[%s]\n", s);
                        print "%if \"%{py_ver}\" > \"2.4\""
-#print t "/.+.egg-info"
                        gsub(t "/.+.egg-info", t "/" s "-*.egg-info");
                        print
                        print "%endif"
@@ -1821,7 +1818,8 @@ function import_rpm_macros() {
                exit(rc = 1);
        }
 
-       if (!ENVIRON["ADAPTER_REVISION"] || ENVIRON["ADAPTER_REVISION"] < 1.46) {
+       # update this version dep each time some new macro export is added
+       if (!ENVIRON["ADAPTER_REVISION"] || ENVIRON["ADAPTER_REVISION"] < 1.47) {
                print "adapter shell script is outdated, please cvs up it" > "/dev/stderr"
                do_not_touch_anything = 1
                exit(rc = 1);
@@ -1863,6 +1861,11 @@ function import_rpm_macros() {
        py_scriptdir = ENVIRON["py_scriptdir"]
        py_ver = ENVIRON["py_ver"]
 
+       py3_sitescriptdir = ENVIRON["py3_sitescriptdir"]
+       py3_sitedir = ENVIRON["py3_sitedir"]
+       py3_scriptdir = ENVIRON["py3_scriptdir"]
+       py3_ver = ENVIRON["py3_ver"]
+
        ruby_archdir = ENVIRON["ruby_archdir"]
        ruby_ridir = ENVIRON["ruby_ridir"]
        ruby_rubylibdir = ENVIRON["ruby_rubylibdir"]
index 43d1d3989c26324d9552cb9345f890bffd25cb50..ecf0f77dc4e3fac8be7d22cea60394ea1a87a398 100644 (file)
@@ -208,6 +208,11 @@ import_rpm_macros() {
        py_scriptdir
        py_ver
 
+       py3_sitescriptdir
+       py3_sitedir
+       py3_scriptdir
+       py3_ver
+
        ruby_archdir
        ruby_ridir
        ruby_rubylibdir
This page took 0.039535 seconds and 4 git commands to generate.