%global module_name tornado Name: python-tornado Version: 1.0 Release: 1%{?dist} Summary: Scalable, non-blocking web server and tools that power FriendFeed Group: Development/Libraries License: ASL 2.0 URL: http://www.tornadoweb.org Source0: http://github.com/downloads/facebook/%{module_name}/%{module_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools Requires: python-pycurl Requires: python-simplejson %description Tornado is an open source version of the scalable, non-blocking web server and tools that power FriendFeed. %prep %setup -q -n %{module_name}-%{version} sed -i -e '/^#!\//, 1d' %{module_name}/*.py find demos -type f -exec chmod -x {} ";" %build python setup.py build %install python setup.py install --skip-build --root=%{buildroot} %files %defattr(-,root,root,-) %doc README demos %{python_sitelib}/%{module_name}/ %{python_sitelib}/%{module_name}*egg-info %changelog * Sat Jul 24 2010 Chen Lei - 1.0-1 - initial rpm build