Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-gpg for openSUSE:Factory 
checked in at 2026-08-21 16:50:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-gpg (Old)
 and      /work/SRC/openSUSE:Factory/.python-gpg.new.1258 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-gpg"

Fri Aug 21 16:50:06 2026 rev:4 rq:1371252 version:2.0.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-gpg/python-gpg.changes    2025-07-24 
18:46:01.314883150 +0200
+++ /work/SRC/openSUSE:Factory/.python-gpg.new.1258/python-gpg.changes  
2026-08-21 16:50:39.262264991 +0200
@@ -1,0 +2,5 @@
+Fri Aug 14 18:09:48 UTC 2026 - Andreas Stieger <[email protected]>
+
+- fix build with swig 4.5.0 adding gpgmepy-2.0.0-swig-4-5-0.patch
+
+-------------------------------------------------------------------

New:
----
  gpgmepy-2.0.0-swig-4-5-0.patch

----------(New B)----------
  New:
- fix build with swig 4.5.0 adding gpgmepy-2.0.0-swig-4-5-0.patch
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-gpg.spec ++++++
--- /var/tmp/diff_new_pack.wjTAdu/_old  2026-08-21 16:50:40.170297602 +0200
+++ /var/tmp/diff_new_pack.wjTAdu/_new  2026-08-21 16:50:40.173297710 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-gpg
 #
-# Copyright (c) 2025 Andreas Stieger <[email protected]>
+# Copyright (c) 2026 Andreas Stieger <[email protected]>
 # Copyright (c) 2025 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
@@ -37,6 +37,7 @@
 %ifarch %{ix86} %{arm}
 Patch3:         gpgmepy-2.0.0-swig-32-bit.patch
 %endif
+Patch4:         gpgmepy-2.0.0-swig-4-5-0.patch
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools >= 65.2.0}

++++++ gpgmepy-2.0.0-swig-4-5-0.patch ++++++
>From d10c43e008fa5638111c9777248d3564a7ff9add Mon Sep 17 00:00:00 2001
From: Funda Wang <[email protected]>
Date: Fri, 7 Aug 2026 23:12:05 +0800
Subject: [PATCH] port to python3 only codebase

---
 gpgme.i | 16 ++--------------
 1 file changed, 2 insertions(+), 14 deletions(-)

diff --git a/gpgme.i b/gpgme.i
index 2b4a0c0..fb2f04f 100644
--- a/gpgme.i
+++ b/gpgme.i
@@ -94,8 +94,8 @@
             }
           $1[i] = PyBytes_AsString(pyVector[i]);
         }
-      else if (PyString_Check(o))
-       $1[i] = PyString_AsString(o);
+      else if (PyBytes_Check(o))
+       $1[i] = PyBytes_AsString(o);
       else {
        PyErr_Format(PyExc_TypeError,
                      "arg %d: list must contain only str or bytes, got %s "
@@ -315,10 +315,6 @@
 %typemap(in) ssize_t, gpgme_error_t, gpgme_err_code_t, gpgme_err_source_t, 
gpg_error_t {
   if (PyLong_Check($input))
     $1 = PyLong_AsLong($input);
-#if PY_MAJOR_VERSION < 3
-  else if (PyInt_Check($input))
-    $1 = PyInt_AsLong($input);
-#endif
   else {
     PyErr_SetString(PyExc_TypeError, "Numeric argument expected");
     return NULL;
@@ -339,10 +335,6 @@
     $1 = PyLong_AsLongLong($input);
 #else
     $1 = PyLong_AsLong($input);
-#endif
-#if PY_MAJOR_VERSION < 3
-  else if (PyInt_Check($input))
-    $1 = PyInt_AsLong($input);
 #endif
   else {
     PyErr_SetString(PyExc_TypeError, "Numeric argument expected");
@@ -356,10 +348,6 @@
     long tmp$argnum;
     if (PyLong_Check($input))
       tmp$argnum = PyLong_AsLong($input);
-#if PY_MAJOR_VERSION < 3
-    else if (PyInt_Check($input))
-      tmp$argnum = PyInt_AsLong($input);
-#endif
     else
       {
         PyErr_SetString(PyExc_TypeError, "Numeric argument expected");
-- 
2.54.0

Reply via email to