From 3bbcb9cdcc204b87e98c27b2f098eb286d80a25ff56c172396bd1939876bc005 Mon Sep 17 00:00:00 2001 From: Robert Schweikert Date: Wed, 10 Apr 2024 18:55:51 +0000 Subject: [PATCH] - Switch to Python 3.11 build in SLE 15 SP4 and openSUSE Leap 15.4 and later (jsc#PCT-371) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-aws-sam-translator?expand=0&rev=56 --- python-aws-sam-translator.changes | 6 ++++++ python-aws-sam-translator.spec | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/python-aws-sam-translator.changes b/python-aws-sam-translator.changes index 3fc2a10..9adedb0 100644 --- a/python-aws-sam-translator.changes +++ b/python-aws-sam-translator.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Apr 10 18:54:55 UTC 2024 - Robert Schweikert + +- Switch to Python 3.11 build in SLE 15 SP4 and openSUSE Leap 15.4 and + later (jsc#PCT-371) + ------------------------------------------------------------------- Fri Apr 5 09:04:00 UTC 2024 - John Paul Adrian Glaubitz diff --git a/python-aws-sam-translator.spec b/python-aws-sam-translator.spec index eaf797d..7871401 100644 --- a/python-aws-sam-translator.spec +++ b/python-aws-sam-translator.spec @@ -23,9 +23,7 @@ %else %bcond_without test %endif -%if 0%{?suse_version} >= 1500 -%define skip_python2 1 -%endif +%{?sle15_python_module_pythons} Name: python-aws-sam-translator Version: 1.87.0 Release: 0 @@ -48,6 +46,9 @@ BuildArch: noarch %if 0%{?suse_version} < 1500 BuildRequires: python %endif +%if 0%{?sle_version} >= 150400 +Obsoletes: python3-aws-sam-translator < %{version} +%endif # SECTION test requirements BuildRequires: %{python_module PyYAML >= 5.4} BuildRequires: %{python_module boto3 >= 1.19.5}