From 0dd05ec2c57ed411a1b1b38375ca002a241837f0347311a19374cbab9642a7a7 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Wed, 25 Jan 2023 11:07:08 +0000 Subject: [PATCH] Accepting request 1060847 from home:bnavigator:branches:KDE:Qt:PyQt - Expand version from installed flavors: The primary python3 flavor could be older on a backport for 15.X OBS-URL: https://build.opensuse.org/request/show/1060847 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:PyQt/python-sip?expand=0&rev=5 --- python-sip.changes | 6 ++++++ python-sip.spec | 5 ++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/python-sip.changes b/python-sip.changes index 0a642df..fa5fdb6 100644 --- a/python-sip.changes +++ b/python-sip.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jan 25 11:04:06 UTC 2023 - Ben Greiner + +- Expand version from installed flavors: The primary python3 flavor + could be older on a backport for 15.X + ------------------------------------------------------------------- Sun Nov 7 15:24:36 UTC 2021 - Ben Greiner diff --git a/python-sip.spec b/python-sip.spec index 8cebe2e..57d5b3a 100644 --- a/python-sip.spec +++ b/python-sip.spec @@ -19,9 +19,8 @@ # Default is sip6 for all distributions. Be sure to branch both python-sip6 and python-sip into # any project using this metapackge. %define sipN sip6 -# query the default provider and assume that all installed python flavors have the same version -%define Nversion %(rpm -q --qf '%%{version}' --whatprovides python3-%{sipN}-devel) -%{?!python_module:%define python_module() python3-%{**}} +# Assume that all installed python flavors have the same version +%define Nversion %(rpm -q --qf '%%{version}' --whatprovides $(echo %{python_module %{sipN}-devel}| cut -d " " -f 1)) %define skip_python2 1 %define plainpython python Name: python-sip