!6 remove python2

From: @wcc_140409
Reviewed-by: @overweight
Signed-off-by: @overweight
This commit is contained in:
openeuler-ci-bot 2020-11-05 16:39:24 +08:00 committed by Gitee
commit 1260adf8dc

View File

@ -7,7 +7,7 @@ The latest release works with all CPython versions from 2.7 to 3.7.
Name: python-%{modname}
Version: 4.5.2
Release: 1
Release: 2
Summary: XML processing library combining libxml2/libxslt with the ElementTree API
License: BSD
URL: http://lxml.de
@ -17,12 +17,6 @@ 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}
@ -38,21 +32,14 @@ BuildRequires: python3-devel python3-setuptools python3-Cython
%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
@ -63,6 +50,12 @@ export WITH_CYTHON=true
%doc README.rst src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt
%changelog
* Fri Oct 30 2020 wuchaochao <wuchaochao4@huawei.com> - 4.5.2-2
- Type:bufix
- CVE:NA
- SUG:NA
- DESC:remove python2
* Thu Jul 23 2020 tianwei <tianwei12@huawei.com> - 4.5.2-1
- Package update to release 4.5.2
* Mon Sep 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 4.2.3-3