rpm/rpm-4.4.5-py_requires_macro.patch

12 lines
526 B
Diff
Raw Normal View History

--- rpm-4.4.5/macros.in.orig 2006-10-24 11:28:06.000000000 +0200
+++ rpm-4.4.5/macros.in 2006-10-24 11:28:53.000000000 +0200
@@ -1354,7 +1354,7 @@
%py_requires(d) \
%define maxver %(%{__python} -c "import sys; a,b=sys.version_info[:2]; print '%%d.%%d'%%(a,b+1)" 2>/dev/null || echo PYTHON-NOT-FOUND) \
-BuildRequires: python %{-d:python-devel} \
+BuildRequires: python, libpython-devel \
PreReq: python >= %{python_version}, python < %{maxver}
#------------------------------------------------------------------------