Description of problem: The recent update that added a python26 subpackage has dependencies on python26 in the main package as well as the python26 subpackage. This is leading to python-pygments dragging in python26. Version-Release number of selected component (if applicable): python-pygments-1.4-1.el5 How reproducible: Every time Steps to Reproduce: 1.rpm -q --requires python-pygments 2. 3. Actual results: /usr/bin/python python(abi) = 2.4 python(abi) = 2.6 python-imaging python-setuptools python26-distribute python26-imaging rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Expected results: No python(abi) = 2.6, python26-distribute, python26-imaging in the output Additional info: The problem is in this section of the spec file: %if 0%{?with_python26} BuildRequires: python26-devel, python26-distribute Requires: python26-distribute, python26-imaging Requires: python(abi) = 2.6 %endif It should be: %if 0%{?with_python26} BuildRequires: python26-devel, python26-distribute %endif The Requires that were here should instead go here: %package -n python26-pygments Summary: A syntax highlighting engine written in Python 2.6 Group: Development/Libraries Requires: python26-distribute Requires: python26-imaging Requires: python(abi) = 2.6 (Note that I'm not sure that python(abi) is needed there -- rpmbuild may well detect that automatically.)
*** Bug 733612 has been marked as a duplicate of this bug. ***
If you don't have time to work on this but don't mind me fiddling with it, i'd be happy to apply the change and build new packages for epel5. Just let me know.
Toshio, Go for it! :-)
python-pygments-1.4-2.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/python-pygments-1.4-2.el5
I've fixed this but in the process discovered that the module is not being byte compiled properly. Exploring this with dmalcolm, we could come up with no solution that would properly byte compile both the python26 and the python(2.4) module. I'd recommend removing the python26 subpackage and submitting it as its own package.
Thanks to Jeffrey Ness, I've implemented a fix for byte compilation that also simplifies the spec file. I'll issue it as a new update in a moment.
python-pygments-1.4-3.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/python-pygments-1.4-3.el5
Package python-pygments-1.4-3.el5: * should fix your issue, * was pushed to the Fedora EPEL 5 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing python-pygments-1.4-3.el5' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/python-pygments-1.4-3.el5 then log in and leave karma (feedback).
python-pygments-1.4-3.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.