/[packages]/cauldron/python-tornado/current/SPECS/python-tornado.spec
ViewVC logotype

Annotation of /cauldron/python-tornado/current/SPECS/python-tornado.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 389213 - (hide annotations) (download)
Thu Jan 17 21:29:26 2013 UTC (11 years, 3 months ago) by pterjan
Original Path: obsolete/cauldron/python-tornado/current/SPECS/python-tornado.spec
File size: 1723 byte(s)
Drop 
1 lebedov 184410 %define oname tornado
2    
3     Name: python-%{oname}
4 wally 258360 Version: 2.3
5 umeabot 379574 Release: %mkrel 2
6 lebedov 184410 Summary: Scalable, non-blocking web server and tools
7    
8     Group: Development/Python
9     License: ASL 2.0
10     URL: http://www.tornadoweb.org
11     Source0: http://github.com/downloads/facebook/tornado/%{oname}-%{version}.tar.gz
12     BuildArch: noarch
13     BuildRequires: python-devel
14 wally 258360 Requires: python
15 lebedov 184410 Requires: python-pycurl
16     Requires: python-simplejson
17    
18     %description
19     Tornado is an open source version of the scalable, non-blocking web server and
20     and tools.
21    
22     The framework is distinct from most mainstream web server frameworks (and
23     certainly most Python frameworks) because it is non-blocking and reasonably
24     fast. Because it is non-blocking and uses epoll, it can handle thousands of
25     simultaneous standing connections, which means it is ideal for real-time web
26     services.
27    
28     %package doc
29     Summary: Examples for python-tornado
30     Group: Development/Python
31     Requires: %{name} = %{version}-%{release}
32    
33     %description doc
34     Tornado is an open source version of the scalable, non-blocking web server and
35     and tools. This package contains some example applications.
36    
37     %prep
38     %setup -q -n %{oname}-%{version}
39    
40     # spurious permission fix
41     find demos/ -name "*.py" -exec chmod -x {} \;
42    
43     # remove empty file
44     rm -rf demos/facebook/static/facebook.js
45    
46     %build
47     %__python setup.py build
48    
49     %install
50     %__rm -rf %{buildroot}
51     PYTHONDONTWRITEBYTECODE= %__python setup.py install --root=%{buildroot}
52    
53     %clean
54     %__rm -rf %{buildroot}
55    
56     %files
57     %defattr(-,root,root,-)
58     %doc README
59     %{python_sitelib}/%{oname}/
60 wally 258360 %{python_sitelib}/%{oname}-%{version}-py%{py_ver}.egg-info/
61 lebedov 184410
62     %files doc
63     %defattr(-,root,root,-)
64     %doc demos

  ViewVC Help
Powered by ViewVC 1.1.30