]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - python-tornado/python-tornado.nm
Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-3.x
[people/amarx/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
c06e7bf4 7version = 4.2.1
802ea3af 8release = 1
802ea3af
MT
9thisapp = tornado-%{version}
10
11maintainer = Michael Tremer <michael.tremer@ipfire.org>
12groups = Development/Libraries
13url = http://www.tornadoweb.org/
1f6a2693 14license = ASL 2.0
802ea3af
MT
15summary = A python based non-blocking web server.
16
17description
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.
21end
ecf0da53 22
d8a39ab2
MT
23source_dl = https://pypi.python.org/packages/source/t/tornado/
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
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
56end
ecf0da53 57
802ea3af
MT
58packages
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 68end