Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 90f05cae1d3ee6242655f21eff6a59f6 > files > 1

python-tornado-2.3-2.mga3.src.rpm

%define oname tornado

Name:           python-%{oname}
Version:        2.3
Release:        %mkrel 2
Summary:        Scalable, non-blocking web server and tools

Group:          Development/Python
License:        ASL 2.0
URL:            http://www.tornadoweb.org
Source0:        http://github.com/downloads/facebook/tornado/%{oname}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:	python-devel
Requires:	python
Requires:       python-pycurl
Requires:       python-simplejson

%description
Tornado is an open source version of the scalable, non-blocking web server and
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.

%package doc
Summary:        Examples for python-tornado
Group:          Development/Python
Requires:       %{name} = %{version}-%{release}

%description doc
Tornado is an open source version of the scalable, non-blocking web server and
and tools. This package contains some example applications.

%prep 
%setup -q -n %{oname}-%{version}

# spurious permission fix
find demos/ -name "*.py" -exec chmod -x {} \;

# remove empty file
rm -rf demos/facebook/static/facebook.js

%build
%__python setup.py build

%install
%__rm -rf %{buildroot}
PYTHONDONTWRITEBYTECODE= %__python setup.py install --root=%{buildroot}

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root,-) 
%doc README
%{python_sitelib}/%{oname}/
%{python_sitelib}/%{oname}-%{version}-py%{py_ver}.egg-info/

%files doc
%defattr(-,root,root,-)
%doc demos


%changelog

* Sun Jan 13 2013 umeabot <umeabot> 2.3-2.mga3
+ Revision: 379574
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Sat Jun 09 2012 wally <wally> 2.3-1.mga3
+ Revision: 258360
- new version 2.3

* Mon Dec 19 2011 lebedov <lebedov> 2.1.1-2.mga2
+ Revision: 184420
- imported package python-tornado