]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blame - python-lxml/python-lxml.nm
prevent kernel address space leak via dmesg or /proc files
[people/pmueller/ipfire-3.x.git] / python-lxml / python-lxml.nm
CommitLineData
f8aad48b
SS
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = python-lxml
b1bbfcfe 7version = 4.2.5
f8aad48b
SS
8release = 1
9thisapp = lxml-%{version}
10
11groups = Development/Languages
12url = http://lxml.de
13license = BSD
14summary = ElementTree-like Python bindings for libxml2 and libxslt.
15
16description
17 lxml provides a Python binding to the libxslt and libxml2 libraries.
18 It follows the ElementTree API as much as possible in order to provide
19 a more Pythonic interface to libxml2 and libxslt than the default
20 bindings.
21end
22
23source_dl = http://lxml.de/files/
24sources = %{thisapp}.tgz
25
26build
27 requires
28 libxml2-devel
29 libxslt-devel
30 python3-devel
31 zlib-devel
32 end
33
34 build
35 CFLAGS="%{CFLAGS}" %{python3} setup.py build
36 end
37
38 test
39 # Setup test environment.
40 BUILD_LIB_DIR=$(find $(pwd) -name "*.so" | head -n 1 | xargs dirname)
41 cp $BUILD_LIB_DIR/*.so src/lxml
42 export LANG=en_US.utf8
43
44 # Run tests.
45 %{python3} test.py -p -v
f8aad48b
SS
46 end
47
48 install
49 %{python3} setup.py install --skip-build -O1 \
50 --root=%{BUILDROOT}
51 end
52end
53
54packages
55 package python3-lxml
56
57 package python3-lxml-debuginfo
58 template DEBUGINFO
59 end
60end