]> git.ipfire.org Git - ipfire-3.x.git/blob - python3-lxml/python3-lxml.nm
a7f68c7a08a1d3e3dc39910d8863cc219569739a
[ipfire-3.x.git] / python3-lxml / python3-lxml.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = python3-lxml
7 version = 4.9.3
8 release = 1
9 thisapp = lxml-%{version}
10
11 groups = Development/Languages
12 url = https://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 = https://github.com/lxml/lxml/archive/
24
25 build
26 requires
27 cython
28 libxml2-devel
29 libxslt-devel
30 python3-devel
31 zlib-devel
32 python3-setuptools
33 end
34
35 # Setting LC_CTYPE to workaround encoding issue
36 export LC_CTYPE=en_US.UTF-8
37
38 # WTF?
39 DIR_APP = %{DIR_SRC}/lxml-%{thisapp}
40
41 build
42 CFLAGS="%{CFLAGS}" %{python3} setup.py build
43 end
44
45 #test
46 # make PYTHON=%{python3} test
47 #end
48
49 install
50 %{python3} setup.py install --skip-build -O1 \
51 --root=%{BUILDROOT}
52 end
53 end
54
55 packages
56 package python3-lxml
57
58 package python3-lxml-debuginfo
59 template DEBUGINFO
60 end
61 end