14
0

- Require tornado5 for py2 and tornado6 for py3 as they

are in different versions
- Also switch from singlespec to explicit writeup for the obvious
  distinction between different versions of 2 and 3 variant

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tornado?expand=0&rev=117
This commit is contained in:
Tomáš Chvátal
2019-10-01 13:44:39 +00:00
committed by Git OBS Bridge
parent ca62df0887
commit 0bd8bf125e
3 changed files with 64 additions and 16 deletions

View File

@@ -1,6 +1,3 @@
This package should always depend on the preferred numbered This package should always depend on the preferred numbered
version of tornado, so "python-tornadoX" where "X" is the version of tornado, so "python-tornadoX" where "X" is the
major version number. major version number.
Currently that is python-tornado4 as other packages
transition to this format

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Oct 1 13:36:35 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Require tornado5 for py2 and tornado6 for py3 as they
are in different versions
- Also switch from singlespec to explicit writeup for the obvious
distinction between different versions of 2 and 3 variant
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Aug 14 15:09:36 UTC 2019 - Todd R <toddrme2178@gmail.com> Wed Aug 14 15:09:36 UTC 2019 - Todd R <toddrme2178@gmail.com>

View File

@@ -18,19 +18,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-tornado Name: python-tornado
Version: 4.5.3 Version: 5
Release: 0 Release: 0
Summary: Open source version of scalable, non-blocking web server that power FriendFeed Summary: Open source version of scalable, non-blocking web server that power FriendFeed
License: Apache-2.0 License: Apache-2.0
Source0: README.suse URL: http://www.tornadoweb.org
Group: Development/Languages/Python Source0: README.SUSE
Url: http://www.tornadoweb.org
BuildRequires: %{pythons}
BuildRequires: python-rpm-macros
Requires: python-tornado-impl = %{version}
Requires: python-tornado-impl = %{version}
BuildArch: noarch BuildArch: noarch
%python_subpackages
%description %description
Tornado is an open source version of the scalable, non-blocking web server and Tornado is an open source version of the scalable, non-blocking web server and
@@ -48,17 +42,66 @@ features — every active user of FriendFeed maintains an open connection to the
FriendFeed servers. (For more information on scaling servers to support FriendFeed servers. (For more information on scaling servers to support
thousands of clients, see The C10K problem.) thousands of clients, see The C10K problem.)
%package -n python2-tornado
Version: 5.1
Release: 0
Summary: Open source version of scalable, non-blocking web server that power FriendFeed
Requires: python-tornado5
Provides: python-tornado = %{version}
Obsoletes: python-tornado < %{version}
%description -n python2-tornado
Tornado is an open source version of the scalable, non-blocking web server and
tools that power FriendFeed. The FriendFeed application is written using a web
framework that looks a bit like web.py or Google's webapp, but with additional
tools and optimizations to take advantage of the underlying non-blocking
infrastructure.
The framework is distinct from most mainstream web server frameworks (and
certainly most Python frameworks) because it is non-blocking and reasonably
fast. Because it is non-blocking and uses epoll, it can handle thousands of
simultaneous standing connections, which means it is ideal for real-time web
services. We built the web server specifically to handle FriendFeed's real-time
features every active user of FriendFeed maintains an open connection to the
FriendFeed servers. (For more information on scaling servers to support
thousands of clients, see The C10K problem.)
%package -n python3-tornado
Version: 6.0
Release: 0
Summary: Open source version of scalable, non-blocking web server that power FriendFeed
Requires: python-tornado6
%description -n python3-tornado
Tornado is an open source version of the scalable, non-blocking web server and
tools that power FriendFeed. The FriendFeed application is written using a web
framework that looks a bit like web.py or Google's webapp, but with additional
tools and optimizations to take advantage of the underlying non-blocking
infrastructure.
The framework is distinct from most mainstream web server frameworks (and
certainly most Python frameworks) because it is non-blocking and reasonably
fast. Because it is non-blocking and uses epoll, it can handle thousands of
simultaneous standing connections, which means it is ideal for real-time web
services. We built the web server specifically to handle FriendFeed's real-time
features every active user of FriendFeed maintains an open connection to the
FriendFeed servers. (For more information on scaling servers to support
thousands of clients, see The C10K problem.)
%prep %prep
%setup -q -T -c %setup -q -T -c
cp %{SOURCE0} . cp %{SOURCE0} .
%build %build
# None :
%install %install
# None :
%files %{python_files} %files -n python2-tornado
%doc README.suse %doc README.SUSE
%files -n python3-tornado
%doc README.SUSE
%changelog %changelog