From cbdd5976d47807a65d49533ff0436b613f58fcb8 Mon Sep 17 00:00:00 2001 From: JinWang An Date: Wed, 30 Dec 2020 10:31:24 +0900 Subject: [PATCH] Bump to python-lxml 4.6.2 Change-Id: I252658cb1454c7d17d86be96289a9aacc42b3cd9 Signed-off-by: JinWang An --- doc/licenses/BSD.txt | 2 +- packaging/python-lxml.manifest | 5 +++++ packaging/python-lxml.spec | 42 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 packaging/python-lxml.manifest create mode 100644 packaging/python-lxml.spec diff --git a/doc/licenses/BSD.txt b/doc/licenses/BSD.txt index a76d0ed..136624a 100644 --- a/doc/licenses/BSD.txt +++ b/doc/licenses/BSD.txt @@ -6,7 +6,7 @@ met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - + 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the diff --git a/packaging/python-lxml.manifest b/packaging/python-lxml.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/python-lxml.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/python-lxml.spec b/packaging/python-lxml.spec new file mode 100644 index 0000000..a7afa9d --- /dev/null +++ b/packaging/python-lxml.spec @@ -0,0 +1,42 @@ +Name: python-lxml +Version: 4.6.2 +Release: 0 +Summary: Powerful and Pythonic XML processing library +License: BSD-3-Clause and ElementTree +Group: Development/Languages/Python +Url: http://lxml.de/ +Source: http://pypi.python.org/packages/source/l/lxml/lxml-%{version}.tar.gz +Source1001: python-lxml.manifest +BuildRequires: libxslt-devel +#BuildRequires: python-Cython +BuildRequires: python-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}" python setup.py build + +%install +python setup.py install --prefix=%{_prefix} --root=%{buildroot} + +%files +%manifest %{name}.manifest +%defattr(-,root,root) +%license doc/licenses/BSD.txt +%license doc/licenses/elementtree.txt +%{python_sitearch}/lxml/ +%{python_sitearch}/lxml-%{version}-py%{py_ver}.egg-info +%exclude %{python_sitearch}/lxml/etree_defs.h + + +%changelog -- 2.7.4