From 92cc1ae612ba5e32a0ed9f151b76a3970e883fd7 Mon Sep 17 00:00:00 2001 From: yang_zhuang_zhuang <1162011203@qq.com> Date: Thu, 29 Oct 2020 16:50:41 +0800 Subject: [PATCH] remove python2 --- babel.spec | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/babel.spec b/babel.spec index 7c21c15..ede0bcc 100644 --- a/babel.spec +++ b/babel.spec @@ -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 - 2.8.0-2 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:remove python2 + * Mon Jun 29 2020 Liquor - 2.8.0-1 - Type:enhancement - ID:NA -- Gitee