132 lines
3.4 KiB
RPMSpec
132 lines
3.4 KiB
RPMSpec
Name: babel
|
|
Version: 2.8.0
|
|
Release: 3
|
|
Summary: Tools for internationalizing and localizing Python applications
|
|
License: BSD
|
|
URL: http://babel.pocoo.org/
|
|
Source0: https://files.pythonhosted.org/packages/source/B/Babel/Babel-%{version}.tar.gz
|
|
Patch1: babel-2.3.4-remove-pytz-version.patch
|
|
Patch2: Replace-usage-of-parser.suite-with-ast.parse.patch
|
|
Patch3: Introduce-invariant-that-_invalid_pofile-takes-unico.patch
|
|
Patch4: catalog.rst-Add-__iter__-to-Catalog-documentation.patch
|
|
Patch5: stop-using-deprecated-ElementTree-methods-getchildre.patch
|
|
Patch6: backport-0001-CVE-2021-20095-Run-locale-identifiers-through-os.path.basename.patch
|
|
Patch7: backport-0002-CVE-2021-20095-Disallow-special-filenames-on-Windows.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
|
|
|
|
%description
|
|
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
|
|
Requires: python3-pytz
|
|
|
|
%description -n python3-babel
|
|
Babel is an integrated collection of utilities that assist in internationalizing and
|
|
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
|
|
|
|
%description help
|
|
Documentation for Babel
|
|
|
|
%prep
|
|
%autosetup -n Babel-%{version} -p1 -Sgit
|
|
|
|
%build
|
|
%py2_build
|
|
%py3_build
|
|
|
|
BUILDDIR="$PWD/built-docs"
|
|
rm -rf "$BUILDDIR"
|
|
pushd docs
|
|
make \
|
|
SPHINXBUILD=sphinx-build-3 \
|
|
BUILDDIR="$BUILDDIR" \
|
|
html
|
|
popd
|
|
rm -f "$BUILDDIR/html/.buildinfo"
|
|
|
|
%install
|
|
%py2_install
|
|
%py3_install
|
|
|
|
%check
|
|
export TZ=Asia/Shanghai
|
|
%{__python2} -m pytest
|
|
%{__python3} -m pytest
|
|
|
|
%pre
|
|
|
|
%preun
|
|
|
|
%post
|
|
|
|
%postun
|
|
|
|
%files
|
|
%doc CHANGES AUTHORS
|
|
%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
|
|
|
|
%files help
|
|
%doc built-docs/html/*
|
|
|
|
%changelog
|
|
* Tue May 11 2021 yangzhuangzhuang<yangzhuangzhuang1@huawei.com> - 2.8.0-3
|
|
- Fix CVE-2021-20095
|
|
|
|
* Sun Jun 28 2020 linwei<linwei54@huawei.com> - 2.8.0-2
|
|
- sync some patches from community
|
|
|
|
* Mon May 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.8.0-1
|
|
- update to 2.8.0-1
|
|
|
|
* Fri Oct 11 2019 hanzhijun<hanzhijun1@huawei.com> - 2.7.0-1
|
|
- Type:enhancement
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:update to 2.7.0
|
|
|
|
* Fri Sep 27 2019 chengquan<chengquan3@huawei.com> - 2.6.0-7
|
|
- Type:bugfix
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:add help package
|
|
|
|
* Tue Aug 13 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.6.0-6
|
|
- Package init
|
|
|