Define %python2 and %python3

See https://pagure.io/packaging-committee/issue/907

Redefine %__pythonX to change the behavior of %pythonX, %pythonX_version, etc.
Use %pythonX in spec.
epel9
Miro Hrončok 5 years ago
parent 1ebe3692b2
commit 77c53c7dc6

@ -1,6 +1,6 @@
Name: epel-rpm-macros
Version: 8
Release: 1
Release: 2
Summary: Extra Packages for Enterprise Linux RPM macros
Group: System Environment/Base
@ -47,6 +47,9 @@ install -Dpm 644 %{SOURCE1} \
%changelog
* Mon Sep 30 2019 Miro Hrončok <mhroncok@redhat.com> - 8-2
- Define %%python2 and %%python3
* Wed Jun 5 2019 Stephen Smoogen <smooge@smoogen-laptop.localdomain> - 8-1
- Make an initial macro set for 8.

@ -16,3 +16,6 @@
# Bash completions; not in bash to not intefere with install ordering
%bash_completion_dir /usr/share/bash-completion/completions/
# Use the non-underscored Python macros to refer to Python in spec, etc.
%python2 %__python2
%python3 %__python3

Loading…
Cancel
Save