From: Stefan Schantl Date: Mon, 26 Oct 2015 09:48:54 +0000 (+0100) Subject: python-lxml: New package X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f8aad48b12ddb9ae88b56d9571bc10014b5658c5;p=people%2Fms%2Fipfire-3.x.git python-lxml: New package lxml provides a Python binding to the libxslt and libxml2 libraries. It follows the ElementTree API as much as possible in order to provide a more Pythonic interface to libxml2 and libxslt than the default bindings. Build dependency for systemd python bindings. Signed-off-by: Stefan Schantl Signed-off-by: Michael Tremer --- diff --git a/python-lxml/python-lxml.nm b/python-lxml/python-lxml.nm new file mode 100644 index 000000000..82c07c57a --- /dev/null +++ b/python-lxml/python-lxml.nm @@ -0,0 +1,65 @@ +############################################################################### +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # +############################################################################### + +name = python-lxml +version = 3.4.4 +release = 1 +thisapp = lxml-%{version} + +groups = Development/Languages +url = http://lxml.de +license = BSD +summary = ElementTree-like Python bindings for libxml2 and libxslt. + +description + lxml provides a Python binding to the libxslt and libxml2 libraries. + It follows the ElementTree API as much as possible in order to provide + a more Pythonic interface to libxml2 and libxslt than the default + bindings. +end + +source_dl = http://lxml.de/files/ +sources = %{thisapp}.tgz + +build + requires + libxml2-devel + libxslt-devel + python3-devel + zlib-devel + end + + build + CFLAGS="%{CFLAGS}" %{python3} setup.py build + end + + test + # Setup test environment. + BUILD_LIB_DIR=$(find $(pwd) -name "*.so" | head -n 1 | xargs dirname) + cp $BUILD_LIB_DIR/*.so src/lxml + export LANG=en_US.utf8 + + # Run tests. + %{python3} test.py -p -v + + # Launch more tests. + export PYTHONPATH=src + %{python3} selftest.py + %{python3} selftest2.py + end + + install + %{python3} setup.py install --skip-build -O1 \ + --root=%{BUILDROOT} + end +end + +packages + package python3-lxml + + package python3-lxml-debuginfo + template DEBUGINFO + end +end