%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