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