Blob Blame History Raw
Name:           python-sphinxext-rediraffe
Version:        0.2.7
Release:        4%{?dist}
Summary:        Sphinx extension to redirect nonexistent pages
License:        MIT

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

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

%autosetup -n sphinxext-rediraffe-%{version}

# The package needs jinja2 to function, but doesn't say so
sed -i '/install_requires/s/\[/&"jinja2", /'

# Retrieving the version with git fails
sed -i 's/main/%{version}/'



# The tests fail due to a missing dependency on seleniumbase

%pyproject_save_files 'sphinxext*'

%files -n python3-sphinxext-rediraffe -f %{pyproject_files}

* 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

* Fri Jul 22 2022 Fedora Release Engineering <> - 0.2.7-3
- Rebuilt for

* 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