On Tue, Jun 15, 2021 at 5:35 AM Miro Hrončok mhroncok@redhat.com wrote:
On 14. 06. 21 7:31, Zbigniew Jędrzejewski-Szmek wrote:
BuildRequires: %{py3_dist pytest}
Does it make sense to recommend py3_dist here? python3dist(pytest) is not more complex but can be fed to 'dnf install' directly, so in the end it's more flexible. I always find the macro more obfuscation than anything for package names which don't require normalization.
Replaced with python3dist(pytest). The %py3_dist remains documented in the guidelines but is not longer used in examples like this (this was the only instance).
The case where we'd use macros would be if we want to extend for building for multiple Pythons from one spec file again (which is something that'd be nice to do in the future)...