forked from pool/python-tornado
Revert: tornado 5.1 breaks salt (boo#1101780)
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tornado?expand=0&rev=50
This commit is contained in:
@@ -16,16 +16,18 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without python2
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-tornado
|
||||
Version: 5.1
|
||||
Version: 4.5.3
|
||||
Release: 0
|
||||
Summary: Open source version of scalable, non-blocking web server that power FriendFeed
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
URL: http://www.tornadoweb.org
|
||||
Url: http://www.tornadoweb.org
|
||||
Source: https://files.pythonhosted.org/packages/source/t/tornado/tornado-%{version}.tar.gz
|
||||
Patch0: tornado-async-deprecations.patch
|
||||
Patch1: tornado-testsuite_timeout.patch
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module pycurl}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
@@ -88,6 +90,8 @@ thousands of clients, see The C10K problem.)
|
||||
%setup -q -n tornado-%{version}
|
||||
# Fix non-executable script rpmlint issue:
|
||||
find demos tornado -name "*.py" -exec sed -i "/#\!\/usr\/bin\/.*/d" {} \;
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
%pre
|
||||
# remove egg-info _file_, being replaced by an egg-info directory
|
||||
@@ -108,8 +112,7 @@ export ASYNC_TEST_TIMEOUT=30
|
||||
%python_exec -m tornado.test.runtests
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc demos
|
||||
%doc demos LICENSE
|
||||
%{python_sitearch}/tornado
|
||||
%{python_sitearch}/tornado-%{version}-py*.egg-info
|
||||
|
||||
|
Reference in New Issue
Block a user