Created attachment 1050380 [details] macros.python to be added There will be new python macros available soon on Fedora: https://fedorahosted.org/fpc/ticket/281 It would be nice to also get them on epel, so that those just work out of the box across epel/fedora. Attached are macros that take use themselves %{__python}, %{__python2} and %{__python3}. On fedora, packages are expected to BR python-devel/python3-devel to have those macros defined, so it would be nice to have them on epel directly in the srpm, so it is also defined when packages BR python-devel (and well, are defined otherwise too...). A current diff to the guideline on how to use them can be found at: https://fedoraproject.org/w/index.php?title=User%3ATomspur%2FPackaging%3APython&diff=cur&oldid=414855 The announcement and guidelines changes will be sent out once the new python?-devel packages are at least in testing on Fedora.
It would be nice to get at least some of these macros into EL6 and EL5 (though of course the py3 ones make no sense there). I'll go ahead and request EL5 and EL6 branches so that we can at least play with them.
Perhaps the python3 macros can make it into the python34 EPEL package?
That wouldn't help python2 packaging, though. The idea is that we can somewhat standardize python packaging across releases. We could, of course, put the py3-related macros in the EPEL7 python3 packages.
epel-rpm-macros-7-2 has been submitted as an update for Fedora EPEL 7. https://admin.fedoraproject.org/updates/epel-rpm-macros-7-2
I went ahead and added these as above ^ Please look things over and see if we need any changes/additions/corrections.
Package epel-rpm-macros-7-2: * should fix your issue, * was pushed to the Fedora EPEL 7 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing epel-rpm-macros-7-2' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-7485/epel-rpm-macros-7-2 then log in and leave karma (feedback).
epel-rpm-macros-7-2 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.
There is a missing closing bracket. http://pkgs.fedoraproject.org/cgit/epel-rpm-macros.git/tree/macros.epel-rpm-macros?h=epel7&id=9588847dbccb3729b48ed90979eca5c9ccb6d8cd#n73 %py2_install() %{expand:\ CFLAGS="%{optflags}" %{__python2} %{py_setup} %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?1}\ Every rpm/yum/dnf command I run on my system results in this error. error: Macro %py2_install has unterminated body
epel-rpm-macros-7-3 has been submitted as an update for Fedora EPEL 7. https://admin.fedoraproject.org/updates/epel-rpm-macros-7-3
epel-rpm-macros-7-3 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update epel-rpm-macros'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/epel-rpm-macros-7-3
epel-rpm-macros-7-3 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.
Created attachment 1079196 [details] Fixes to the python_provide macro Attached is a patch to update the %python_provide macros to the latest Fedora's one, which contains a couple of fixes: - Use epoch in the version - Obsolete the previous default python package in addition to providing it - Fix the std python provide parsing
epel-rpm-macros-7-4 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-e66a3acdcb
epel-rpm-macros-7-4 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'yum --enablerepo=epel-testing update epel-rpm-macros' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-e66a3acdcb
epel-rpm-macros-7-4 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.