]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- new macro pyrequires_eq so modules can have requirement only for main
authorwrobell <wrobell@pld-linux.org>
Thu, 11 Apr 2002 12:16:37 +0000 (12:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  version of Python language

Changed files:
    rpm-macros.python -> 1.4

rpm-macros.python

index 0a63605f7cac609167ccaf88449247bfe4542225..6647d4334ab118c105e9fa6a8be4d84ef2f35304 100644 (file)
@@ -16,3 +16,7 @@
 %define py_comp        python -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[1][len('$RPM_BUILD_ROOT'):])"
 
 %define py_ocomp       python -O -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[1][len('$RPM_BUILD_ROOT'):])"
+
+# Software written in Python language require Python with main version
+# unchanged
+%define        pyrequires_eq() Requires:       %1 >= %py_ver %1 < %(echo `python -c "import sys; import string; ver=sys.version[:3].split('.'); ver[1]=str(int(ver[1])+1); print string.join(ver, '.')"`)
This page took 0.030943 seconds and 4 git commands to generate.