pyp2rpm: egg-info syntax wrong in epel7.spec

Hello,

with the default epel7.spec if I run

pyp2rpm -o epel7 -t epel7 -b 3 -s dist/<mypackagename>-0.1.post8.tar.gz

in %files -n python%{python3_pkgversion}-%{pypi_name} I read:

%{python3_sitelib}/<mypackagename>-%{version}-py%{python3_version}.egg-info

This is wrong. I should see: %{python3_sitelib}/<mypackagename>-%{version}.post8-py%{python3_version}.egg-info

It lacks of .post8. Now I’m fixing by hands… could you help me to modify the template in order to let pyp2rpm to write the right line? Thank you very much

Ps: the issue is the same for fedora spec too.

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 16 (9 by maintainers)

Most upvoted comments

I wonder if the “post” in the rpm version is a good choice.

No, not as is. That would be problematic as described in Fedora’s versioning guidelines (https://docs.fedoraproject.org/en-US/packaging-guidelines/Versioning/#_unsortable_versions)

pyp2rpm may simply need a template filter to transform the version into something usable with ‘~’ or ‘^’. (As in the “Versioning prereleases with tilde” section of the above document)

Does PR #260 fix that problem?