From de5ed08cb6cbdbc6c394fd71c9577e9d3889b5306b10db1af8471432692d2139 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 5 Jun 2021 19:05:49 +0000 Subject: [PATCH] - add sphinx4.patch to enable build with Sphinx 4.x OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-logutils?expand=0&rev=8 --- python-logutils.changes | 5 +++++ python-logutils.spec | 4 +++- sphinx4.patch | 15 +++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 sphinx4.patch diff --git a/python-logutils.changes b/python-logutils.changes index 89fcdd7..844c392 100644 --- a/python-logutils.changes +++ b/python-logutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Jun 5 19:05:36 UTC 2021 - Dirk Müller + +- add sphinx4.patch to enable build with Sphinx 4.x + ------------------------------------------------------------------- Tue Dec 4 12:50:10 UTC 2018 - Matej Cepl diff --git a/python-logutils.spec b/python-logutils.spec index cbe124f..2db8b30 100644 --- a/python-logutils.spec +++ b/python-logutils.spec @@ -1,7 +1,7 @@ # # spec file for package python-logutils # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,6 +25,7 @@ License: BSD-3-Clause Group: Development/Languages/Python URL: https://logutils.readthedocs.io/ Source: https://files.pythonhosted.org/packages/source/l/logutils/logutils-%{version}.tar.gz +Patch0: sphinx4.patch BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros BuildRequires: python3-Sphinx @@ -58,6 +59,7 @@ This package contains the documentation. %prep %setup -q -n logutils-%{version} +%autopatch -p1 %build %python_build diff --git a/sphinx4.patch b/sphinx4.patch new file mode 100644 index 0000000..1d29727 --- /dev/null +++ b/sphinx4.patch @@ -0,0 +1,15 @@ +Index: logutils-0.3.5/doc/conf.py +=================================================================== +--- logutils-0.3.5.orig/doc/conf.py ++++ logutils-0.3.5/doc/conf.py +@@ -171,8 +171,8 @@ htmlhelp_basename = 'Logutilsdoc' + # Grouping the document tree into LaTeX files. List of tuples + # (source start file, target name, title, author, document class [howto/manual]). + latex_documents = [ +- ('index', 'Logutils.tex', ur'Logutils Documentation', +- ur'Vinay Sajip', 'manual'), ++ ('index', 'Logutils.tex', 'Logutils Documentation', ++ 'Vinay Sajip', 'manual'), + ] + + # The name of an image file (relative to this directory) to place at the top of