!2 remove python2

From: @wcc_140409
Reviewed-by: @overweight
Signed-off-by: @overweight
This commit is contained in:
openeuler-ci-bot 2020-10-30 17:50:55 +08:00 committed by Gitee
commit 31dab3ac6f

View File

@ -1,12 +1,11 @@
Name: python-chardet Name: python-chardet
Version: 3.0.4 Version: 3.0.4
Release: 8 Release: 9
Summary: Python 2/3 compatible character encoding detector. Summary: Python 2/3 compatible character encoding detector.
License: LGPL-2.1 License: LGPL-2.1
URL: https://github.com/chardet/chardet URL: https://github.com/chardet/chardet
Source0: https://github.com/chardet/chardet/archive/3.0.4.tar.gz Source0: https://github.com/chardet/chardet/archive/3.0.4.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: python2-devel, python2-setuptools
BuildRequires: python3-devel, python3-setuptools BuildRequires: python3-devel, python3-setuptools
%description %description
@ -16,13 +15,6 @@ and one that supported python 3.x. We've recently merged with
Ian Cordasco's charade fork, so now we have one coherent version that Ian Cordasco's charade fork, so now we have one coherent version that
works for Python 2.7+ and 3.4+. works for Python 2.7+ and 3.4+.
%package -n python2-chardet
Summary: Python 2/3 compatible character encoding detector.
%{?python_provide:%python_provide python2-chardet}
%description -n python2-chardet
Python 2/3 compatible character encoding detector,Python 2 version.
%package -n python3-chardet %package -n python3-chardet
Summary: Python 2/3 compatible character encoding detector. Summary: Python 2/3 compatible character encoding detector.
@ -36,7 +28,6 @@ rm -rf %{py3dir}
cp -a . %{py3dir} cp -a . %{py3dir}
%build %build
%{__python2} setup.py build
pushd %{py3dir} pushd %{py3dir}
%{__python3} setup.py build %{__python3} setup.py build
popd popd
@ -46,14 +37,6 @@ pushd %{py3dir}
%{__python3} setup.py install -O1 --skip-build --root %{buildroot} %{__python3} setup.py install -O1 --skip-build --root %{buildroot}
mv %{buildroot}%{_bindir}/{,python3-}chardetect mv %{buildroot}%{_bindir}/{,python3-}chardetect
popd popd
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
%files -n python2-chardet
%doc README.rst
%{!?_licensedir:%global license %%doc}
%license LICENSE
%{_bindir}/chardetect
%{python2_sitelib}/*
%files -n python3-chardet %files -n python3-chardet
%doc README.rst %doc README.rst
@ -63,5 +46,11 @@ popd
%{python3_sitelib}/* %{python3_sitelib}/*
%changelog %changelog
* Fri Oct 30 2020 wuchaochao <wuchaochao4@huawei.com> - 3.0.4-9
- Type:bufix
- CVE:NA
- SUG:NA
- DESC:remove python2
* Sat Sep 14 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.0.4-8 * Sat Sep 14 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.0.4-8
- Package init - Package init