diff --git a/Babel-2.9.1.tar.gz b/Babel-2.10.3.tar.gz similarity index 51% rename from Babel-2.9.1.tar.gz rename to Babel-2.10.3.tar.gz index 64b02c5c5f66f818c0d96c0150a60fd64c8814a0..41d3bc8cc796289b13ad1f4994f80b69f7667c71 100644 Binary files a/Babel-2.9.1.tar.gz and b/Babel-2.10.3.tar.gz differ diff --git a/babel.spec b/babel.spec index 4099f04607e9de49302212e89082b490e4ababa5..c92927337cab4f9c2b46f27fe25fbd857954c561 100644 --- a/babel.spec +++ b/babel.spec @@ -1,6 +1,8 @@ +%bcond_with bootstrap + Name: babel -Version: 2.9.1 -Release: 2 +Version: 2.10.3 +Release: 1 Summary: Tools for internationalizing and localizing Python applications License: BSD URL: http://babel.pocoo.org/ @@ -8,8 +10,11 @@ Source0: https://files.pythonhosted.org/packages/source/B/Babel/Babel-%{version} BuildArch: noarch -BuildRequires: gcc git make -BuildRequires: python3-devel python3-setuptools python3-pytz python3-pytest python3-freezegun python3-sphinx +BuildRequires: gcc make +BuildRequires: python3-devel python3-setuptools +%if !%{with bootstrap} +BuildRequires: python3-pytz python3-pytest python3-freezegun python3-sphinx +%endif Requires: python3-babel python3-setuptools @@ -26,6 +31,7 @@ Requires: python3-pytz Babel is an integrated collection of utilities that assist in internationalizing and localizing Python applications, with an emphasis on web-based applications. +%if !%{with bootstrap} %package help Summary: Documentation for Babel Provides: python-babel-doc = %{version}-%{release} @@ -35,15 +41,18 @@ Obsoletes: babel-doc %description help Documentation for Babel +%endif %prep -%autosetup -n Babel-%{version} -p1 -Sgit +%autosetup -n Babel-%{version} -p1 %build %py3_build BUILDDIR="$PWD/built-docs" rm -rf "$BUILDDIR" + +%if !%{with bootstrap} pushd docs make \ SPHINXBUILD=sphinx-build-3 \ @@ -51,13 +60,16 @@ make \ html popd rm -f "$BUILDDIR/html/.buildinfo" +%endif %install %py3_install %check export TZ=UTC +%if !%{with bootstrap} %{__python3} -m pytest +%endif %pre @@ -68,7 +80,7 @@ export TZ=UTC %postun %files -%doc CHANGES AUTHORS +%doc CHANGES.rst AUTHORS %license LICENSE %{_bindir}/pybabel @@ -76,10 +88,16 @@ export TZ=UTC %{python3_sitelib}/Babel-%{version}-py*.egg-info %{python3_sitelib}/babel +%if !%{with bootstrap} %files help %doc built-docs/html/* +%endif %changelog +* Wed Nov 20 2024 tzing_t - 2.10.3-1 +- update to 2.10.3, fix build error +- _output_charset is a thing not on python3.11, which cause the build error + * Fri Oct 28 2022 yanglongkang - 2.9.1-2 - Type:bugfix - ID:NA