From efb6cfda10ce5069c8c321868a3ac7dfd640d2e6a84667423e4c76593a435330 Mon Sep 17 00:00:00 2001 From: Johannes Kastl Date: Tue, 16 May 2023 10:21:12 +0000 Subject: [PATCH] Accepting request 1087381 from home:ojkastl_buildservice:branches:systemsmanagement:ansible rework %if condition to work with new sle15_python_module_pythons macro on SLES15/Leap15 OBS-URL: https://build.opensuse.org/request/show/1087381 OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:ansible/python-ansible-compat?expand=0&rev=13 --- python-ansible-compat.changes | 6 ++++++ python-ansible-compat.spec | 6 ++---- 2 files changed, 8 insertions(+), 4 deletions(-) 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