!1 Init package python-sphinxext-rediraffe to version v0.2.7
From: @li-miaomiao_zhr Reviewed-by: @desert-sailor Signed-off-by: @desert-sailor
This commit is contained in:
commit
7a26e22fa2
25
0001-fix-version-of-package-in-setup.py.patch
Normal file
25
0001-fix-version-of-package-in-setup.py.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From 5f8b597649aff99688d8085b18f6b81617f202e4 Mon Sep 17 00:00:00 2001
|
||||||
|
From: li-miaomiao_zhr <mmlidc@isoftstone.com>
|
||||||
|
Date: Thu, 17 Aug 2023 18:55:15 +0800
|
||||||
|
Subject: [PATCH] fix version of package in setup.py
|
||||||
|
|
||||||
|
---
|
||||||
|
setup.py | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/setup.py b/setup.py
|
||||||
|
index 1b4f6e9..f9c77f0 100644
|
||||||
|
--- a/setup.py
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -15,7 +15,7 @@ with open("README.md", "r", encoding="utf-8") as readme:
|
||||||
|
|
||||||
|
setuptools.setup(
|
||||||
|
name="sphinxext-rediraffe",
|
||||||
|
- version=version,
|
||||||
|
+ version="0.2.7",
|
||||||
|
author="Vasista Vovveti",
|
||||||
|
author_email="vasistavovveti@gmail.com",
|
||||||
|
description="Sphinx Extension that redirects non-existent pages to working pages.",
|
||||||
|
--
|
||||||
|
2.39.1
|
||||||
|
|
||||||
58
python-sphinxext-rediraffe.spec
Normal file
58
python-sphinxext-rediraffe.spec
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
%global _empty_manifest_terminate_build 0
|
||||||
|
%global pypi_name sphinxext-rediraffe
|
||||||
|
|
||||||
|
%global _description %{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.}
|
||||||
|
|
||||||
|
Name: python-%{pypi_name}
|
||||||
|
Version: 0.2.7
|
||||||
|
Release: 1
|
||||||
|
Summary: Sphinx extension to redirect nonexistent pages
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/wpilibsuite/sphinxext-rediraffe
|
||||||
|
Source0: https://github.com/wpilibsuite/sphinxext-rediraffe/archive/v%{version}/sphinxext-rediraffe-%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-sphinx
|
||||||
|
BuildRequires: python3-pip
|
||||||
|
BuildRequires: python3-wheel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-setuptools_scm
|
||||||
|
Patch0: 0001-fix-version-of-package-in-setup.py.patch
|
||||||
|
|
||||||
|
%description %_description
|
||||||
|
|
||||||
|
%package -n python3-%{pypi_name}
|
||||||
|
Summary: Sphinx extension to redirect nonexistent pages
|
||||||
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
||||||
|
|
||||||
|
%description -n python3-%{pypi_name} %_description
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{pypi_name}-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%py3_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%py3_install
|
||||||
|
|
||||||
|
%files -n python3-%{pypi_name}
|
||||||
|
%license LICENSE.md
|
||||||
|
%doc README.md
|
||||||
|
%{python3_sitelib}/sphinxext/__pycache__/
|
||||||
|
%{python3_sitelib}/sphinxext_rediraffe-*.egg-info/
|
||||||
|
%{python3_sitelib}/sphinxext/rediraffe.py
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Aug 17 2023 li-miaomiao_zhr <mmlidc@isoftstone.com> - 0.2.7-1
|
||||||
|
- Package init
|
||||||
BIN
sphinxext-rediraffe-0.2.7.tar.gz
Normal file
BIN
sphinxext-rediraffe-0.2.7.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user