2009-11-02 13:45:03 +00:00
|
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
%global pkgname tornado
|
|
|
|
|
|
|
|
Name: python-%{pkgname}
|
2011-10-25 15:12:28 +00:00
|
|
|
Version: 2.1.1
|
2011-03-29 12:50:00 +00:00
|
|
|
Release: 1%{?dist}
|
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
|
2010-08-17 10:25:56 +00:00
|
|
|
Source0: http://github.com/downloads/facebook/%{pkgname}/%{pkgname}-%{version}.tar.gz
|
2009-11-02 13:45:03 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
BuildRequires: python-devel
|
|
|
|
Requires: python-pycurl
|
|
|
|
Requires: python-simplejson
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Examples for python-tornado
|
|
|
|
Group: Documentation
|
|
|
|
Requires: python-tornado = %{version}-%{release}
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{pkgname}-%{version}
|
|
|
|
|
|
|
|
# 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
|
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
PATH=$PATH:%{buildroot}%{python_sitelib}/%{pkgname}
|
|
|
|
python setup.py install --root=%{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
2011-11-09 10:18:31 +00:00
|
|
|
%check
|
2011-11-09 10:37:26 +00:00
|
|
|
%if "%{dist}" != "el6"
|
|
|
|
python -m unittest discover -s tornado/test -p *test.py
|
|
|
|
%endif
|
2009-11-02 13:45:03 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README PKG-INFO
|
|
|
|
|
|
|
|
%{python_sitelib}/%{pkgname}/
|
|
|
|
%{python_sitelib}/%{pkgname}-%{version}-*.egg-info
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc demos
|
|
|
|
|
2011-11-09 10:18:31 +00:00
|
|
|
|
2009-11-02 13:45:03 +00:00
|
|
|
%changelog
|
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
|
|
|
|
- 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
|
|
|
|
|