Init package version 1.2.1 of mkdocs-redirects

This commit is contained in:
luolu12 2023-08-22 15:23:36 +08:00
parent 0e8c23076a
commit d00ebc8554
2 changed files with 58 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,58 @@
%global pypi_name mkdocs-redirects
Name: python-%{pypi_name}
Version: 1.2.1
Release: 1
Summary: A MkDocs plugin for dynamic page redirects to prevent broken links
License: MIT
URL: https://github.com/datarobot/mkdocs-redirects
Source0: https://files.pythonhosted.org/packages/04/6a/50edd7ad78042b25c379aac7e8fa9cc34c6f55e3d2c03eb28814a9446617/mkdocs-redirects-1.2.1.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
%description
mkdocs-redirectsPlugin for [mkdocs]( to create page redirects (e.g. for
moved/renamed pages).Initially developed by [DataRobot]( Installing> **Note:**
This package requires MkDocs version 1.0.4 or higher.Install with pip:bash pip
install mkdocs-redirects To use this plugin, specify your desired redirects in
the plugin's redirect_maps setting in your mkdocs.yml:yaml - redirects:
redirect_maps:...
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
mkdocs-redirectsPlugin for [mkdocs]( to create page redirects (e.g. for
moved/renamed pages).Initially developed by [DataRobot]( Installing> **Note:**
This package requires MkDocs version 1.0.4 or higher.Install with pip:bash pip
install mkdocs-redirects To use this plugin, specify your desired redirects in
the plugin's redirect_maps setting in your mkdocs.yml:yaml - redirects:
redirect_maps:...
%prep
%autosetup -n %{pypi_name}-%{version}
%build
%pyproject_build
%install
%pyproject_install
%check
%{__python3} setup.py test
%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{python3_sitelib}/mkdocs_redirects*
%changelog
* Tue Aug 22 2023 luolu12 <luluoc@isoftstone.com> - 1.2.1-1
- Initial package.