From: JinWang An Date: Wed, 30 Dec 2020 01:31:24 +0000 (+0900) Subject: Bump to python-lxml 4.6.2 X-Git-Tag: accepted/tizen/6.5/base/20211028.055854^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_7.0_base_hotfix;p=platform%2Fupstream%2Fpython-lxml.git Bump to python-lxml 4.6.2 Change-Id: I252658cb1454c7d17d86be96289a9aacc42b3cd9 Signed-off-by: JinWang An --- 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