]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blob - 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
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = python-lxml
7 version = 4.2.5
8 release = 1
9 thisapp = lxml-%{version}
10
11 groups = Development/Languages
12 url = http://lxml.de
13 license = BSD
14 summary = ElementTree-like Python bindings for libxml2 and libxslt.
15
16 description
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.
21 end
22
23 source_dl = http://lxml.de/files/
24 sources = %{thisapp}.tgz
25
26 build
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
46 end
47
48 install
49 %{python3} setup.py install --skip-build -O1 \
50 --root=%{BUILDROOT}
51 end
52 end
53
54 packages
55 package python3-lxml
56
57 package python3-lxml-debuginfo
58 template DEBUGINFO
59 end
60 end