#27 Use tito for RPM creation
Closed: RESOLVED Opened by ncoghlan.

Implicitly converting the PyPI package to an RPM with pyp2rpm in COPR doesn't work properly, as pyp2rpm assumes that PyPI packages a Python libraries, while fedmod is a command line application that happens to run on Python 3.

The most straightforward way to handle that will be to build with tito instead: https://github.com/dgoodwin/tito#getting-started

COPR's autogenerated spec file can be used as a starting point: http://copr-dist-git.fedorainfracloud.org/cgit/@modularity/fedmod/python-fedmod.git/tree/python-fedmod.spec?h=f26

Specific points to fix:

  • only build for Python 3
  • SRPM and RPM name should just be "fedmod" (not python- or python3- prefix)
  • only the unversioned script wrapper should be installed into the bin directory (no commands qualified with the Python version)

Metadata Update from @ncoghlan:
- Issue assigned to ncoghlan

Metadata Update from @ncoghlan:
- Issue marked as blocking: #23

Switched over to tito in this PR: https://pagure.io/modularity/fedmod/pull-request/32

Metadata Update from @ncoghlan:
- Issue close_status updated to: RESOLVED
- Issue status updated to: Closed (was: Open)

Metadata