python-mkdocs-redirects/python-mkdocs-redirects.spec

63 lines
2.0 KiB
RPMSpec

%global pypi_name mkdocs-redirects
Name: python-%{pypi_name}
Version: 1.2.1
Release: 2
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
BuildRequires: python3-mkdocs
%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 Oct 17 2023 Dongxing Wang <dxwangk@isoftstone.com> - 1.2.1-2
- Add build reauirments mkdocs to fix obs build failed.
* Tue Aug 22 2023 luolu12 <luluoc@isoftstone.com> - 1.2.1-1
- Initial package.