Accepting request 1056133 from devel:languages:python

- Add sphinx-6.0.0.patch to make it work with new version of Sphinx.

OBS-URL: https://build.opensuse.org/request/show/1056133
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-greenlet?expand=0&rev=40
This commit is contained in:
Dominique Leuenberger 2023-01-10 13:58:51 +00:00 committed by Git OBS Bridge
commit ddf60cf7c2
3 changed files with 23 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 5 07:41:02 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
- Add sphinx-6.0.0.patch to make it work with new version of Sphinx.
-------------------------------------------------------------------
Mon Sep 12 20:13:22 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-greenlet
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2010 B1 Systems GmbH, Vohburg, Germany.
#
# All modifications and additions to the file contributed by third parties
@ -17,7 +17,6 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-greenlet
Version: 1.1.3
Release: 0
@ -27,6 +26,8 @@ Group: Development/Libraries/Python
URL: https://github.com/python-greenlet/greenlet
Source0: https://files.pythonhosted.org/packages/source/g/greenlet/greenlet-%{version}.tar.gz
Source9: python-greenlet-rpmlintrc
# PATCH-FIX-OPENSUSE sphinx-6.0.0.patch
Patch0: sphinx-6.0.0.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: c++_compiler
@ -51,7 +52,7 @@ BuildArch: noarch
This package contains header files required for C modules development.
%prep
%setup -q -n greenlet-%{version}
%autosetup -p1 -n greenlet-%{version}
%build
export CFLAGS="%{optflags} -fno-tree-dominator-opts -fno-strict-aliasing"

14
sphinx-6.0.0.patch Normal file
View File

@ -0,0 +1,14 @@
Index: greenlet-1.1.3/docs/conf.py
===================================================================
--- greenlet-1.1.3.orig/docs/conf.py
+++ greenlet-1.1.3/docs/conf.py
@@ -271,7 +271,7 @@ autoclass_content = 'both'
extlinks = {
'issue': ('https://github.com/python-greenlet/greenlet/issues/%s',
- 'issue #'),
+ 'issue #%s'),
'pr': ('https://github.com/python-greenlet/greenlet/pull/%s',
- 'pull request #')
+ 'pull request #%s')
}