Summary(pl): Aplikacja do zarz±dzania pakietami
Name: rpm
Version: 4.0.2
-Release: 44
+Release: 45
License: GPL
Group: Base
Group(de): Gründsätzlich
%define __find_provides %{SOURCE4}
%define _binary_payload w9.gzdio
%define __find_provides %{SOURCE4}
-%define python_prefix %(echo `python -c "import sys; print sys.prefix"`)
-%define python_version %(echo `python -c "import sys; print sys.version[:3]"`)
-%define python_includedir %{_includedir}/python%{python_version}
-%define python_libdir %{python_prefix}/lib/python%{python_version}
-%define python_sitedir %{python_libdir}/site-packages
+%include /usr/lib/rpm/macros.python
%define py_dyndir %{py_libdir}/lib-dynload
%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, '.')"`)
lib/Makefile.in > lib/Makefile.in.new
mv -f lib/Makefile.in.new lib/Makefile.in
-sed -e 's#python1.5#python%{python_version}#g' \
+sed -e 's#python1.5#python%{py_ver}#g' \
python/Makefile.in > python/Makefile.in.new
mv -f python/Makefile.in.new python/Makefile.in
%{_libdir}/rpm/macros.perl
%files python
%defattr(644,root,root,755)
-%{python_sitedir}/*.so
+%{py_sitedir}/*.so
%{_libdir}/rpm/macros.python
%files -n python-rpm