]>
Commit | Line | Data |
---|---|---|
f8aad48b SS |
1 | ############################################################################### |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
dc935e63 | 6 | name = python3-lxml |
1426e482 | 7 | version = 4.9.3 |
f8aad48b SS |
8 | release = 1 |
9 | thisapp = lxml-%{version} | |
10 | ||
11 | groups = Development/Languages | |
080d8619 | 12 | url = https://lxml.de |
f8aad48b SS |
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 | ||
080d8619 | 23 | source_dl = https://github.com/lxml/lxml/archive/ |
f8aad48b SS |
24 | |
25 | build | |
26 | requires | |
080d8619 | 27 | cython |
f8aad48b SS |
28 | libxml2-devel |
29 | libxslt-devel | |
30 | python3-devel | |
31 | zlib-devel | |
1426e482 | 32 | python3-setuptools |
f8aad48b SS |
33 | end |
34 | ||
080d8619 MT |
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 | ||
f8aad48b SS |
41 | build |
42 | CFLAGS="%{CFLAGS}" %{python3} setup.py build | |
43 | end | |
44 | ||
dc935e63 MT |
45 | #test |
46 | # make PYTHON=%{python3} test | |
47 | #end | |
f8aad48b SS |
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 |