diff --git a/epel-rpm-macros.spec b/epel-rpm-macros.spec index 9ecc577..f907bf9 100644 --- a/epel-rpm-macros.spec +++ b/epel-rpm-macros.spec @@ -34,9 +34,12 @@ Requires: python-srpm-macros # Since the RHEL python-devel package doesn't require them, bring them in here Requires: python-rpm-macros Requires: python2-rpm-macros -# Make sure EPEL8's Python 3 packages use /usr/bin/python3.6 or python3.8 -# 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. +# If multiple versions are installed together, it will prefer python36-rpm-macros, the default Python version. Requires: (python-modular-rpm-macros if (python36-devel or python38-devel or python39-devel)) +# We use weak dependencies here in order to avoid creating conflicts between +# the different python3X-devel packages. Recommends: (python36-rpm-macros if python36-devel) Suggests: (python38-rpm-macros if python38-devel) Suggests: (python39-rpm-macros if python39-devel)