]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - python-lxml/python-lxml.nm
ntp: Remove ntpstat
[people/arne_f/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
7version = 3.4.4
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
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
57end
58
59packages
60 package python3-lxml
61
62 package python3-lxml-debuginfo
63 template DEBUGINFO
64 end
65end