Name: python-sphinxext-rediraffe Version: 0.2.7 Release: 10%{?dist} Summary: Sphinx extension to redirect nonexistent pages License: MIT URL: https://wpilib.org/ Source0: https://github.com/wpilibsuite/sphinxext-rediraffe/archive/v%{version}/sphinxext-rediraffe-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel %global _desc %{expand: This sphinx extension redirects non-existent pages to working pages. Rediraffe can also check that deleted/renamed files in your git repo are redirected. Rediraffe creates a graph of all specified redirects and traverses it to point all internal urls to leaf urls. This means that chained redirects will be resolved. For example, if a config has 6 chained redirects, all 6 links will redirect directly to the final link. The end user will never experience more than 1 redirection. Note: Rediraffe supports the html and dirhtml builders.} %description %_desc %package -n python3-sphinxext-rediraffe Summary: %{summary} %description -n python3-sphinxext-rediraffe %_desc %prep %autosetup -n sphinxext-rediraffe-%{version} # The package needs jinja2 to function, but setup.py doesn't say so sed -i '/install_requires/s/\[/&"jinja2", /' setup.py # Retrieving the version with git fails sed -i 's/main/%{version}/' setup.py %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %check # The tests fail due to a missing dependency on seleniumbase %pyproject_check_import %install %pyproject_install %pyproject_save_files 'sphinxext*' %files -n python3-sphinxext-rediraffe -f %{pyproject_files} %doc README.md %changelog * Fri Jul 19 2024 Fedora Release Engineering - 0.2.7-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 0.2.7-9 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 0.2.7-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.2.7-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.2.7-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jun 14 2023 Python Maint - 0.2.7-5 - Rebuilt for Python 3.12 * Thu Feb 23 2023 Jerry James - 0.2.7-4 - Dynamically generate BuildRequires * Fri Jan 20 2023 Fedora Release Engineering - 0.2.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.2.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.2.7-2 - Rebuilt for Python 3.11 * Fri Apr 29 2022 Jerry James - 0.2.7-1 - Initial RPM