]> git.pld-linux.org Git - packages/rpm.git/blobdiff - rpm-macros.python
- added missing DPS libs to X11 libs noautoreqdep; noauto=3
[packages/rpm.git] / rpm-macros.python
index 4003ae919c7fad33d2001f2ab67dee5a5e81e91a..f41c4dde2d9e9d9f5ed4a0ea70a0110b607a422a 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,8 @@
 %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.028771 seconds and 4 git commands to generate.