From 18043b916d748c6bdf26dc0aad4e2779cff27989c72eddb0de88017243e7ca0b Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 29 Mar 2021 21:11:17 +0000 Subject: [PATCH] Accepting request 882036 from home:bnavigator:branches:openSUSE:Factory - Can't assume non-existence of python38 macros in Leap. gh#openSUSE/python-rpm-macros#107 Test for suse_version instead. Only Tumbleweed has and needs the python_subpackage_only support. OBS-URL: https://build.opensuse.org/request/show/882036 OBS-URL: https://build.opensuse.org/package/show/Base:System/gpgme?expand=0&rev=130 --- gpgme.changes | 8 ++++++++ gpgme.spec | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gpgme.changes b/gpgme.changes index 43ba5e4..8174f39 100644 --- a/gpgme.changes +++ b/gpgme.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Mar 25 16:27:58 UTC 2021 - Ben Greiner + +- Can't assume non-existence of python38 macros in Leap. + gh#openSUSE/python-rpm-macros#107 + Test for suse_version instead. Only Tumbleweed has and needs the + python_subpackage_only support. + ------------------------------------------------------------------- Tue Jan 12 22:35:23 UTC 2021 - Andreas Stieger diff --git a/gpgme.spec b/gpgme.spec index 010a917..c118a6e 100644 --- a/gpgme.spec +++ b/gpgme.spec @@ -57,8 +57,8 @@ BuildRequires: python-rpm-macros BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Test) %endif -%if 0%{?python38_version_nodots} -# if python multiflavor is in place yet, use it to generate subpackages +%if 0%{?suse_version} >= 1550 +# TW: generate subpackages for every python3 flavor %define python_subpackage_only 1 %python_subpackages %else