From 0d811ff1492619e9d095415f40e39499de6b4141b8fe76ed0412c262f0794098 Mon Sep 17 00:00:00 2001 From: Robert Schweikert Date: Wed, 25 Nov 2020 23:19:39 +0000 Subject: [PATCH 1/2] - do not build Python2 for distros greater than 12 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-aws-sam-translator?expand=0&rev=18 --- python-aws-sam-translator.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python-aws-sam-translator.spec b/python-aws-sam-translator.spec index 8db3dd6..1c7fb98 100644 --- a/python-aws-sam-translator.spec +++ b/python-aws-sam-translator.spec @@ -24,7 +24,9 @@ %else %bcond_without test %endif -%bcond_without python2 +%if 0%{?suse_version} > 1500 +%define skip_python2 1 +%endif Name: python-aws-sam-translator Version: 1.25.0 Release: 0 From 676a1e5684cb4e66cde6a4dfa56ac127ca1b4a642a1fa785f1c9440cffde376f Mon Sep 17 00:00:00 2001 From: Robert Schweikert Date: Thu, 26 Nov 2020 11:11:06 +0000 Subject: [PATCH 2/2] - Only build Python3 flavors for distributions 15 and greater OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-aws-sam-translator?expand=0&rev=19 --- python-aws-sam-translator.changes | 5 +++++ python-aws-sam-translator.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python-aws-sam-translator.changes b/python-aws-sam-translator.changes index 2ee9b24..9be32bc 100644 --- a/python-aws-sam-translator.changes +++ b/python-aws-sam-translator.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 26 11:07:08 UTC 2020 - Robert Schweikert + +- Only build Python3 flavors for distributions 15 and greater + ------------------------------------------------------------------- Wed Jul 1 12:55:50 UTC 2020 - Marketa Calabkova diff --git a/python-aws-sam-translator.spec b/python-aws-sam-translator.spec index 1c7fb98..8a0b180 100644 --- a/python-aws-sam-translator.spec +++ b/python-aws-sam-translator.spec @@ -24,7 +24,7 @@ %else %bcond_without test %endif -%if 0%{?suse_version} > 1500 +%if 0%{?suse_version} >= 1500 %define skip_python2 1 %endif Name: python-aws-sam-translator