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