diff --git a/python-ansible-compat.changes b/python-ansible-compat.changes index 281129d..ddf4842 100644 --- a/python-ansible-compat.changes +++ b/python-ansible-compat.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue May 16 09:43:46 UTC 2023 - Johannes Kastl + +- rework %if condition to work with new sle15_python_module_pythons + macro on SLES15/Leap15 + ------------------------------------------------------------------- Fri Apr 14 06:54:22 UTC 2023 - Johannes Kastl diff --git a/python-ansible-compat.spec b/python-ansible-compat.spec index c437014..e09dc09 100644 --- a/python-ansible-compat.spec +++ b/python-ansible-compat.spec @@ -16,10 +16,8 @@ # -%if 0%{?suse_version} < 1550 -# Leap15, SLES15 -%define pythons python310 -%else +%{?sle15_python_module_pythons} +%if 0%{?suse_version} >= 1650 # Tumbleweed # only works with the python version which the package 'ansible' uses %define pythons python3