]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - python-tornado/python-tornado.nm
Merge remote-tracking branch 'stevee/ppp-update'
[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
d8a39ab2 7version = 3.0
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
d8a39ab2
MT
24source_dl = https://pypi.python.org/packages/source/t/tornado/
25source_dl += http://github.com/downloads/facebook/tornado/
ecf0da53 26
802ea3af
MT
27build
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
57end
ecf0da53 58
802ea3af
MT
59packages
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 69end