I'm currently trying to set up an environment for one of our apps on CentOS 6 using the SCL python33 repository. The app also requires a number of additional python modules, such as numpy, so I'm trying to build those; I'm getting close, but when I build the package, it requires
python(abi) => 3.3.
According to the SCL docs, I want to change the Requires, which is obvious enough, and I see a bunch of goo in
/etc/rpm/macros.python3.python33 which looks like it should handle that (that's an implicit require, not one that I can just change in the specfile), but I can't figure out how to get those macros to override the various ones in the specfile. Has anyone build RPMs for python modules to add to the python33 SCL, and what steps did you take?
For the record, this is my procedure so far:
setup.py bdist --format=rpm # to generate the base specfile, numpy.spec spec2scl numpy.spec # to generate the SCLed specfile (edit specfile to remove %define __os_install_post bloc which doesn't cooperate with SCL) rpmbuild -ba numpy.py -D 'scl python33' # to try and build the RPM from the specfile
This gets me an RPM, but with the broken require (which needs to be