diff --git a/false.patch b/false.patch new file mode 100644 index 0000000..697b4da --- /dev/null +++ b/false.patch @@ -0,0 +1,31 @@ +From a1ded30a87c65f3ce59a18497a7fc5099317c2be Mon Sep 17 00:00:00 2001 +From: Marius Gedminas +Date: Sat, 12 Dec 2020 13:21:04 +0200 +Subject: [PATCH] New mock release returns False from patcher.stop() + +--- + src/restview/tests.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/restview/tests.py b/src/restview/tests.py +index c868c57..2b33ce2 100644 +--- a/src/restview/tests.py ++++ b/src/restview/tests.py +@@ -669,7 +669,7 @@ def doctest_RestViewer_rest_to_html_strict_and_error_handling(): + + + +- >>> stderr_patcher.stop() ++ >>> _ = stderr_patcher.stop() + + """ + +@@ -718,7 +718,7 @@ def doctest_RestViewer_rest_to_html_pypi_strict_and_error_handling(): + + + +- >>> stderr_patcher.stop() ++ >>> _ = stderr_patcher.stop() + + """ + diff --git a/python-restview.changes b/python-restview.changes index 6fc938f..76b81e3 100644 --- a/python-restview.changes +++ b/python-restview.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 1 12:58:17 UTC 2021 - Markéta Machová + +- Add false.patch to fix recent build failure + ------------------------------------------------------------------- Wed Jan 13 11:07:59 UTC 2021 - pgajdos@suse.com diff --git a/python-restview.spec b/python-restview.spec index dca9052..7b9bb19 100644 --- a/python-restview.spec +++ b/python-restview.spec @@ -25,6 +25,8 @@ License: GPL-3.0-only Group: Development/Languages/Python URL: https://mg.pov.lt/restview/ Source: https://files.pythonhosted.org/packages/source/r/restview/restview-%{version}.tar.gz +# PATCH-FIX-UPSTREAM https://github.com/mgedmin/restview/commit/a1ded30a87c65f3ce59a18497a7fc5099317c2be New mock release returns False from patcher.stop() +Patch0: false.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -48,6 +50,7 @@ A viewer for ReStructuredText documents that renders them on the fly. %prep %setup -q -n restview-%{version} +%autopatch -p1 %build %python_build