]>
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 |
c06e7bf4 | 7 | version = 4.2.1 |
802ea3af | 8 | release = 1 |
802ea3af MT |
9 | thisapp = tornado-%{version} |
10 | ||
11 | maintainer = Michael Tremer <michael.tremer@ipfire.org> | |
12 | groups = Development/Libraries | |
13 | url = http://www.tornadoweb.org/ | |
1f6a2693 | 14 | license = ASL 2.0 |
802ea3af MT |
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 | |
ecf0da53 | 22 | |
d8a39ab2 MT |
23 | source_dl = https://pypi.python.org/packages/source/t/tornado/ |
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 |
c06e7bf4 | 30 | python3-devel >= 3.4 |
1f6a2693 MT |
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} | |
802ea3af | 39 | end |
ecf0da53 | 40 | |
802ea3af | 41 | build |
1f6a2693 MT |
42 | pushd %{DIR_APP3} |
43 | %{python3} setup.py build | |
44 | popd | |
45 | ||
46 | %{python} setup.py build | |
802ea3af | 47 | end |
ecf0da53 | 48 | |
802ea3af | 49 | install |
1f6a2693 MT |
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} | |
802ea3af MT |
55 | end |
56 | end | |
ecf0da53 | 57 | |
802ea3af MT |
58 | packages |
59 | package %{name} | |
1f6a2693 MT |
60 | requires |
61 | python-pycurl | |
62 | end | |
63 | end | |
64 | ||
65 | package python3-tornado | |
66 | template PYTHON3 | |
67 | end | |
802ea3af | 68 | end |