#27 Use tito for RPM creation
Closed: RESOLVED 6 years ago Opened 6 years ago 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

6 years ago

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

6 years ago

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

6 years ago

Login to comment on this ticket.

Metadata