remove python2
This commit is contained in:
parent
cd03d55bec
commit
cebf3690a9
@ -7,7 +7,7 @@ The latest release works with all CPython versions from 2.7 to 3.7.
|
|||||||
|
|
||||||
Name: python-%{modname}
|
Name: python-%{modname}
|
||||||
Version: 4.5.2
|
Version: 4.5.2
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: XML processing library combining libxml2/libxslt with the ElementTree API
|
Summary: XML processing library combining libxml2/libxslt with the ElementTree API
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://lxml.de
|
URL: http://lxml.de
|
||||||
@ -17,12 +17,6 @@ BuildRequires: gcc libxml2-devel libxslt-devel
|
|||||||
|
|
||||||
%description %{_description}
|
%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}
|
%package -n python3-%{modname}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
@ -38,21 +32,14 @@ BuildRequires: python3-devel python3-setuptools python3-Cython
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
export WITH_CYTHON=true
|
export WITH_CYTHON=true
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python2} setup.py test
|
|
||||||
%{__python3} 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}
|
%files -n python3-%{modname}
|
||||||
%license doc/licenses/ZopePublicLicense.txt LICENSES.txt
|
%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
|
%doc README.rst src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Jul 23 2020 tianwei <tianwei12@huawei.com> - 4.5.2-1
|
||||||
- Package update to release 4.5.2
|
- Package update to release 4.5.2
|
||||||
* Mon Sep 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 4.2.3-3
|
* Mon Sep 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 4.2.3-3
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user