File python-mkdocs-redirects.spec of Package python-mkdocs-redirects

#
# spec file for package python-mkdocs-redirects
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           python-mkdocs-redirects
Version:        1.0.3
Release:        0
Summary:        Plugin for mkdocs to create page redirects
License:        MIT
URL:            https://github.com/datarobot/mkdocs-redirects
Source:         https://files.pythonhosted.org/packages/source/m/mkdocs-redirects/mkdocs-redirects-%{version}.tar.gz
BuildRequires:  %{python_module mkdocs >= 1.0.4}
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module wheel}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Requires:       python-mkdocs >= 1.0.4
BuildArch:      noarch
%python_subpackages

%description
A MkDocs plugin for dynamic page redirects to prevent broken links
(e.g. for moved/renamed pages).

%prep
%setup -q -n mkdocs-redirects-%{version}

%build
%pyproject_wheel

%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%files %{python_files}
%doc README.md
%{python_sitelib}/mkdocs[-_]redirects
%{python_sitelib}/mkdocs[-_]redirects-%{version}*-info

%changelog
openSUSE Build Service is sponsored by