From 653db1df00745d787a1ffbf6981e4b17d239971f Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Mon, 4 Jul 2022 15:34:00 -0500 Subject: [PATCH] Only pull in python2-rpm-macros when python2-devel is present. --- epel-rpm-macros.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/epel-rpm-macros.spec b/epel-rpm-macros.spec index df0ed49..6ae1513 100644 --- a/epel-rpm-macros.spec +++ b/epel-rpm-macros.spec @@ -33,7 +33,7 @@ Requires: lua-srpm-macros 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 +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. # 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. @@ -112,6 +112,7 @@ install -Dpm 644 %{SOURCE150} \ - Pull in appropriate python3X-rpm-macros package for non-default Python versions - 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 - 8-29 - Add `Requires: ansible-srpm-macros`