Compare commits

..

No commits in common. 'c9' and 'i10cs' have entirely different histories.
c9 ... i10cs

@ -1 +1 @@
1ce15f82eba5184cabe6ac1491cb58262e27adfd SOURCES/Babel-2.9.1.tar.gz
f1706ad682fd187c009ad6d51134d32369168a8b SOURCES/Babel-2.13.1.tar.gz

2
.gitignore vendored

@ -1 +1 @@
SOURCES/Babel-2.9.1.tar.gz
SOURCES/Babel-2.13.1.tar.gz

@ -1,37 +1,48 @@
%global srcname Babel
%global sum Library for internationalizing Python applications
# There is some bootstrapping involved when upgrading Python 3
# First of all we need babel (this package) to use sphinx
# 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
Version: 2.9.1
Release: 2%{?dist}
Version: 2.13.1
Release: 5%{?dist}
Summary: Tools for internationalizing Python applications
License: BSD
License: BSD-3-Clause
URL: https://babel.pocoo.org/
Source0: %{pypi_source}
Source: %{pypi_source Babel}
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%if !%{with bootstrap}
BuildRequires: python3-pytz
%if %{without bootstrap}
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
%if %{with datetime_tests}
BuildRequires: python3-freezegun
# The pytz tests are skipped when pytz is missing
BuildRequires: python3-pytz
%endif
# build the documentation
BuildRequires: make
%if !%{with bootstrap}
BuildRequires: python3-sphinx
%endif
Requires: python3-babel
Requires: python3-setuptools
Requires: python3-babel = %{?epoch:%{epoch}:}%{version}-%{release}
%description
@ -45,12 +56,7 @@ Babel is composed of two major parts:
%package -n python3-babel
Summary: %sum
Requires: python3-setuptools
Requires: python3-pytz
%{?python_provide:%python_provide python3-babel}
Summary: Library for internationalizing Python applications
%description -n python3-babel
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
and date formatting, etc.
%if !%{with bootstrap}
%if %{without bootstrap}
%package doc
Summary: Documentation for Babel
Provides: python-babel-doc = %{version}-%{release}
Provides: python3-babel-doc = %{version}-%{release}
%py_provides python3-babel-doc
%description doc
Documentation for Babel
%endif
%prep
%autosetup -p1 -n %{srcname}-%{version}
%autosetup -p1 -n Babel-%{version}
%generate_buildrequires
%pyproject_buildrequires
%build
%py3_build
%pyproject_wheel
BUILDDIR="$PWD/built-docs"
rm -rf "$BUILDDIR"
%if !%{with bootstrap}
%if %{without bootstrap}
pushd docs
make \
SPHINXBUILD=sphinx-build-3 \
BUILDDIR="$BUILDDIR" \
html
html man
popd
rm -f "$BUILDDIR/html/.buildinfo"
%endif
%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
export TZ=UTC
%if !%{with bootstrap}
# tests/messages/test_frontend.py and tests/test_dates require freezegun
%{__python3} -m pytest --ignore tests/messages/test_frontend.py --ignore tests/test_dates.py
%pyproject_check_import
%if %{without bootstrap}
# 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
%files
%doc CHANGES AUTHORS
%license LICENSE
%doc CHANGES.rst AUTHORS
%{_bindir}/pybabel
%files -n python3-babel
%{python3_sitelib}/Babel-%{version}-py*.egg-info/
%{python3_sitelib}/babel/
%if %{without bootstrap}
%{_mandir}/man1/pybabel.1*
%endif
%if !%{with bootstrap}
%files -n python3-babel -f %{pyproject_files}
%if %{without bootstrap}
%files doc
%license LICENSE
%doc built-docs/html/*
%endif
%changelog
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.9.1-2
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 2.13.1-5
- Bump release for October 2024 mass rebuild:
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
- Update to 2.9.1.
- Fixes CVE-2021-20095
Resolves: rhbz#1955615
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 2.9.1-3
- Rebuilt for Python 3.10
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 2.9.0-6
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 2.9.1-2
- Bootstrap for Python 3.10
* Tue Apr 13 2021 Miro Hrončok <mhroncok@redhat.com> - 2.9.0-5
- Drop build dependency on python-freezegun
- Resolves: rhbz#1947517
* Wed Apr 28 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 2.9.1-1
- update to 2.9.1
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

Loading…
Cancel
Save