2015-03-02 05:34:45 +00:00
|
|
|
%if 0%{?fedora}
|
2012-02-06 14:20:52 +00:00
|
|
|
%global with_python3 1
|
|
|
|
%endif
|
|
|
|
|
2015-11-10 23:19:42 +00:00
|
|
|
%global srcname tornado
|
2009-11-02 13:45:03 +00:00
|
|
|
|
2015-11-10 23:19:42 +00:00
|
|
|
Name: python-%{srcname}
|
2017-04-21 03:34:05 +00:00
|
|
|
Version: 4.5.1
|
|
|
|
Release: 1%{?d.1ist}
|
2009-11-02 13:45:03 +00:00
|
|
|
Summary: Scalable, non-blocking web server and tools
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: http://www.tornadoweb.org
|
2016-10-03 01:57:15 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/t/tornado/tornado-%{version}.tar.gz
|
2015-03-02 05:34:45 +00:00
|
|
|
# Patch to use system CA certs instead of certifi
|
|
|
|
Patch0: python-tornado-cert.patch
|
2009-11-02 13:45:03 +00:00
|
|
|
|
2015-03-02 05:34:45 +00:00
|
|
|
BuildRequires: python2-devel
|
2016-02-18 21:09:20 +00:00
|
|
|
BuildRequires: python2-backports_abc
|
2015-07-10 17:44:30 +00:00
|
|
|
%if 0%{?fedora} < 22
|
2014-05-22 21:04:01 +00:00
|
|
|
BuildRequires: python-backports-ssl_match_hostname
|
2015-07-10 17:44:30 +00:00
|
|
|
%endif
|
2016-02-18 22:34:32 +00:00
|
|
|
BuildRequires: python2-singledispatch
|
2012-02-06 14:20:52 +00:00
|
|
|
%if 0%{?with_python3}
|
2017-04-17 17:23:03 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
2016-02-18 21:09:20 +00:00
|
|
|
%if 0%{?fedora} < 24
|
|
|
|
# Only needed for python < 3.5
|
2017-04-17 17:23:03 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-backports_abc
|
2016-02-18 21:09:20 +00:00
|
|
|
%endif
|
2012-02-06 14:20:52 +00:00
|
|
|
%endif
|
2009-11-02 13:45:03 +00:00
|
|
|
|
|
|
|
%description
|
2011-10-25 15:12:28 +00:00
|
|
|
Tornado is an open source version of the scalable, non-blocking web
|
|
|
|
server and tools.
|
2009-11-02 13:45:03 +00:00
|
|
|
|
2011-10-25 15:12:28 +00:00
|
|
|
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.
|
2009-11-02 13:45:03 +00:00
|
|
|
|
2015-11-10 23:19:42 +00:00
|
|
|
%package -n python2-%{srcname}
|
|
|
|
Summary: Scalable, non-blocking web server and tools
|
|
|
|
%{?python_provide:%python_provide python2-%{srcname}}
|
|
|
|
|
|
|
|
%if 0%{?fedora} < 22
|
|
|
|
Requires: python-backports-ssl_match_hostname
|
|
|
|
%endif
|
|
|
|
Requires: python-pycurl
|
2016-02-18 21:09:20 +00:00
|
|
|
Requires: python2-backports_abc
|
|
|
|
Requires: python2-singledispatch
|
2015-11-10 23:19:42 +00:00
|
|
|
|
|
|
|
%description -n python2-%{srcname}
|
|
|
|
Tornado is an open source version of the scalable, non-blocking web
|
|
|
|
server and tools.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
2009-11-02 13:45:03 +00:00
|
|
|
%package doc
|
|
|
|
Summary: Examples for python-tornado
|
|
|
|
Group: Documentation
|
2017-04-17 17:23:03 +00:00
|
|
|
Obsoletes: python%{python3_pkgversion}-%{srcname}-doc < 4.2.1-3
|
|
|
|
Provides: python%{python3_pkgversion}-%{srcname}-doc = %{version}-%{release}
|
2009-11-02 13:45:03 +00:00
|
|
|
|
|
|
|
%description doc
|
2011-11-09 10:18:31 +00:00
|
|
|
Tornado is an open source version of the scalable, non-blocking web
|
|
|
|
server and and tools. This package contains some example applications.
|
2009-11-02 13:45:03 +00:00
|
|
|
|
2012-02-06 14:20:52 +00:00
|
|
|
%if 0%{?with_python3}
|
2017-04-17 17:23:03 +00:00
|
|
|
%package -n python%{python3_pkgversion}-%{srcname}
|
2012-02-06 14:20:52 +00:00
|
|
|
Summary: Scalable, non-blocking web server and tools
|
2017-04-17 17:23:03 +00:00
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
|
|
|
Requires: python%{python3_pkgversion}-pycurl
|
2016-02-18 21:09:20 +00:00
|
|
|
%if 0%{?fedora} < 24
|
|
|
|
# Only needed for python < 3.5
|
2017-04-17 17:23:03 +00:00
|
|
|
Requires: python%{python3_pkgversion}-backports_abc
|
2016-02-18 21:09:20 +00:00
|
|
|
%endif
|
2015-11-10 23:19:42 +00:00
|
|
|
|
2017-04-17 17:23:03 +00:00
|
|
|
%description -n python%{python3_pkgversion}-%{srcname}
|
2012-02-06 14:20:52 +00:00
|
|
|
Tornado is an open source version of the scalable, non-blocking web
|
|
|
|
server and tools.
|
|
|
|
|
|
|
|
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.
|
|
|
|
%endif # with_python3
|
|
|
|
|
2009-11-02 13:45:03 +00:00
|
|
|
%prep
|
2015-11-10 23:19:42 +00:00
|
|
|
%setup -q -n %{srcname}-%{version}
|
2015-03-02 05:34:45 +00:00
|
|
|
%patch0 -p1 -b .cert
|
2009-11-02 13:45:03 +00:00
|
|
|
# remove shebang from files
|
2011-11-09 10:18:31 +00:00
|
|
|
%{__sed} -i.orig -e '/^#!\//, 1d' *py tornado/*.py tornado/*/*.py
|
2009-11-02 13:45:03 +00:00
|
|
|
|
|
|
|
%build
|
2012-02-06 14:20:52 +00:00
|
|
|
%if 0%{?with_python3}
|
2015-09-18 22:16:50 +00:00
|
|
|
%py3_build
|
2012-02-06 14:20:52 +00:00
|
|
|
%endif # with_python3
|
2015-09-18 22:16:50 +00:00
|
|
|
%py2_build
|
2009-11-02 13:45:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2012-02-06 14:20:52 +00:00
|
|
|
%if 0%{?with_python3}
|
2015-09-18 22:16:50 +00:00
|
|
|
%py3_install
|
2012-02-06 14:20:52 +00:00
|
|
|
%endif # with_python3
|
2015-09-18 22:16:50 +00:00
|
|
|
%py2_install
|
2009-11-02 13:45:03 +00:00
|
|
|
|
|
|
|
|
2011-11-09 10:18:31 +00:00
|
|
|
%check
|
2015-09-18 22:16:50 +00:00
|
|
|
%if 0%{?with_python3}
|
2015-11-10 23:19:42 +00:00
|
|
|
%{__python3} -m tornado.test.runtests --verbose
|
2015-09-18 22:16:50 +00:00
|
|
|
%endif # with_python3
|
2015-11-10 23:19:42 +00:00
|
|
|
%{__python2} -m tornado.test.runtests --verbose
|
2015-09-18 22:16:50 +00:00
|
|
|
|
2009-11-02 13:45:03 +00:00
|
|
|
|
2016-02-23 03:41:45 +00:00
|
|
|
%files -n python2-%{srcname}
|
2015-09-18 22:16:50 +00:00
|
|
|
%doc README.rst
|
2015-11-10 23:19:42 +00:00
|
|
|
%{python2_sitearch}/%{srcname}/
|
|
|
|
%{python2_sitearch}/%{srcname}-%{version}-*.egg-info
|
2009-11-02 13:45:03 +00:00
|
|
|
|
|
|
|
%files doc
|
2015-09-18 22:16:50 +00:00
|
|
|
%doc demos
|
2009-11-02 13:45:03 +00:00
|
|
|
|
2012-02-06 14:20:52 +00:00
|
|
|
%if 0%{?with_python3}
|
2017-04-17 17:23:03 +00:00
|
|
|
%files -n python%{python3_pkgversion}-%{srcname}
|
2015-09-18 22:16:50 +00:00
|
|
|
%doc README.rst
|
2015-11-10 23:19:42 +00:00
|
|
|
%{python3_sitearch}/%{srcname}/
|
|
|
|
%{python3_sitearch}/%{srcname}-%{version}-*.egg-info
|
2012-02-06 14:20:52 +00:00
|
|
|
%endif
|
|
|
|
|
2011-11-09 10:18:31 +00:00
|
|
|
|
2009-11-02 13:45:03 +00:00
|
|
|
%changelog
|
2017-04-21 03:34:05 +00:00
|
|
|
* Thu Apr 20 2017 Orion Poplawski <orion@cora.nwra.com> - 4.5.1-1
|
|
|
|
- Update to 4.5.1
|
|
|
|
|
2017-04-17 17:23:03 +00:00
|
|
|
* Mon Apr 17 2017 Orion Poplawski <orion@cora.nwra.com> - 4.5-1
|
|
|
|
- Update to 4.5
|
|
|
|
|
2017-02-11 10:42:53 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-12-13 00:49:43 +00:00
|
|
|
* Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 4.4.2-2
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
- Added patch to fix Python 3.6 test failures
|
|
|
|
|
2016-10-03 01:57:15 +00:00
|
|
|
* Sun Oct 2 2016 Orion Poplawski <orion@cora.nwra.com> - 4.4.2-1
|
|
|
|
- Update to 4.4.2
|
|
|
|
|
2016-09-16 04:00:32 +00:00
|
|
|
* Thu Sep 15 2016 Orion Poplawski <orion@cora.nwra.com> - 4.4.1-1
|
|
|
|
- Update to 4.4.1
|
|
|
|
- Drop requires patch, fixed upstream
|
|
|
|
|
2016-09-16 03:52:58 +00:00
|
|
|
* Thu Sep 15 2016 Orion Poplawski <orion@cora.nwra.com> - 4.3-5
|
|
|
|
- Remove backports.ssl_match_hostname from python2-tornado egg requires (bug #1372887)
|
|
|
|
|
2016-09-16 03:26:17 +00:00
|
|
|
* Thu Sep 15 2016 Orion Poplawski <orion@cora.nwra.com> - 4.3-4
|
|
|
|
- Remove certifi from python2-tornado egg requires (bug #1372886)
|
|
|
|
|
2016-07-19 11:52:29 +00:00
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3-3
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
2016-02-23 03:41:45 +00:00
|
|
|
* Mon Feb 22 2016 Orion Poplawski <orion@cora.nwra.com> - 4.3-2
|
|
|
|
- Properly build python2-tornado
|
|
|
|
|
2016-02-18 21:09:20 +00:00
|
|
|
* Thu Feb 18 2016 Orion Poplawski <orion@cora.nwra.com> - 4.3-1
|
|
|
|
- Update to 4.3
|
|
|
|
- Drop upstream patches
|
|
|
|
|
2016-02-04 21:09:59 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-11-10 23:19:42 +00:00
|
|
|
* Tue Nov 10 2015 Orion Poplawski <orion@cora.nwra.com> - 4.2.1-3
|
|
|
|
- Build python2 packages, drop separate python3 doc package
|
|
|
|
|
2015-10-14 12:54:21 +00:00
|
|
|
* Wed Oct 14 2015 Robert Kuska <rkuska@redhat.com> - 4.2.1-2
|
|
|
|
- Rebuilt for Python3.5 rebuild
|
|
|
|
- Add patch to use getfullargspec on python3
|
|
|
|
- Add patch to fix failing tests with python3.5
|
|
|
|
|
2015-11-10 23:01:03 +00:00
|
|
|
* Fri Sep 18 2015 Orion Poplawski <orion@cora.nwra.com> - 4.2.1-1
|
2015-09-18 22:16:50 +00:00
|
|
|
- Update to 4.2.1
|
|
|
|
- Modernize spec
|
|
|
|
|
2015-07-10 17:44:30 +00:00
|
|
|
* Fri Jul 10 2015 Orion Poplawski <orion@cora.nwra.com> - 4.1-3
|
|
|
|
- Do not require python-backports-ssl_match_hostname for F22+ (bug #1231368)
|
|
|
|
|
2015-06-18 21:04:16 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-03-02 05:34:45 +00:00
|
|
|
* Sun Mar 1 2015 Orion Poplawski <orion@cora.nwra.com> - 4.1-1
|
|
|
|
- Update to 4.1
|
|
|
|
- Modernize spec
|
|
|
|
|
2014-12-05 18:41:59 +00:00
|
|
|
* Fri Dec 5 2014 Orion Poplawski <orion@cora.nwra.com> - 3.2.1-4
|
|
|
|
- Drop requires python-simplejson
|
|
|
|
|
2014-08-17 21:55:06 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-07 23:40:08 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-22 21:04:01 +00:00
|
|
|
* Thu May 22 2014 Thomas Spura <tomspur@fedoraproject.org> - 3.2.1-1
|
|
|
|
- update to 3.2.1
|
|
|
|
- no noarch anymore
|
2014-05-29 16:09:19 +00:00
|
|
|
- remove defattr
|
2014-05-22 21:04:01 +00:00
|
|
|
|
2014-05-15 13:58:24 +00:00
|
|
|
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 2.2.1-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
|
|
2013-08-04 10:13:46 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-06-14 13:00:24 +00:00
|
|
|
* Fri Jun 14 2013 Thomas Spura <tomspur@fedoraproject.org> - 2.2.1-5
|
|
|
|
- remove rhel conditional for with_python3:
|
|
|
|
https://fedorahosted.org/fpc/ticket/200
|
|
|
|
|
2013-02-14 20:34:37 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-08-04 10:09:41 +00:00
|
|
|
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 2.2.1-3
|
|
|
|
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
|
|
|
|
|
2012-07-21 10:14:42 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-05-20 20:29:26 +00:00
|
|
|
* Sun May 20 2012 Thomas Spura <tomspur@fedoraproject.org> - 2.2.1-1
|
|
|
|
- update to upstream release 2.2.1 (fixes CVE-2012-2374)
|
|
|
|
- fix typo for epel6 macro bug #822972 (Florian La Roche)
|
|
|
|
|
2012-02-09 12:48:00 +00:00
|
|
|
* Thu Feb 9 2012 Ionuț C. Arțăriși <mapleoin@fedoraproject.org> - 2.2-1
|
|
|
|
- upgrade to upstream release 2.2
|
|
|
|
|
2012-02-09 12:21:34 +00:00
|
|
|
* Thu Feb 9 2012 Ionuț C. Arțăriși <mapleoin@fedoraproject.org> - 2.1.1-4
|
|
|
|
- remove python3-simplejson dependency
|
|
|
|
|
2012-02-06 14:20:52 +00:00
|
|
|
* Fri Jan 27 2012 Thomas Spura <tomspur@fedoraproject.org> - 2.1.1-3
|
|
|
|
- build python3 package
|
|
|
|
|
2012-01-14 02:12:54 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-10-25 15:12:28 +00:00
|
|
|
* Tue Oct 25 2011 Ionuț C. Arțăriși <mapleoin@fedoraproject.org> - 2.1.1-1
|
|
|
|
- new upstream version 2.1.1
|
|
|
|
- remove double word in description and rearrange it (#715272)
|
2011-11-09 10:18:31 +00:00
|
|
|
- fixed removal of shebangs
|
2014-05-22 21:04:20 +00:00
|
|
|
- added %%check section to run unittests during package build
|
2011-10-25 15:12:28 +00:00
|
|
|
|
2011-03-29 12:50:00 +00:00
|
|
|
* Tue Mar 29 2011 Ionuț C. Arțăriși <mapleoin@fedoraproject.org> - 1.2.1-1
|
|
|
|
- new upstream version 1.2.1
|
|
|
|
|
2011-02-09 06:49:40 +00:00
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-09-08 14:07:18 +00:00
|
|
|
* Wed Sep 8 2010 Ionuț C. Arțăriși <mapleoin@fedoraproject.org> - 1.1-1
|
|
|
|
- new upstream release 1.1
|
|
|
|
|
2010-08-17 10:25:56 +00:00
|
|
|
* Tue Aug 17 2010 Ionuț Arțăriși <mapleoin@fedoraproject.org> - 1.0.1-1
|
|
|
|
- new upstream bugfix release: 1.0.1
|
|
|
|
|
2010-08-04 08:48:14 +00:00
|
|
|
* Wed Aug 4 2010 Ionuț C. Arțăriși <mapleoin@fedoraproject.org> - 1.0-2
|
|
|
|
- changed upstream source url
|
|
|
|
|
2010-08-04 07:00:23 +00:00
|
|
|
* Wed Aug 4 2010 Ionuț C. Arțăriși <mapleoin@fedoraproject.org> - 1.0-1
|
|
|
|
- new upstream release 1.0
|
|
|
|
- there's no longer a problem with spurious permissions, so remove that fix
|
|
|
|
|
2010-07-22 05:35:59 +00:00
|
|
|
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.2-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
|
|
2009-11-02 13:45:03 +00:00
|
|
|
* Wed Oct 21 2009 Ionuț Arțăriși <mapleoin@fedoraproject.org> - 0.2-3
|
|
|
|
- changed -doc package group to Documentation
|
|
|
|
- use global instead of define
|
|
|
|
|
|
|
|
* Tue Oct 20 2009 Ionuț Arțăriși <mapleoin@fedoraproject.org> - 0.2-2
|
|
|
|
- create -doc package for examples
|
|
|
|
- altered description to not include references to FriendFeed
|
|
|
|
- rename to python-tornado
|
|
|
|
|
|
|
|
* Fri Sep 25 2009 Ionuț Arțăriși <mapleoin@lavabit.com> - 0.2-1
|
|
|
|
- New upstream version
|
|
|
|
- Fixed macro usage and directory ownership in spec
|
|
|
|
|
|
|
|
* Thu Sep 10 2009 Ionuț Arțăriși <mapleoin@lavabit.com> - 0.1-1
|
|
|
|
- Initial release
|
|
|
|
|