Fix build error due to sphinx upgrade.

Signed-off-by: cherry530 <707078654@qq.com>
This commit is contained in:
cherry530 2023-07-29 16:07:13 +08:00
parent 2bab52994c
commit 805a4f34f7
2 changed files with 19 additions and 1 deletions

View File

@ -1,7 +1,7 @@
%?python_enable_dependency_generator
Name: python-behave
Version: 1.2.6
Release: 6
Release: 7
Summary: A tool for behavior-driven development, Python style
License: BSD-2-Clause
URL: http://pypi.python.org/pypi/behave
@ -10,6 +10,8 @@ Source0: https://github.com/behave/behave/archive/v%{version}/behave-%{ve
Patch0000: 0001-Backport-for-py38-fixes.patch
Patch0001: change-required-pytest.patch
Patch0002: remove-attribute-use_2to3.patch
Patch0003: sphinx-extlinks.patch
BuildArch: noarch
%description
@ -76,6 +78,9 @@ install -Dpm0644 behave.1 %{buildroot}%{_mandir}/man1/
%doc %{_mandir}/man1/behave.1*
%changelog
* Sat Jul 29 2023 xu_ping <707078654@qq.com> - 1.2.6-7
- Fix build error due to sphinx upgrade.
* Tue May 10 2022 wulei <wulei80@h-partners.com> - 1.2.6-6
- License compliance rectification

13
sphinx-extlinks.patch Normal file
View File

@ -0,0 +1,13 @@
--- a/docs/conf.py 2023-03-23 09:30:01.556715659 +0200
+++ b/docs/conf.py 2023-03-23 11:16:25.561357857 +0200
@@ -44,8 +44,8 @@
extlinks = {
- "pypi": ("https://pypi.python.org/pypi/%s", ""),
- "github": ("https://github.com/%s", "github:/"),
+ "pypi": ("https://pypi.python.org/pypi/%s", "%s"),
+ "github": ("https://github.com/%s", "%s"),
"issue": ("https://github.com/behave/behave/issue/%s", "issue #"),
"youtube": ("https://www.youtube.com/watch?v=%s", "youtube:video="),
"behave": ("https://github.com/behave/behave", None),