Home

Facebook's tornado rpm spec @ 2009-09-12 15:47:49
Filed under: Code  Tech  Fedora  Python 
Not sure if I'm going to push this up as I don't see myself using it (and thus maintain the package properly) so if you want to run with it, go ahead :-).

Edit: Some feeds were reporting funny results with the rendered code tags ... changed to pre.

[steve@mobileoppressionpalace SPECS]$ cat tornado.spec                                                                   
# sitelib for noarch packages                                                                                            
%{!?python_sitelib: %global python_sitelib %(%{__python} -c \
"from distutils.sysconfig import get_python_lib; print get_python_lib()")}                                                                                                                        

Name:           tornado
Version:        0.1    
Release:        1%{?dist}
Summary:        An open source version of the scalable, non-blocking web server

Group:          Development/Languages
License:        ASL 2.0
URL:            http://www.tornadoweb.org/
Source0:        http://www.tornadoweb.org/static/%{name}-%{version}.tar.gz
Patch0:         tornado-no-hashbang-for-non-exec-scripts.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  python-devel
Requires:       python-pycurl, python-simplejson


%description
Tornado is an open source version of the scalable, non-blocking web server
and tools that power FriendFeed. The FriendFeed application is written using
a web framework that looks a bit like web.py or Google's webapp, but with
additional tools and optimizations to take advantage of the underlying
non-blocking infrastructure.

%prep
%setup -q
%patch0 -p 1


%build
%{__python} setup.py build


%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc README
# For noarch packages: sitelib
%{python_sitelib}/*


%changelog
* Sat Sep 12 2009 Steve 'Ashcrow' Milner  0.1-1
- Initial package
[steve@mobileoppressionpalace SPECS]$ cat ../SOURCES/tornado-no-hashbang-for-non-exec-scripts.patch 
diff -ur tornado-0.1/tornado/auth.py tornado-0.1.mine/tornado/auth.py                               
--- tornado-0.1/tornado/auth.py 2009-09-10 13:32:56.000000000 -0400                                 
+++ tornado-0.1.mine/tornado/auth.py    2009-09-12 14:01:08.716733153 -0400                         
@@ -1,5 +1,3 @@                                                                                     
-#!/usr/bin/env python                                                                              
-#                                                                                                  
 # Copyright 2009 Facebook                                                                          
 #                                                                                                  
 # Licensed under the Apache License, Version 2.0 (the "License"); you may                          
diff -ur tornado-0.1/tornado/database.py tornado-0.1.mine/tornado/database.py                       
--- tornado-0.1/tornado/database.py     2009-09-10 13:32:56.000000000 -0400                         
+++ tornado-0.1.mine/tornado/database.py        2009-09-12 14:02:40.012605235 -0400                 
@@ -1,5 +1,3 @@                                                                                     
-#!/usr/bin/env python                                                                              
-#                                                                                                  
 # Copyright 2009 Facebook                                                                          
 #                                                                                                  
 # Licensed under the Apache License, Version 2.0 (the "License"); you may                          
diff -ur tornado-0.1/tornado/escape.py tornado-0.1.mine/tornado/escape.py                           
--- tornado-0.1/tornado/escape.py       2009-09-10 13:32:56.000000000 -0400                         
+++ tornado-0.1.mine/tornado/escape.py  2009-09-12 14:02:48.993692391 -0400                         
@@ -1,5 +1,3 @@                                                                                     
-#!/usr/bin/env python                                                                              
-#                                                                                                  
 # Copyright 2009 Facebook                                                                          
 #                                                                                                  
 # Licensed under the Apache License, Version 2.0 (the "License"); you may                          
diff -ur tornado-0.1/tornado/httpclient.py tornado-0.1.mine/tornado/httpclient.py                   
--- tornado-0.1/tornado/httpclient.py   2009-09-10 13:32:56.000000000 -0400                         
+++ tornado-0.1.mine/tornado/httpclient.py      2009-09-12 14:03:04.558617851 -0400                 
@@ -1,5 +1,3 @@                                                                                     
-#!/usr/bin/env python                                                                              
-#                                                                                                  
 # Copyright 2009 Facebook                                                                          
 #                                                                                                  
 # Licensed under the Apache License, Version 2.0 (the "License"); you may                          
diff -ur tornado-0.1/tornado/httpserver.py tornado-0.1.mine/tornado/httpserver.py                   
--- tornado-0.1/tornado/httpserver.py   2009-09-10 13:32:56.000000000 -0400                         
+++ tornado-0.1.mine/tornado/httpserver.py      2009-09-12 14:03:15.499707010 -0400                 
@@ -1,5 +1,3 @@                                                                                     
-#!/usr/bin/env python                                                                              
-#                                                                                                  
 # Copyright 2009 Facebook                                                                          
 #                                                                                                  
 # Licensed under the Apache License, Version 2.0 (the "License"); you may                          
diff -ur tornado-0.1/tornado/__init__.py tornado-0.1.mine/tornado/__init__.py                       
--- tornado-0.1/tornado/__init__.py     2009-09-10 13:32:56.000000000 -0400                         
+++ tornado-0.1.mine/tornado/__init__.py        2009-09-12 14:03:24.101684722 -0400                 
@@ -1,5 +1,3 @@                                                                                     
-#!/usr/bin/env python                                                                              
-#                                                                                                  
 # Copyright 2009 Facebook                                                                          
 #                                                                                                  
 # Licensed under the Apache License, Version 2.0 (the "License"); you may                          
diff -ur tornado-0.1/tornado/ioloop.py tornado-0.1.mine/tornado/ioloop.py                           
--- tornado-0.1/tornado/ioloop.py       2009-09-10 13:32:56.000000000 -0400                         
+++ tornado-0.1.mine/tornado/ioloop.py  2009-09-12 14:03:43.310690548 -0400                         
@@ -1,5 +1,3 @@                                                                                     
-#!/usr/bin/env python                                                                              
-#                                                                                                  
 # Copyright 2009 Facebook                                                                          
 #                                                                                                  
 # Licensed under the Apache License, Version 2.0 (the "License"); you may                          
diff -ur tornado-0.1/tornado/iostream.py tornado-0.1.mine/tornado/iostream.py                       
--- tornado-0.1/tornado/iostream.py     2009-09-10 13:32:56.000000000 -0400                         
+++ tornado-0.1.mine/tornado/iostream.py        2009-09-12 14:03:49.922692867 -0400                 
@@ -1,5 +1,3 @@                                                                                     
-#!/usr/bin/env python                                                                              
-#                                                                                                  
 # Copyright 2009 Facebook                                                                          
 #                                                                                                  
 # Licensed under the Apache License, Version 2.0 (the "License"); you may                          
diff -ur tornado-0.1/tornado/locale.py tornado-0.1.mine/tornado/locale.py                           
--- tornado-0.1/tornado/locale.py       2009-09-10 13:32:56.000000000 -0400                         
+++ tornado-0.1.mine/tornado/locale.py  2009-09-12 14:03:56.554607130 -0400                         
@@ -1,5 +1,3 @@                                                                                     
-#!/usr/bin/env python                                                                              
-#                                                                                                  
 # Copyright 2009 Facebook
 #
 # Licensed under the Apache License, Version 2.0 (the "License"); you may
diff -ur tornado-0.1/tornado/options.py tornado-0.1.mine/tornado/options.py
--- tornado-0.1/tornado/options.py      2009-09-10 13:32:56.000000000 -0400
+++ tornado-0.1.mine/tornado/options.py 2009-09-12 14:04:11.897690510 -0400
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-#
 # Copyright 2009 Facebook
 #
 # Licensed under the Apache License, Version 2.0 (the "License"); you may
diff -ur tornado-0.1/tornado/s3server.py tornado-0.1.mine/tornado/s3server.py
--- tornado-0.1/tornado/s3server.py     2009-09-10 13:32:56.000000000 -0400
+++ tornado-0.1.mine/tornado/s3server.py        2009-09-12 14:04:18.419607955 -0400
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-#
 # Copyright 2009 Facebook
 #
 # Licensed under the Apache License, Version 2.0 (the "License"); you may
diff -ur tornado-0.1/tornado/template.py tornado-0.1.mine/tornado/template.py
--- tornado-0.1/tornado/template.py     2009-09-10 13:32:56.000000000 -0400
+++ tornado-0.1.mine/tornado/template.py        2009-09-12 14:04:25.778730891 -0400
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-#
 # Copyright 2009 Facebook
 #
 # Licensed under the Apache License, Version 2.0 (the "License"); you may
diff -ur tornado-0.1/tornado/web.py tornado-0.1.mine/tornado/web.py
--- tornado-0.1/tornado/web.py  2009-09-10 13:32:56.000000000 -0400
+++ tornado-0.1.mine/tornado/web.py     2009-09-12 14:04:32.843607704 -0400
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-#
 # Copyright 2009 Facebook
 #
 # Licensed under the Apache License, Version 2.0 (the "License"); you may
diff -ur tornado-0.1/tornado/wsgi.py tornado-0.1.mine/tornado/wsgi.py
--- tornado-0.1/tornado/wsgi.py 2009-09-10 13:32:56.000000000 -0400
+++ tornado-0.1.mine/tornado/wsgi.py    2009-09-12 14:04:39.124604938 -0400
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-#
 # Copyright 2009 Facebook
 #
 # Licensed under the Apache License, Version 2.0 (the "License"); you may

 digg it   seed it   del.icio.us   ma.gnolia
Tags:         Log in to post comments.


 
A Django joint.
© 2007-2009 Steve 'Ashcrow' Milner | Studio7designs | Arbutus Photography