|
|
@ -1,37 +1,48 @@
|
|
|
|
%global srcname Babel
|
|
|
|
|
|
|
|
%global sum Library for internationalizing Python applications
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# There is some bootstrapping involved when upgrading Python 3
|
|
|
|
# There is some bootstrapping involved when upgrading Python 3
|
|
|
|
# First of all we need babel (this package) to use sphinx
|
|
|
|
# First of all we need babel (this package) to use sphinx
|
|
|
|
# And pytest is at this point not yet ready
|
|
|
|
# And pytest is at this point not yet ready
|
|
|
|
%bcond_with bootstrap
|
|
|
|
%bcond bootstrap 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Since babel 2.12, the pytz dependency is optional.
|
|
|
|
|
|
|
|
# However, pytz is preferred when installed.
|
|
|
|
|
|
|
|
# Running tests with pytz is optional as well.
|
|
|
|
|
|
|
|
# We don't want to pull pytz into ELN/RHEL just to test integration with it,
|
|
|
|
|
|
|
|
# but we don't want to ship babel in Fedora with an untested default,
|
|
|
|
|
|
|
|
# so we make the dependency conditional.
|
|
|
|
|
|
|
|
# Ideally, the dependency would be conditional on pytz availability in the repo,
|
|
|
|
|
|
|
|
# but that's not possible in 2023 yet.
|
|
|
|
|
|
|
|
# Additionally, the date/time tests require freezegun, which is unwanted in RHEL.
|
|
|
|
|
|
|
|
%bcond datetime_tests %{undefined rhel}
|
|
|
|
|
|
|
|
|
|
|
|
Name: babel
|
|
|
|
Name: babel
|
|
|
|
Version: 2.9.1
|
|
|
|
Version: 2.13.1
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Release: 5%{?dist}
|
|
|
|
Summary: Tools for internationalizing Python applications
|
|
|
|
Summary: Tools for internationalizing Python applications
|
|
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
License: BSD-3-Clause
|
|
|
|
URL: https://babel.pocoo.org/
|
|
|
|
URL: https://babel.pocoo.org/
|
|
|
|
Source0: %{pypi_source}
|
|
|
|
Source: %{pypi_source Babel}
|
|
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
|
|
|
%if !%{with bootstrap}
|
|
|
|
%if %{without bootstrap}
|
|
|
|
BuildRequires: python3-pytz
|
|
|
|
BuildRequires: coreutils
|
|
|
|
|
|
|
|
# The Python test dependencies are not generated from tox.ini,
|
|
|
|
|
|
|
|
# because it would require complex patching to be usable
|
|
|
|
|
|
|
|
# and becasue we want to avoid the tox dependency in ELN/RHEL.
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
|
|
|
|
%if %{with datetime_tests}
|
|
|
|
|
|
|
|
BuildRequires: python3-freezegun
|
|
|
|
|
|
|
|
# The pytz tests are skipped when pytz is missing
|
|
|
|
|
|
|
|
BuildRequires: python3-pytz
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
# build the documentation
|
|
|
|
# build the documentation
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: make
|
|
|
|
|
|
|
|
|
|
|
|
%if !%{with bootstrap}
|
|
|
|
|
|
|
|
BuildRequires: python3-sphinx
|
|
|
|
BuildRequires: python3-sphinx
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
Requires: python3-babel
|
|
|
|
Requires: python3-babel = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
Requires: python3-setuptools
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
@ -45,12 +56,7 @@ Babel is composed of two major parts:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-babel
|
|
|
|
%package -n python3-babel
|
|
|
|
Summary: %sum
|
|
|
|
Summary: Library for internationalizing Python applications
|
|
|
|
|
|
|
|
|
|
|
|
Requires: python3-setuptools
|
|
|
|
|
|
|
|
Requires: python3-pytz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?python_provide:%python_provide python3-babel}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python3-babel
|
|
|
|
%description -n python3-babel
|
|
|
|
Babel is composed of two major parts:
|
|
|
|
Babel is composed of two major parts:
|
|
|
@ -61,75 +67,155 @@ Babel is composed of two major parts:
|
|
|
|
providing access to various locale display names, localized number
|
|
|
|
providing access to various locale display names, localized number
|
|
|
|
and date formatting, etc.
|
|
|
|
and date formatting, etc.
|
|
|
|
|
|
|
|
|
|
|
|
%if !%{with bootstrap}
|
|
|
|
%if %{without bootstrap}
|
|
|
|
%package doc
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for Babel
|
|
|
|
Summary: Documentation for Babel
|
|
|
|
Provides: python-babel-doc = %{version}-%{release}
|
|
|
|
%py_provides python3-babel-doc
|
|
|
|
Provides: python3-babel-doc = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
%description doc
|
|
|
|
Documentation for Babel
|
|
|
|
Documentation for Babel
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n %{srcname}-%{version}
|
|
|
|
%autosetup -p1 -n Babel-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
|
|
|
%pyproject_buildrequires
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%py3_build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
BUILDDIR="$PWD/built-docs"
|
|
|
|
BUILDDIR="$PWD/built-docs"
|
|
|
|
rm -rf "$BUILDDIR"
|
|
|
|
rm -rf "$BUILDDIR"
|
|
|
|
|
|
|
|
|
|
|
|
%if !%{with bootstrap}
|
|
|
|
%if %{without bootstrap}
|
|
|
|
pushd docs
|
|
|
|
pushd docs
|
|
|
|
make \
|
|
|
|
make \
|
|
|
|
SPHINXBUILD=sphinx-build-3 \
|
|
|
|
SPHINXBUILD=sphinx-build-3 \
|
|
|
|
BUILDDIR="$BUILDDIR" \
|
|
|
|
BUILDDIR="$BUILDDIR" \
|
|
|
|
html
|
|
|
|
html man
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
rm -f "$BUILDDIR/html/.buildinfo"
|
|
|
|
rm -f "$BUILDDIR/html/.buildinfo"
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%py3_install
|
|
|
|
%pyproject_install
|
|
|
|
|
|
|
|
%pyproject_save_files babel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{without bootstrap}
|
|
|
|
|
|
|
|
install -D -m 0644 built-docs/man/babel.1 %{buildroot}%{_mandir}/man1/pybabel.1
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
export TZ=UTC
|
|
|
|
export TZ=UTC
|
|
|
|
%if !%{with bootstrap}
|
|
|
|
%pyproject_check_import
|
|
|
|
# tests/messages/test_frontend.py and tests/test_dates require freezegun
|
|
|
|
%if %{without bootstrap}
|
|
|
|
%{__python3} -m pytest --ignore tests/messages/test_frontend.py --ignore tests/test_dates.py
|
|
|
|
# The deselected doctests fail without pytz when run during Eastern Daylight Time
|
|
|
|
|
|
|
|
# https://github.com/python-babel/babel/issues/988
|
|
|
|
|
|
|
|
# The ignored files use freezegun
|
|
|
|
|
|
|
|
%pytest %{!?with_datetime_tests:\
|
|
|
|
|
|
|
|
-k "not (babel.dates.format_time or babel.dates.get_timezone_name)" \
|
|
|
|
|
|
|
|
--ignore tests/test_dates.py --ignore tests/messages/test_frontend.py}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%doc CHANGES AUTHORS
|
|
|
|
%doc CHANGES.rst AUTHORS
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%{_bindir}/pybabel
|
|
|
|
%{_bindir}/pybabel
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-babel
|
|
|
|
%if %{without bootstrap}
|
|
|
|
%{python3_sitelib}/Babel-%{version}-py*.egg-info/
|
|
|
|
%{_mandir}/man1/pybabel.1*
|
|
|
|
%{python3_sitelib}/babel/
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%if !%{with bootstrap}
|
|
|
|
%files -n python3-babel -f %{pyproject_files}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{without bootstrap}
|
|
|
|
%files doc
|
|
|
|
%files doc
|
|
|
|
|
|
|
|
%license LICENSE
|
|
|
|
%doc built-docs/html/*
|
|
|
|
%doc built-docs/html/*
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.9.1-2
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 2.13.1-5
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
Related: rhbz#1991688
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 2.13.1-4
|
|
|
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2.13.1-4
|
|
|
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 23 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.13.1-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.13.1-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.1-6
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jun 16 2023 Python Maint <python-maint@redhat.com> - 2.12.1-5
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 2.12.1-4
|
|
|
|
|
|
|
|
- Bootstrap for Python 3.12
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 05 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 2.12.1-3
|
|
|
|
|
|
|
|
- Avoid libfaketime and python-freezegun deps in RHEL builds
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Apr 10 2023 Miro Hrončok <mhroncok@redhat.com> - 2.12.1-2
|
|
|
|
|
|
|
|
- Fix DST-related test failures
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Mar 01 2023 Miro Hrončok <mhroncok@redhat.com> - 2.12.1-1
|
|
|
|
|
|
|
|
- Update to 2.12.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Feb 28 2023 Miro Hrončok <mhroncok@redhat.com> - 2.12.0-1
|
|
|
|
|
|
|
|
- Update to 2.12.0
|
|
|
|
|
|
|
|
- No longer depends on pytz
|
|
|
|
|
|
|
|
- No longer depends on setuptools
|
|
|
|
|
|
|
|
- Update the License tag to SPDX
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.0-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jan 01 2023 Felix Schwarz <fschwarz@fedoraproject.org> - 2.11.0-1
|
|
|
|
|
|
|
|
- update to 2.11.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.3-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 20 2022 Felix Schwarz <fschwarz@fedoraproject.org> - 2.10.3-2
|
|
|
|
|
|
|
|
- backport patch to remove usage of cgi module (rhbz #2083956)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 20 2022 Felix Schwarz <fschwarz@fedoraproject.org> - 2.10.3-1
|
|
|
|
|
|
|
|
- update to 2.10.3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.10.1-4
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.10.1-3
|
|
|
|
|
|
|
|
- Bootstrap for Python 3.11
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon May 16 2022 Nils Philippsen <nils@redhat.com> - 2.10.1-2
|
|
|
|
|
|
|
|
- Build and distribute man page for pybabel (#1611174)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 22 2022 Felix Schwarz <fschwarz@fedoraproject.org> - 2.10.1-1
|
|
|
|
|
|
|
|
- update to 2.10.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.1-5
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.1-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Fri May 21 2021 Charalampos Stratakis <cstratak@redhat.com> - 2.9.1-1
|
|
|
|
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 2.9.1-3
|
|
|
|
- Update to 2.9.1.
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
- Fixes CVE-2021-20095
|
|
|
|
|
|
|
|
Resolves: rhbz#1955615
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 2.9.0-6
|
|
|
|
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 2.9.1-2
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
- Bootstrap for Python 3.10
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Apr 13 2021 Miro Hrončok <mhroncok@redhat.com> - 2.9.0-5
|
|
|
|
* Wed Apr 28 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 2.9.1-1
|
|
|
|
- Drop build dependency on python-freezegun
|
|
|
|
- update to 2.9.1
|
|
|
|
- Resolves: rhbz#1947517
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.0-4
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|