diff --git a/python-behave.spec b/python-behave.spec index f9ed61a..7208f7a 100644 --- a/python-behave.spec +++ b/python-behave.spec @@ -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 - 1.2.6-6 - License compliance rectification diff --git a/sphinx-extlinks.patch b/sphinx-extlinks.patch new file mode 100644 index 0000000..72a1419 --- /dev/null +++ b/sphinx-extlinks.patch @@ -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),