]>
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 |
d8a39ab2 | 7 | version = 3.0 |
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 | |
d8a39ab2 MT |
24 | source_dl = https://pypi.python.org/packages/source/t/tornado/ |
25 | source_dl += http://github.com/downloads/facebook/tornado/ | |
ecf0da53 | 26 | |
802ea3af MT |
27 | build |
28 | requires | |
1f6a2693 | 29 | pakfire-builder >= 0.9.23-2 |
802ea3af | 30 | python-devel |
1f6a2693 | 31 | python3-devel |
1f6a2693 MT |
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} | |
802ea3af | 40 | end |
ecf0da53 | 41 | |
802ea3af | 42 | build |
1f6a2693 MT |
43 | pushd %{DIR_APP3} |
44 | %{python3} setup.py build | |
45 | popd | |
46 | ||
47 | %{python} setup.py build | |
802ea3af | 48 | end |
ecf0da53 | 49 | |
802ea3af | 50 | install |
1f6a2693 MT |
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} | |
802ea3af MT |
56 | end |
57 | end | |
ecf0da53 | 58 | |
802ea3af MT |
59 | packages |
60 | package %{name} | |
1f6a2693 MT |
61 | requires |
62 | python-pycurl | |
63 | end | |
64 | end | |
65 | ||
66 | package python3-tornado | |
67 | template PYTHON3 | |
68 | end | |
802ea3af | 69 | end |