!9 修复sphinx升级后extlinks接口变更导致的编译失败
From: @cherry530 Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
bc4f4aaca7
@ -1,7 +1,7 @@
|
|||||||
%?python_enable_dependency_generator
|
%?python_enable_dependency_generator
|
||||||
Name: python-behave
|
Name: python-behave
|
||||||
Version: 1.2.6
|
Version: 1.2.6
|
||||||
Release: 6
|
Release: 7
|
||||||
Summary: A tool for behavior-driven development, Python style
|
Summary: A tool for behavior-driven development, Python style
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
URL: http://pypi.python.org/pypi/behave
|
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
|
Patch0000: 0001-Backport-for-py38-fixes.patch
|
||||||
Patch0001: change-required-pytest.patch
|
Patch0001: change-required-pytest.patch
|
||||||
Patch0002: remove-attribute-use_2to3.patch
|
Patch0002: remove-attribute-use_2to3.patch
|
||||||
|
Patch0003: sphinx-extlinks.patch
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -76,6 +78,9 @@ install -Dpm0644 behave.1 %{buildroot}%{_mandir}/man1/
|
|||||||
%doc %{_mandir}/man1/behave.1*
|
%doc %{_mandir}/man1/behave.1*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue May 10 2022 wulei <wulei80@h-partners.com> - 1.2.6-6
|
||||||
- License compliance rectification
|
- License compliance rectification
|
||||||
|
|
||||||
|
|||||||
13
sphinx-extlinks.patch
Normal file
13
sphinx-extlinks.patch
Normal 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),
|
||||||
Loading…
x
Reference in New Issue
Block a user