From 19bd45b40df3c613aaaf7ef27f8ca55760d7e1f9ff5d500a1d93b948aaaadabc Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Mon, 24 Apr 2023 09:28:44 +0000 Subject: [PATCH] Accepting request 1082453 from home:dirkmueller:acdc:as_python3_module - Do not hardcode the python version to get the python-tornadoN version. OBS-URL: https://build.opensuse.org/request/show/1082453 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tornado?expand=0&rev=127 --- python-tornado.changes | 6 ++++++ python-tornado.spec | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/python-tornado.changes b/python-tornado.changes index d85030c..7497113 100644 --- a/python-tornado.changes +++ b/python-tornado.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Apr 24 09:24:37 UTC 2023 - Daniel Garcia + +- Do not hardcode the python version to get the python-tornadoN + version. + ------------------------------------------------------------------- Fri Apr 21 12:37:39 UTC 2023 - Dirk Müller diff --git a/python-tornado.spec b/python-tornado.spec index 4dbf8e1..c68f19b 100644 --- a/python-tornado.spec +++ b/python-tornado.spec @@ -36,7 +36,12 @@ ExclusiveArch: DoNotBuild %endif # query the default provider and assume that all installed python flavors have the same version -%define Nversion %(rpm -q --qf '%%{version}' --whatprovides python310-%{tornadoN}) +%if %{defined sle15_python_module_pythons} +%define Nversion %(rpm -q --qf '%%{version}' --whatprovides %{pythons}-%{tornadoN}) +%else +%define Nversion %(rpm -q --qf '%%{version}' --whatprovides %{mbflavor}-%{tornadoN}) +%endif + Name: python-tornado Version: %{Nversion} Release: 0