]>
Commit | Line | Data |
---|---|---|
ecf0da53 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
ecf0da53 SS |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = python-tornado |
1f6a2693 | 7 | version = 2.4 |
802ea3af MT |
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/ | |
1f6a2693 | 15 | license = ASL 2.0 |
802ea3af MT |
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 | |
ecf0da53 | 23 | |
1f6a2693 | 24 | source_dl = http://github.com/downloads/facebook/tornado/ |
ecf0da53 | 25 | |
802ea3af MT |
26 | build |
27 | requires | |
1f6a2693 | 28 | pakfire-builder >= 0.9.23-2 |
802ea3af | 29 | python-devel |
1f6a2693 MT |
30 | python3-devel |
31 | python3-setuptools | |
32 | python3-tools | |
33 | end | |
34 | ||
35 | DIR_APP3 = %{DIR_APP}-python3 | |
36 | ||
37 | prepare_cmds | |
38 | find tornado -name "*py" | xargs sed -e '/^#!\//, 1d' -i | |
39 | ||
40 | cp -a %{DIR_APP} %{DIR_APP3} | |
41 | 2to3 --write --nobackups %{DIR_APP3} | |
802ea3af | 42 | end |
ecf0da53 | 43 | |
802ea3af | 44 | build |
1f6a2693 MT |
45 | pushd %{DIR_APP3} |
46 | %{python3} setup.py build | |
47 | popd | |
48 | ||
49 | %{python} setup.py build | |
802ea3af | 50 | end |
ecf0da53 | 51 | |
802ea3af | 52 | install |
1f6a2693 MT |
53 | pushd %{DIR_APP3} |
54 | %{python3} setup.py install --skip-build --root=%{BUILDROOT} | |
55 | popd | |
56 | ||
57 | %{python} setup.py install --skip-build --root=%{BUILDROOT} | |
802ea3af MT |
58 | end |
59 | end | |
ecf0da53 | 60 | |
802ea3af MT |
61 | packages |
62 | package %{name} | |
1f6a2693 MT |
63 | requires |
64 | python-pycurl | |
65 | end | |
66 | end | |
67 | ||
68 | package python3-tornado | |
69 | template PYTHON3 | |
70 | end | |
802ea3af | 71 | end |