Closed irushchyshyn closed 7 years ago
There is also couple of packages containing "Python-" prefix on PyPI. Python-Crest for example, in this case result is following:
%global pypi_name Python-Crest
Name: python-%{pypi_name}
Maybe we should cover this case as well.
There is also couple of packages containing "Python-" prefix on PyPI. Python-Crest for example, in this case result is following: %global pypi_name Python-Crest Name: python-%{pypi_name} Maybe we should cover this case as well.
Thanks for a suggestion. I have covered those packages in 2c7783f
This PR fixes also #66, right? Could you reference it in one of the commits? It seems to work fine for both cases:
- name of the package is explicitly changed by -r option
- original PyPI name contains python- prefix
Thanks for a review. I have referenced the issue in the PR description.
Works like a charm :)
%{srcname}
macro to be used alongside%{pypi_name}
if the package name is to be changed (applies also for packages already starting withpython-
orPython-
in PyPI)macroed_pkg_name
python-sphinx.spec
doc/conf.py
in tests folder)Fixes issues #87 and #66.