From 1daf370d36c480e902ce572d891a69a5cd787c9bcfbeac0fd5b6c556dc9a2146 Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Tue, 30 Mar 2021 15:49:40 +0000 Subject: [PATCH] Accepting request 881352 from home:bnavigator:branches:devel:libraries:c_c++ - 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/881352 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libpfm?expand=0&rev=56 --- libpfm.changes | 8 ++++++++ libpfm.spec | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/libpfm.changes b/libpfm.changes index 45f5067..c8e6941 100644 --- a/libpfm.changes +++ b/libpfm.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. + ------------------------------------------------------------------- Thu Feb 11 16:57:49 UTC 2021 - Tony Jones diff --git a/libpfm.spec b/libpfm.spec index 6b60a37..a0c79a6 100644 --- a/libpfm.spec +++ b/libpfm.spec @@ -35,8 +35,8 @@ BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros BuildRequires: swig >= 2.0.5 -%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