]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - python-tornado/python-tornado.nm
python-tornado: Update to 3.0.
[people/ms/ipfire-3.x.git] / python-tornado / python-tornado.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = python-tornado
7 version = 3.0
8 release = 1
9 arch = noarch
10 thisapp = tornado-%{version}
11
12 maintainer = Michael Tremer <michael.tremer@ipfire.org>
13 groups = Development/Libraries
14 url = http://www.tornadoweb.org/
15 license = ASL 2.0
16 summary = A python based non-blocking web server.
17
18 description
19 The framework is distinct from most mainstream web server frameworks
20 (and certainly most Python frameworks) because it is non-blocking
21 and reasonably fast.
22 end
23
24 source_dl = https://pypi.python.org/packages/source/t/tornado/
25 source_dl += http://github.com/downloads/facebook/tornado/
26
27 build
28 requires
29 pakfire-builder >= 0.9.23-2
30 python-devel
31 python3-devel
32 end
33
34 DIR_APP3 = %{DIR_APP}-python3
35
36 prepare_cmds
37 find tornado -name "*py" | xargs sed -e '/^#!\//, 1d' -i
38
39 cp -a %{DIR_APP} %{DIR_APP3}
40 end
41
42 build
43 pushd %{DIR_APP3}
44 %{python3} setup.py build
45 popd
46
47 %{python} setup.py build
48 end
49
50 install
51 pushd %{DIR_APP3}
52 %{python3} setup.py install --skip-build --root=%{BUILDROOT}
53 popd
54
55 %{python} setup.py install --skip-build --root=%{BUILDROOT}
56 end
57 end
58
59 packages
60 package %{name}
61 requires
62 python-pycurl
63 end
64 end
65
66 package python3-tornado
67 template PYTHON3
68 end
69 end