diff --git a/README.suse b/README.SUSE similarity index 63% rename from README.suse rename to README.SUSE index a6e8212..81ab996 100644 --- a/README.suse +++ b/README.SUSE @@ -1,6 +1,3 @@ This package should always depend on the preferred numbered version of tornado, so "python-tornadoX" where "X" is the major version number. - -Currently that is python-tornado4 as other packages -transition to this format diff --git a/python-tornado.changes b/python-tornado.changes index dd9ba59..f46d554 100644 --- a/python-tornado.changes +++ b/python-tornado.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Oct 1 13:36:35 UTC 2019 - Tomáš Chvátal + +- 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 diff --git a/python-tornado.spec b/python-tornado.spec index 9d9e285..e188dd9 100644 --- a/python-tornado.spec +++ b/python-tornado.spec @@ -18,19 +18,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-tornado -Version: 4.5.3 +Version: 5 Release: 0 Summary: Open source version of scalable, non-blocking web server that power FriendFeed License: Apache-2.0 -Source0: README.suse -Group: Development/Languages/Python -Url: http://www.tornadoweb.org -BuildRequires: %{pythons} -BuildRequires: python-rpm-macros -Requires: python-tornado-impl = %{version} -Requires: python-tornado-impl = %{version} +URL: http://www.tornadoweb.org +Source0: README.SUSE BuildArch: noarch -%python_subpackages %description 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 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 %setup -q -T -c cp %{SOURCE0} . %build -# None +: %install -# None +: -%files %{python_files} -%doc README.suse +%files -n python2-tornado +%doc README.SUSE + +%files -n python3-tornado +%doc README.SUSE %changelog