commit 88a2186d34e77336e77cfb59e35a1a2def3f420d Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:15:13 2019 -0400 Package init diff --git a/lxml-4.2.3.tgz b/lxml-4.2.3.tgz new file mode 100644 index 0000000..75d0cfe Binary files /dev/null and b/lxml-4.2.3.tgz differ diff --git a/python-lxml.spec b/python-lxml.spec new file mode 100644 index 0000000..f5c2797 --- /dev/null +++ b/python-lxml.spec @@ -0,0 +1,67 @@ +%global modname lxml +%global _description \ +The lxml XML toolkit is a Pythonic binding for the C libraries libxml2 and libxslt. \ +It is unique in that it combines the speed and XML feature completeness of these libraries with \ +the simplicity of a native Python API, mostly compatible but superior to the well-known ElementTree API. \ +The latest release works with all CPython versions from 2.7 to 3.7. + +Name: python-%{modname} +Version: 4.2.3 +Release: 3 +Summary: XML processing library combining libxml2/libxslt with the ElementTree API +License: BSD +URL: http://lxml.de +Source0: http://lxml.de/files/%{modname}-%{version}.tgz + +BuildRequires: gcc libxml2-devel libxslt-devel + +%description %{_description} + +%package -n python2-%{modname} +Summary: %{summary} +BuildRequires: python2-devel python2-setuptools python2-Cython +%{?python_provide:%python_provide python2-%{modname}} + +%description -n python2-%{modname} %{_description} + +%package -n python3-%{modname} +Summary: %{summary} +BuildRequires: python3-devel python3-setuptools python3-Cython +%{?python_provide:%python_provide python3-%{modname}} + +%description -n python3-%{modname} %{_description} + +%package_help + +%prep +%autosetup -n %{modname}-%{version} + +%build +export WITH_CYTHON=true +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%check +%{__python2} setup.py test +%{__python3} setup.py test + +%files -n python2-%{modname} +%license doc/licenses/ZopePublicLicense.txt LICENSES.txt +%{python2_sitearch}/%{modname}/ +%{python2_sitearch}/*.egg-info/ + +%files -n python3-%{modname} +%license doc/licenses/ZopePublicLicense.txt LICENSES.txt +%{python3_sitearch}/%{modname}/ +%{python3_sitearch}/*.egg-info/ + +%files help +%doc README.rst src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt + +%changelog +* Mon Sep 16 2019 openEuler Buildteam - 4.2.3-3 +- Package init