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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 184410 - (show annotations) (download)
Mon Dec 19 16:20:33 2011 UTC (12 years, 4 months ago) by lebedov
File size: 1725 byte(s)
imported package python-tornado
1 %define oname tornado
2
3 Name: python-%{oname}
4 Version: 2.1.1
5 Release: %mkrel 2
6 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 Requires: python
15 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 %{python_sitelib}/%{oname}-%{version}-py%{pyver}.egg-info/
61
62 %files doc
63 %defattr(-,root,root,-)
64 %doc demos

  ViewVC Help
Powered by ViewVC 1.1.30