Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=668591
--- Comment #2 from Steve Traylen steve.traylen@cern.ch 2011-01-11 15:52:05 EST --- Hi Jeffrey,
http://cern.ch/straylen/rpms/python26-markupsafe/python26-markupsafe.spec http://cern.ch/straylen/rpms/python26-markupsafe/python26-markupsafe-0.11-3....
your comments are both certainly valid, thank you.
I've left the hardcoded 2.6 in the sitearch variable since the whole package is very hardcoded to 2.6 and RHEL5 anyway. Of course I now use %{_libdir} for the 32bit vs 64bit.
In fact if use
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %endif
in this case you get an error in koji since %{_pyhton} (python2.6) does not exist when the .srpm is created.
Steve.