Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pyscard for openSUSE:Factory checked in at 2024-02-08 19:02:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pyscard (Old) and /work/SRC/openSUSE:Factory/.python-pyscard.new.1815 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyscard" Thu Feb 8 19:02:52 2024 rev:16 rq:1145068 version:2.0.7 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pyscard/python-pyscard.changes 2023-04-12 14:03:32.294073521 +0200 +++ /work/SRC/openSUSE:Factory/.python-pyscard.new.1815/python-pyscard.changes 2024-02-08 19:03:03.901049685 +0100 @@ -1,0 +2,7 @@ +Wed Feb 7 22:39:49 UTC 2024 - Martin Hauke <mar...@gmx.de> + +- Add patch: + * 0001-Remove-use-of-imp-module-for-wx-GUI.patch + Fix build for python >= 3.12 + +------------------------------------------------------------------- New: ---- 0001-Remove-use-of-imp-module-for-wx-GUI.patch BETA DEBUG BEGIN: New:- Add patch: * 0001-Remove-use-of-imp-module-for-wx-GUI.patch Fix build for python >= 3.12 BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pyscard.spec ++++++ --- /var/tmp/diff_new_pack.ARswYC/_old 2024-02-08 19:03:04.421068482 +0100 +++ /var/tmp/diff_new_pack.ARswYC/_new 2024-02-08 19:03:04.421068482 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-pyscard # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # Copyright (c) 2011 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -17,7 +17,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define modname pyscard Name: python-pyscard Version: 2.0.7 @@ -27,6 +26,7 @@ Group: Development/Languages/Python URL: https://pyscard.sourceforge.io/ Source: https://files.pythonhosted.org/packages/source/p/pyscard/pyscard-%{version}.tar.gz +Patch0: 0001-Remove-use-of-imp-module-for-wx-GUI.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: dos2unix @@ -46,6 +46,7 @@ %prep %setup -q -n %{modname}-%{version} +%autopatch -p1 mv smartcard/doc . dos2unix LICENSE @@ -64,5 +65,6 @@ %files %{python_files} %doc ChangeLog doc README.md %license LICENSE -%{python_sitearch}/* +%{python_sitearch}/pyscard* +%{python_sitearch}/smartcard ++++++ 0001-Remove-use-of-imp-module-for-wx-GUI.patch ++++++ >From 5a42e2e3be862d82fa3804eebf2e0d90756b7fcc Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau <ludovic.rouss...@free.fr> Date: Fri, 22 Dec 2023 12:56:00 +0100 Subject: [PATCH] Remove use of imp module for wx (GUI) The module "imp" has been removed in Python 3.12 https://docs.python.org/dev/whatsnew/3.12.html#imp Thanks to Christian Hesse for the bug report Closes: https://github.com/LudovicRousseau/pyscard/issues/161 --- smartcard/wx/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/smartcard/wx/__init__.py b/smartcard/wx/__init__.py index 3ecde07..5c57f46 100644 --- a/smartcard/wx/__init__.py +++ b/smartcard/wx/__init__.py @@ -22,15 +22,13 @@ along with pyscard; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA """ -import imp import os.path import sys def main_is_frozen(): return(hasattr(sys, "frozen") or \ - hasattr(sys, "importers") or \ - imp.is_frozen("__main__")) + hasattr(sys, "importers")) ICO_SMARTCARD = None -- 2.43.0