remove python2

This commit is contained in:
yang_zhuang_zhuang 2020-10-29 16:50:41 +08:00
parent 1bdd15de78
commit 92cc1ae612

View File

@ -1,6 +1,6 @@
Name: babel
Version: 2.8.0
Release: 1
Release: 2
Summary: Tools for internationalizing and localizing Python applications
License: BSD
URL: http://babel.pocoo.org/
@ -12,7 +12,6 @@ Patch0001: fix-tests-when-using-Python-3.9a6.patch
BuildArch: noarch
BuildRequires: gcc git make
BuildRequires: python2-devel python2-setuptools python2-pytz python2-pytest python2-freezegun
BuildRequires: python3-devel python3-setuptools python3-pytz python3-pytest python3-freezegun python3-sphinx
Requires: python3-babel python3-setuptools
@ -21,15 +20,6 @@ Requires: python3-babel python3-setuptools
Babel is an integrated collection of utilities that assist in internationalizing and
localizing Python applications, with an emphasis on web-based applications.
%package -n python2-babel
Summary: Library for internationalizing Python applications
Requires: python2-setuptools
Requires: python2-pytz
%description -n python2-babel
Babel is an integrated collection of utilities that assist in internationalizing and
localizing Python applications, with an emphasis on web-based applications.
%package -n python3-babel
Summary: Library for internationalizing Python applications
Requires: python3-setuptools
@ -42,7 +32,6 @@ localizing Python applications, with an emphasis on web-based applications.
%package help
Summary: Documentation for Babel
Provides: python-babel-doc = %{version}-%{release}
Provides: python2-babel-doc = %{version}-%{release}
Provides: python3-babel-doc = %{version}-%{release}
Provides: babel-doc
Obsoletes: babel-doc
@ -54,7 +43,6 @@ Documentation for Babel
%autosetup -n Babel-%{version} -p1 -Sgit
%build
%py2_build
%py3_build
BUILDDIR="$PWD/built-docs"
@ -68,12 +56,10 @@ popd
rm -f "$BUILDDIR/html/.buildinfo"
%install
%py2_install
%py3_install
%check
export TZ=Asia/Shanghai
%{__python2} -m pytest
%{__python3} -m pytest
%pre
@ -89,10 +75,6 @@ export TZ=Asia/Shanghai
%license LICENSE
%{_bindir}/pybabel
%files -n python2-babel
%{python2_sitelib}/Babel-%{version}-py*.egg-info
%{python2_sitelib}/babel
%files -n python3-babel
%{python3_sitelib}/Babel-%{version}-py*.egg-info
%{python3_sitelib}/babel
@ -101,6 +83,12 @@ export TZ=Asia/Shanghai
%doc built-docs/html/*
%changelog
* Thu Oct 29 2020 yangzhuangzhuang <yangzhuangzhuang1@huawei.com> - 2.8.0-2
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:remove python2
* Mon Jun 29 2020 Liquor <lirui130@huawei.com> - 2.8.0-1
- Type:enhancement
- ID:NA