babel/babel.spec

156 lines
3.2 KiB
RPMSpec
Raw Normal View History

2021-12-03 16:11:57 +08:00
%global _with_bootstrap 1
%bcond_with bootstrap
2019-09-30 10:32:06 -04:00
Name: babel
2021-07-30 16:01:23 +08:00
Version: 2.9.1
2021-12-03 16:11:57 +08:00
Release: 3
2019-09-30 10:32:06 -04:00
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
2019-09-30 10:32:06 -04:00
BuildArch: noarch
BuildRequires: gcc make
2021-12-03 16:11:57 +08:00
BuildRequires: python3-devel python3-setuptools
%if !%{with bootstrap}
BuildRequires: python3-pytz python3-pytest python3-freezegun python3-sphinx
%endif
2019-09-30 10:32:06 -04:00
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 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.
2021-12-03 16:11:57 +08:00
%if !%{with bootstrap}
2019-09-30 10:32:06 -04:00
%package help
Summary: Documentation for Babel
Provides: python-babel-doc = %{version}-%{release}
Provides: python3-babel-doc = %{version}-%{release}
Provides: babel-doc
Obsoletes: babel-doc
%description help
Documentation for Babel
2021-12-03 16:11:57 +08:00
%endif
2019-09-30 10:32:06 -04:00
%prep
%autosetup -n Babel-%{version} -p1
2019-09-30 10:32:06 -04:00
%build
%py3_build
BUILDDIR="$PWD/built-docs"
rm -rf "$BUILDDIR"
2021-12-03 16:11:57 +08:00
%if !%{with bootstrap}
2019-09-30 10:32:06 -04:00
pushd docs
make \
SPHINXBUILD=sphinx-build-3 \
BUILDDIR="$BUILDDIR" \
html
popd
rm -f "$BUILDDIR/html/.buildinfo"
2021-12-03 16:11:57 +08:00
%endif
2019-09-30 10:32:06 -04:00
%install
%py3_install
%check
2021-07-30 16:01:23 +08:00
export TZ=UTC
2021-12-03 16:11:57 +08:00
%if !%{with bootstrap}
2019-09-30 10:32:06 -04:00
%{__python3} -m pytest
2021-12-03 16:11:57 +08:00
%endif
2019-09-30 10:32:06 -04:00
%pre
%preun
%post
%postun
%files
%doc CHANGES AUTHORS
%license LICENSE
%{_bindir}/pybabel
%files -n python3-babel
%{python3_sitelib}/Babel-%{version}-py*.egg-info
%{python3_sitelib}/babel
2021-12-03 16:11:57 +08:00
%if !%{with bootstrap}
2019-09-30 10:32:06 -04:00
%files help
%doc built-docs/html/*
2021-12-03 16:11:57 +08:00
%endif
2019-09-30 10:32:06 -04:00
%changelog
2021-12-03 16:11:57 +08:00
* Fri Dec 3 2021 panxiaohe <panxiaohe@huawei.com> - 2.9.1-3
- add Bootstrap for Python 3.10
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 2.9.1-2
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git
2021-07-30 16:01:23 +08:00
* Fri Jul 30 2021 panxiaohe <panxiaohe@huawei.com> - 2.9.1-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:update to 2.9.1
* Tue May 11 2021 yangzhuangzhuang <yangzhuangzhuang1@huawei.com> - 2.9.0-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:Fix CVE-2021-20095
2021-01-23 10:06:17 +08:00
* Sat Jan 23 2021 zoulin <zoulin13@huawei.com> - 2.9.0-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:update to 2.9.0
2020-10-29 16:50:41 +08:00
* Thu Oct 29 2020 yangzhuangzhuang <yangzhuangzhuang1@huawei.com> - 2.8.0-2
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:remove python2
2020-06-29 10:27:46 +08:00
* Mon Jun 29 2020 Liquor <lirui130@huawei.com> - 2.8.0-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:update to 2.8.0
* Wed Jun 24 2020 chenditang<chenditang1@huawei.com> - 2.7.0-2
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:fix tests when using Python 3.9a6
2019-11-06 19:02:56 +08:00
* Fri Oct 11 2019 hanzhijun<hanzhijun1@huawei.com> - 2.7.0-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:update to 2.7.0
2019-09-30 10:32:06 -04:00
* 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