From 83a4717e149832dca267d512bf88cf04dbc1a1b0c3e77e155ab8bec22e3cec2e Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 21 Apr 2023 14:02:13 +0000 Subject: [PATCH] Accepting request 1081667 from home:dirkmueller:acdc:as_python3_module SR for python stack proposal OBS-URL: https://build.opensuse.org/request/show/1081667 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tornado?expand=0&rev=126 --- python-tornado.changes | 10 ++++++++++ python-tornado.spec | 8 ++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/python-tornado.changes b/python-tornado.changes index 90a14d2..d85030c 100644 --- a/python-tornado.changes +++ b/python-tornado.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Fri Apr 21 12:37:39 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:45:29 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + ------------------------------------------------------------------- Mon Feb 8 18:53:51 UTC 2021 - Ben Greiner diff --git a/python-tornado.spec b/python-tornado.spec index c5c15bb..4dbf8e1 100644 --- a/python-tornado.spec +++ b/python-tornado.spec @@ -1,7 +1,7 @@ # # spec file for package python-tornado # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,6 +17,7 @@ %bcond_without python2 +%{?sle15_python_module_pythons} %global mbflavor @BUILD_FLAVOR@%{nil} %if "%{mbflavor}" == "python2" && 0%{with python2} # TW Factory defines _without_python2 and skips all python3 flavors if skip_python3 is defined @@ -35,14 +36,13 @@ 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 %{mbflavor}-%{tornadoN}) -%{?!python_module:%define python_module() %{?!skip_python2:python-%{**}} %{?!skip_python3:python3-%{**}}} +%define Nversion %(rpm -q --qf '%%{version}' --whatprovides python310-%{tornadoN}) Name: python-tornado Version: %{Nversion} Release: 0 Summary: A Python web framework and asynchronous networking library License: Apache-2.0 -URL: http://www.tornadoweb.org +URL: https://www.tornadoweb.org Source0: README.SUSE BuildRequires: %{python_module %{tornadoN}} BuildRequires: python-rpm-macros