From 36557fefe5bd5b4e20435d97a1f63f46222193651203499c0b151d04e3dd8adb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 24 Sep 2024 12:58:28 +0000 Subject: [PATCH] Accepting request 1202917 from home:ecsos:python - Fix build error under Leap. OBS-URL: https://build.opensuse.org/request/show/1202917 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=39 --- python-pyserial.changes | 5 +++++ python-pyserial.spec | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/python-pyserial.changes b/python-pyserial.changes index ad74806..9822a00 100644 --- a/python-pyserial.changes +++ b/python-pyserial.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Sep 24 11:27:17 UTC 2024 - ecsos + +- Fix build error under Leap. + ------------------------------------------------------------------- Mon Jul 29 15:07:43 UTC 2024 - John Paul Adrian Glaubitz diff --git a/python-pyserial.spec b/python-pyserial.spec index 6674fbe..bac09cb 100644 --- a/python-pyserial.spec +++ b/python-pyserial.spec @@ -26,13 +26,13 @@ Group: Development/Languages/Python URL: https://github.com/pyserial/pyserial Source: https://files.pythonhosted.org/packages/source/p/pyserial/pyserial-%{version}.tar.gz # PATCH-FIX-UPSTREAM - pyserial/pyserial#757 - Replace deprecated unittest.findTestCases function -Patch: https://github.com/pyserial/pyserial/pull/757.patch#/replace-deprecated-unittest-function.patch +Patch1: https://github.com/pyserial/pyserial/pull/757.patch#/replace-deprecated-unittest-function.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: python3-Sphinx Requires(post): update-alternatives -Requires(preun): update-alternatives +Requires(preun):update-alternatives Provides: python-serial = %{version} Obsoletes: python-serial < %{version} BuildArch: noarch @@ -54,7 +54,7 @@ Documentation, examples, and help files for %{name}. %prep %setup -q -n pyserial-%{version} -%patch -P0 -p1 +%patch -P 1 -p1 # Unnecessary rm serial/tools/list_ports_windows.py \