forked from pool/python-tornado
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
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 21 12:37:39 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- add sle15_python_module_pythons (jsc#PED-68)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 13 22:45:29 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Make calling of %{sle15modernpython} optional.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 8 18:53:51 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user