Only pull in python2-rpm-macros when python2-devel is present.

epel8
Maxwell G 3 years ago
parent c2cea18f09
commit 653db1df00
No known key found for this signature in database
GPG Key ID: F79E4E25E8C661F8

@ -33,7 +33,7 @@ Requires: lua-srpm-macros
Requires: python-srpm-macros Requires: python-srpm-macros
# Since the RHEL python-devel package doesn't require them, bring them in here # Since the RHEL python-devel package doesn't require them, bring them in here
Requires: python-rpm-macros Requires: python-rpm-macros
Requires: python2-rpm-macros Requires: (python2-rpm-macros if python2-devel)
# Make sure EPEL8's Python 3 packages use /usr/bin/python3.{6,8,9} instead of /usr/libexec/platform-python. # Make sure EPEL8's Python 3 packages use /usr/bin/python3.{6,8,9} instead of /usr/libexec/platform-python.
# This will install the python3X-rpm-macros version corresponding to the python3X-devel version installed. # This will install the python3X-rpm-macros version corresponding to the python3X-devel version installed.
# If multiple versions are installed together, it will prefer python36-rpm-macros, the default Python version. # If multiple versions are installed together, it will prefer python36-rpm-macros, the default Python version.
@ -112,6 +112,7 @@ install -Dpm 644 %{SOURCE150} \
- Pull in appropriate python3X-rpm-macros package for non-default Python - Pull in appropriate python3X-rpm-macros package for non-default Python
versions versions
- Remove macros that have been added to RHEL itself. - Remove macros that have been added to RHEL itself.
- Only pull in python2-rpm-macros when python2-devel is present.
* Tue May 17 2022 Maxwell G <gotmax@e.email> - 8-29 * Tue May 17 2022 Maxwell G <gotmax@e.email> - 8-29
- Add `Requires: ansible-srpm-macros` - Add `Requires: ansible-srpm-macros`

Loading…
Cancel
Save