Description of problem: %py_dist_name blindly replace everything with dashes Version-Release number of selected component (if applicable): python-srpm-macros-3-26.fc28.noarch How reproducible: 100% Steps to Reproduce: mailman.spec: Requires: %{py3_dist flufl.lock} mock: No matching package to install: 'python3dist(flufl-lock)' # dnf repoquery --provides python3-flufl-lock python3dist(flufl.lock) = 2.4.1 Expected results: python3-flufl-lock installed Additional info:
Interesting bug, thanks for reporting! I'll fix the macro to not convert dots.
Fixed in rawhide, please test. If there are no problems we might want to push this into live Fedoras as well.
python-rpm-macros-3-28.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-f0b9ca38cc
python-rpm-macros-3-28.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-f0b9ca38cc
python-rpm-macros-3-28.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.
So, it turns out that the behaviour was actually the correct one, it looks like the bug is in setuptools. Here's a PR for setuptools with an explanation: https://github.com/pypa/setuptools/pull/1324 Ideally this should be fixed in setuptools and then the previous rules of canonization should be restored here in python-rpm-macros.