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 [thread overview]
Message-ID: <1445852936-16001-2-git-send-email-stefan.schantl@ipfire.org> (raw)
In-Reply-To: <1445852936-16001-1-git-send-email-stefan.schantl@ipfire.org>
[-- Attachment #1: Type: text/plain, Size: 2335 bytes --]
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 = 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
--
2.4.3
next prev parent reply other threads:[~2015-10-26 9:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-26 9:48 [PATCH 1/4] automake: Update to 1.15 Stefan Schantl
2015-10-26 9:48 ` Stefan Schantl [this message]
2015-10-26 9:48 ` [PATCH 3/4] systemd: Enable python bindings Stefan Schantl
2015-10-26 9:48 ` [PATCH 4/4] util-linux: Update to 2.27 Stefan Schantl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1445852936-16001-2-git-send-email-stefan.schantl@ipfire.org \
--to=stefan.schantl@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox