]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- modify pyrequires_eq to use python(bytecode)
authorsaq <saq@pld-linux.org>
Tue, 21 Dec 2004 14:02:27 +0000 (14:02 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm.macros -> 1.183

rpm.macros

index f8477c6323a8fe3875afbb386b05903221ce9fce..9fa184796cddfb9167ccb44be986a21484619cc1 100644 (file)
@@ -427,8 +427,7 @@ echo "Compress kernel modules if any."; \
 %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
-%pyrequires_eq() Requires:       %1 >= 1:%py_ver %1 < 1:%(echo `python -c "import sys; import string; ver=sys.version[:3].split('.'); ver[1]=str(int(ver[1])+1); print string.join(ver, '.')"`)
+%pyrequires_eq() Requires:     python(bytecode) = %py_ver %1
 
 # depmod macro
 %depmod() { \
This page took 0.089558 seconds and 4 git commands to generate.