]> git.pld-linux.org Git - packages/rpm.git/blobdiff - rpm-macros.python
- renamed popt patch, STBR
[packages/rpm.git] / 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.028366 seconds and 4 git commands to generate.