Description of problem: I found the following in the spec file of up2date: --- snipp --- # do a better fix later %define pythonver python2.3 --- snapp --- May you change that to: --- snipp --- # get the python version for building %define pythonver %(pythonver="python`rpm -q --queryformat='%{VERSION}' python 2>/dev/null | cut -b1-3`"; echo "$pythonver") --- snapp --- Maybe it's not perfect, but looks better and is more flexible than the old solution. Version-Release number of selected component (if applicable): up2date-4.3.1-2
Thanks for including my idea to the up2date spec file, but now there is a better solution than mine in the spec file: %define pythonver python%(%{__python} -c "import sys; print sys.version[:3]") This one works fine, so I think, you can remove the 2 old one... :)