]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - python-tornado/python-tornado.nm
python-tornado: Build for Python 3.
[people/ms/ipfire-3.x.git] / python-tornado / python-tornado.nm
CommitLineData
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 6name = python-tornado
1f6a2693 7version = 2.4
802ea3af
MT
8release = 1
9arch = noarch
10thisapp = tornado-%{version}
11
12maintainer = Michael Tremer <michael.tremer@ipfire.org>
13groups = Development/Libraries
14url = http://www.tornadoweb.org/
1f6a2693 15license = ASL 2.0
802ea3af
MT
16summary = A python based non-blocking web server.
17
18description
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.
22end
ecf0da53 23
1f6a2693 24source_dl = http://github.com/downloads/facebook/tornado/
ecf0da53 25
802ea3af
MT
26build
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
59end
ecf0da53 60
802ea3af
MT
61packages
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 71end