From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Schantl <stefan.schantl@ipfire.org> To: development@lists.ipfire.org Subject: [PATCH 2/4] python-lxml: New package Date: Mon, 26 Oct 2015 10:48:54 +0100 Message-ID: <1445852936-16001-2-git-send-email-stefan.schantl@ipfire.org> In-Reply-To: <1445852936-16001-1-git-send-email-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4922218853485340041==" List-Id: <development.lists.ipfire.org> --===============4922218853485340041== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 <stefan.schantl(a)ipfire.org> --- python-lxml/python-lxml.nm | 65 ++++++++++++++++++++++++++++++++++++++++++++= ++ 1 file changed, 65 insertions(+) create mode 100644 python-lxml/python-lxml.nm diff --git a/python-lxml/python-lxml.nm b/python-lxml/python-lxml.nm new file mode 100644 index 0000000..82c07c5 --- /dev/null +++ b/python-lxml/python-lxml.nm @@ -0,0 +1,65 @@ +############################################################################= ### +# IPFire.org - An Open Source Firewall Solution = # +# Copyright (C) - IPFire Development Team <info(a)ipfire.org> = # +############################################################################= ### + +name =3D python-lxml +version =3D 3.4.4 +release =3D 1 +thisapp =3D lxml-%{version} + +groups =3D Development/Languages +url =3D http://lxml.de +license =3D BSD +summary =3D 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 =3D http://lxml.de/files/ +sources =3D %{thisapp}.tgz + +build + requires + libxml2-devel + libxslt-devel + python3-devel + zlib-devel + end + + build + CFLAGS=3D"%{CFLAGS}" %{python3} setup.py build + end + + test + # Setup test environment. + BUILD_LIB_DIR=3D$(find $(pwd) -name "*.so" | head -n 1 | xargs dirname) + cp $BUILD_LIB_DIR/*.so src/lxml + export LANG=3Den_US.utf8 + + # Run tests. + %{python3} test.py -p -v + + # Launch more tests. + export PYTHONPATH=3Dsrc + %{python3} selftest.py + %{python3} selftest2.py =09 + end + + install + %{python3} setup.py install --skip-build -O1 \ + --root=3D%{BUILDROOT} + end +end + +packages + package python3-lxml + + package python3-lxml-debuginfo + template DEBUGINFO + end +end --=20 2.4.3 --===============4922218853485340041==--