I added a set of python macros to epel-rpm-macros-6 and pushed them out
to testing. This should allow you to use the all of what's in the
regular Fedora Python guidelines as is. You will still have to %if out
some of the python3 stuff (build deps, subpackage declarations, %files,
etc.), but things like %py3_build can stay as they simply have no
effect.
Eventually I'll get back to the additional macros I've been writing
which should require even less %if-ing over the full range of
Fedora/EPEL releases. But for now, these should help.
I haven't had enough free time to give these more than some basic
testing. Please enable the testing repo in mock and give them a try.
If things go well, I'll push them to EPEL5 later.
What's been added:
%__python2
%python2_sitelib
%python2_sitearch
%py2_build
%py2_install
%py3_build (nil)
%py3_install (nil)
%py_setup
%python_provide
Let me know if I missed anything, or screwed up somewhere.
- J<