%global pkg_name flask-babel %global mod_name flask_babel %bcond_without docs %if 0%{?rhel} %undefine with_docs %endif Name: python-%{pkg_name} Version: 4.0.0 Release: 1%{?dist} Summary: Adds i18n/l10n support to Flask applications License: BSD URL: https://github.com/mitsuhiko/%{pkg_name}/ Source0: https://github.com/python-babel/flask-babel/archive/v%{version}/%{pkg_name}-%{version}.tar.gz BuildArch: noarch # For documentation %if %{with docs} BuildRequires: make BuildRequires: python3-docs BuildRequires: python3-furo BuildRequires: python3-sphinx %endif %global _description\ Adds i18n/l10n support to Flask applications with the help of the Babel library. %description %_description %package -n python3-%{pkg_name} Summary: Adds i18n/l10n support to Flask applications # A modified version of speaklater is bundled Provides: bundled(python3-speaklater) BuildRequires: python3-devel BuildRequires: python3-pytest-mock %description -n python3-%{pkg_name} %_description %generate_buildrequires %pyproject_buildrequires %prep %autosetup -p1 -n %{pkg_name}-%{version} %build %pyproject_wheel %if %{with docs} # Build the documentation make -C docs html # We do not want the sphinx marker rm -f docs/_build/html/.buildinfo %endif %install %pyproject_install %pyproject_save_files %{mod_name} %check %pytest %files -n python3-%{pkg_name} -f %{pyproject_files} %if %{with docs} %doc docs/_build/html README.md %else %doc README.md %endif %license LICENSE %changelog * Fri Dec 08 2023 Frantisek Zatloukal - 4.0.0-1 - Update to 4.0.0 * Tue Jul 25 2023 Sandro Mani - 3.1.0-1 - Update to 3.1.0 * Fri Jul 21 2023 Fedora Release Engineering - 2.0.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jun 16 2023 Python Maint - 2.0.0-7 - Rebuilt for Python 3.12 * Thu Mar 02 2023 Jonathan Wright - 2.0.0-6 - don't build docs on RHEL * Fri Jan 20 2023 Fedora Release Engineering - 2.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 2.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 14 2022 Python Maint - 2.0.0-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 2.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Aug 08 2021 Kevin Fenzi - 2.0.0-1 - Update to 2.0.0. FIxes rhbz#1872942 * Fri Jul 23 2021 Fedora Release Engineering - 1.0.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.0.0-5 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 1.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 1.0.0-2 - Rebuilt for Python 3.9 * Tue May 19 2020 Jerry James - 1.0.0-1 - Version 1.0.0 (fixes bz 1830980) - Add BRs on jinja2 and sphinx - Drop BR and R on speaklater; a modified version is bundled - Drop redundant Requires and Provides - Ship documentation built with sphinx instead of sphinx source files - Use the license macro * Thu Jan 30 2020 Fedora Release Engineering - 0.11.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Sep 17 2019 Miro Hrončok - 0.11.2-7 - Subpackage python2-flask-babel has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Mon Aug 19 2019 Miro Hrončok - 0.11.2-6 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.11.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.11.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 0.11.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.11.2-2 - Rebuilt for Python 3.7 * Thu Mar 01 2018 Itamar Reis Peixoto - 0.11.2-1 - new version 0.11.2 * Fri Feb 16 2018 Lumír Balhar - 0.9-14 - Fixed source URL - Fixed directory ownership * Fri Feb 09 2018 Fedora Release Engineering - 0.9-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jan 18 2018 Iryna Shcherbina - 0.9-12 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 0.9-11 - Python 2 binary package renamed to python2-flask-babel See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 * Thu Jul 27 2017 Fedora Release Engineering - 0.9-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.9-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.9-8 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 0.9-7 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Wed Jun 29 2016 pcpa - 0.9-6 - Rebuild to properly provide python-flask-babel * Tue Jun 28 2016 pcpa - 0.9-5 - Add python3 subpackage * Thu Feb 04 2016 Fedora Release Engineering - 0.9-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Dec 17 2014 pcpa - 0.9-2 - Revert patch to pass check with older Babel (#1175391). * Fri Jul 18 2014 pcpa - 0.9-1 - Update to latest upstream release (#1106770). * Thu Jul 17 2014 pcpa - 0.8-6 - Add patch to work with latest Babel (#1106770). * Sat Jun 07 2014 Fedora Release Engineering - 0.8-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 0.8-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.8-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Sep 13 2012 pcpa - 0.8-4 - Add missing python-setuptools build requires (#839071) - Remove wrongly installed .gitignore * Fri Aug 17 2012 pcpa - 0.8-3 - Add missing build requires for proper chroot build - Correct spec file to make %%check work without having package installed * Sun Aug 5 2012 pcpa - 0.8-2 - No need to set CFLAGS for noarch (#839071) - Add %%check section (#839071) * Tue Jul 10 2012 pcpa - 0.8-1 - Initial python-flask-babel spec.