]> git.pld-linux.org Git - packages/rpm.git/blobdiff - rpm-macros.python
02d49760ff3c47119c3c8f47030a3eb4 pldnotify.awk
[packages/rpm.git] / rpm-macros.python
index 4003ae919c7fad33d2001f2ab67dee5a5e81e91a..6647d4334ab118c105e9fa6a8be4d84ef2f35304 100644 (file)
@@ -8,6 +8,7 @@
 # directories
 %define py_prefix      %(echo `python -c "import sys; print sys.prefix"`)
 %define py_libdir      %{py_prefix}/lib/python%{py_ver}
+%define py_incdir      /usr/include/python%{py_ver}
 %define py_sitedir     %{py_libdir}/site-packages
 %define py_dyndir      %{py_libdir}/lib-dynload
 
@@ -15,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.034207 seconds and 4 git commands to generate.