]> git.ipfire.org Git - ipfire-3.x.git/blob - python-lxml/python-lxml.nm
python-lxml: New package
[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 = 3.4.4
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
47 # Launch more tests.
48 export PYTHONPATH=src
49 %{python3} selftest.py
50 %{python3} selftest2.py
51 end
52
53 install
54 %{python3} setup.py install --skip-build -O1 \
55 --root=%{BUILDROOT}
56 end
57 end
58
59 packages
60 package python3-lxml
61
62 package python3-lxml-debuginfo
63 template DEBUGINFO
64 end
65 end