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