diff --git a/b755b56d25f3e54f8f15d9985fd0597b21c1051d.patch b/b755b56d25f3e54f8f15d9985fd0597b21c1051d.patch new file mode 100644 index 0000000..5f8fce9 --- /dev/null +++ b/b755b56d25f3e54f8f15d9985fd0597b21c1051d.patch @@ -0,0 +1,23 @@ +From b755b56d25f3e54f8f15d9985fd0597b21c1051d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Dirk=20M=C3=BCller?= +Date: Tue, 10 May 2022 18:18:32 +0200 +Subject: [PATCH] Use Python 3.10 compatible import path + +This should work with any python >= 3.0 +--- + cepces/xml/binding.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/cepces/xml/binding.py b/cepces/xml/binding.py +index 2749399..9928c1f 100644 +--- a/cepces/xml/binding.py ++++ b/cepces/xml/binding.py +@@ -18,7 +18,7 @@ + # pylint: disable=protected-access,too-few-public-methods,too-many-arguments + # pylint: disable=too-many-ancestors + """Module containing XML bindings.""" +-from collections import MutableSequence ++from collections.abc import MutableSequence + from xml.etree import ElementTree + import inspect + from abc import ABCMeta, abstractmethod diff --git a/cepces.changes b/cepces.changes index f4b5b15..aacbb12 100644 --- a/cepces.changes +++ b/cepces.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 10 19:19:56 UTC 2022 - Dirk Müller + +- add b755b56d25f3e54f8f15d9985fd0597b21c1051d.patch + ------------------------------------------------------------------- Wed Oct 6 09:03:40 UTC 2021 - Fabian Vogt diff --git a/cepces.spec b/cepces.spec index 3ae4ff3..0e58ba9 100644 --- a/cepces.spec +++ b/cepces.spec @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,6 +28,7 @@ Summary: Certificate Enrollment through CEP/CES License: GPL-3.0-or-later URL: https://github.com/ufven/%{app_name} Source0: %{name}-%{version}.tar.bz2 +Patch1: https://github.com/openSUSE/cepces/pull/11/commits/b755b56d25f3e54f8f15d9985fd0597b21c1051d.patch BuildArch: noarch Requires: %{app_name}-certmonger == %{version} @@ -82,6 +83,7 @@ SELinux support for %{app_name} %prep %setup -q -n %{app_name}-%{version} +%autopatch -p1 %build %py3_build