fedora-python / pyp2rpm

Tool to convert a package from PyPI to RPM SPECFILE or to generate SRPM.
MIT License
127 stars 39 forks source link

support for rhel/centos distrubutions [feature proposal] #25

Closed marbu closed 8 years ago

marbu commented 8 years ago

I would be nice if pyp2rpm could create spec files following packaging policies for rhel/centos 6 and 7 distributions. Even though those packaging policies are based on older fedora ones, I'm not sure if just adding proper template would be enough.

How is building packages for rhel/centos connected to fedora? Here is the use case I have in mind: author of new python module would like to build packages for centos and fedora in copr. Note that copr can build packages for rhel/centos even though it's a fedora project.

marbu commented 8 years ago

Any thoughts there?

Conan-Kudo commented 8 years ago

@marbu I think this would be quite desirable to have, especially with the new guidelines for actually supporting Python 2 and Python 3 (which is somewhat complex).

Why don't you go ahead and make a pull request to add an EPEL template?

marbu commented 8 years ago

I wonder if it would be possible for the suggested global solution fom issue #22 to handle proposed EPEL support as well. Direct dnf query is not an option, moreover most packages are not build in Fedora infactructure unless a package is part of the EPEL directly, so it's not clear which system to query. Eg. python-markupsafe is available in EPEL 5, but for EPEL 6 and 7 (as it's directly available in core repositories).