Description of problem: The python version in the RPM spec file should be more flexible, so I suggest the use of 'python -c "import sys; print sys.version [:3]'. Version-Release number of selected component (if applicable): rpm-4.3.2-2 Actual results / Expected results: --- snipp --- --- rpm.spec 2004-09-25 12:55:20.000000000 +0200 +++ rpm.spec.rsc 2004-09-25 12:55:47.000000000 +0200 @@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@ %define with_python_subpackage 1%{nil} -%define with_python_version 2.3%{nil} +%define with_python_version %(%{__python} -c "import sys; print sys.version[:3]")%{nil} %define with_bzip2 1%{nil} %define with_apidocs 1%{nil} --- snapp ---
I am not interested in flexibility, but rather simple and stupid, as rpm is often the first package that needs to be ported to a new platform, where, for example, %__python may not be correctly defined yet.