From 9979fb8d90cd78bebcf442ceae8817b966e7a9e1 Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Wed, 5 Jun 2019 13:08:04 +0900 Subject: [PATCH] Add python3-lxml Change-Id: Ia4a3ade2ecd82fa80e9b9c5b29c3f6172d58d266 Signed-off-by: DongHun Kwak --- packaging/python3-lxml.manifest | 5 +++++ packaging/python3-lxml.spec | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 packaging/python3-lxml.manifest create mode 100644 packaging/python3-lxml.spec diff --git a/packaging/python3-lxml.manifest b/packaging/python3-lxml.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/python3-lxml.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/python3-lxml.spec b/packaging/python3-lxml.spec new file mode 100644 index 0000000..3143f5b --- /dev/null +++ b/packaging/python3-lxml.spec @@ -0,0 +1,41 @@ +Name: python3-lxml +Version: 4.3.0 +Release: 0 +Summary: Powerful and Pythonic XML processing library +License: BSD-3-Clause and GPL-2.0+ +Group: Development/Languages/Python +Url: http://lxml.de/ +Source: http://pypi.python.org/packages/source/l/lxml/lxml-%{version}.tar.gz +Source1001: %{name}.manifest +BuildRequires: libxslt-devel +#BuildRequires: python-Cython +BuildRequires: python3-devel +BuildRequires: pkgconfig(libxml-2.0) + +%description +lxml is a Pythonic, mature binding for the libxml2 and libxslt libraries. It +provides safe and convenient access to these libraries using the ElementTree +API. It extends the ElementTree API significantly to offer support for XPath, +RelaxNG, XML Schema, XSLT, C14N and much more. + + +%prep +%setup -q -n lxml-%{version} +cp %{SOURCE1001} . + +%build +CFLAGS="%{optflags}" python3 setup.py build + +%install +python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} + +%files +%manifest %{name}.manifest +%defattr(-,root,root) +%doc LICENSES.txt +%{python3_sitearch}/lxml/ +%{python3_sitearch}/lxml-%{version}-py%{python3_version}.egg-info +%exclude %{python3_sitearch}/lxml/includes/etree_defs.h + + +%changelog -- 2.7.4