Accepting request 1218117 from Base:System

- add python313.patch to enable python 3.13 building

  anymore, and if we would it would happen via singlespec
- add python311.patch to build language bindings for python 3.11
- Use python-rpm-macros to provide python3X-gpg for all present
  * New function gpgme_op_revsig to revoke key signatures
  samba/libsoup.
  it is included upstream now.
- Re-conditionalize python builds, to allow gpgme to build on
  Leap 42.3 (python tests fail with an older gpg, see
  needed, fix GCC7 build
- Add remove-a-forgotten-instance-of-libsuffix.diff: fix CMake
  files for gpgmepp (or they won't work with KDE software)
- making the build reproducible - see
- gpgme-config --libs lists -lassuan, but libgpgme-devel did not
- Workaround qemu-arm bugs
- update to gpgme-1.3.1
- Add gnupg-2.0.17-test-failure.patch: fix test failure with gnupg 2.0.17
- fix -devel package dependencies
- drop unneeded BRs: libgcrypt-devel, libksba-devel
- change BuildRequires: (pth-devel -> libpth-devel)
- BuildRequires: pth-devel
- add upstream patches to run the testsuite non-interactively
- fix library-without-ldconfig-post* errors
- remove devel requires from library package
- updated filelist
- update of url
- fixed bug #36194
  fixed #29620, #29641 and #29642
- fixed -fPIC and lib64 Problems

OBS-URL: https://build.opensuse.org/request/show/1218117
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gpgme?expand=0&rev=107
This commit is contained in:
Ana Guerrero 2024-10-25 17:19:03 +00:00 committed by Git OBS Bridge
commit 0bbd326a10
3 changed files with 86 additions and 42 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Sep 1 18:26:03 UTC 2024 - Dirk Müller <dmueller@suse.com>
- add python313.patch to enable python 3.13 building
-------------------------------------------------------------------
Sat Feb 17 11:20:39 UTC 2024 - Ben Greiner <code@bnavigator.de>

View File

@ -58,6 +58,7 @@ Source99: gpgme.changes
Patch1: gpgme-D545-obsolete-distutils.patch
# PATCH-FIX-OPENSUSE gpgme-suse-nobetasuffix.patch code@bnavigator.de -- remove "-unknown" betasuffix boo#1205197
Patch2: gpgme-suse-nobetasuffix.patch
Patch3: python313.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
@ -257,12 +258,12 @@ This package contains the bindings to use the library in Qt 6 C++ applications.
%prep
%autosetup -N -n gpgme-%{version}
%if %{with replace_distutils}
%patch -p1 -P1 -P2
%patch -p1 -P1 -P2 -P3
%endif
%if 0%{suse_version} > 1500
# Note: rpm in 15.x does not know about the autopatch -m flag.
# Need to apply every additional patch explicitly, if any.
%autopatch -p1 -m3
%autopatch -p1 -m4
%endif
%build

38
python313.patch Normal file
View File

@ -0,0 +1,38 @@
Index: gpgme-1.23.2/configure.ac
===================================================================
--- gpgme-1.23.2.orig/configure.ac
+++ gpgme-1.23.2/configure.ac
@@ -591,7 +591,7 @@ if test "$found_py" = "1"; then
# Reset everything, so that we can look for another Python.
m4_foreach([mym4pythonver],
[[2.7],[3.4],[3.5],[3.6],[3.7],[3.8],[3.9],[3.10],
- [3.11],[3.12],[all]],
+ [3.11],[3.12],[3.13],[all]],
[unset PYTHON
unset PYTHON_VERSION
unset PYTHON_CPPFLAGS
Index: gpgme-1.23.2/lang/python/setup.py.in
===================================================================
--- gpgme-1.23.2.orig/lang/python/setup.py.in
+++ gpgme-1.23.2/lang/python/setup.py.in
@@ -291,6 +291,7 @@ GPGME and these bindings is available he
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
+ 'Programming Language :: Python :: 3.13',
'Operating System :: POSIX',
'Operating System :: Microsoft :: Windows',
'Topic :: Communications :: Email',
Index: gpgme-1.23.2/m4/python.m4
===================================================================
--- gpgme-1.23.2.orig/m4/python.m4
+++ gpgme-1.23.2/m4/python.m4
@@ -41,7 +41,7 @@ AC_DEFUN([AM_PATH_PYTHON],
m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
[python2 python2.7 dnl
python dnl
- python3 python3.12 python3.11 python3.10 python3.9 python3.8 python3.6
+ python3 python3.13 python3.12 python3.11 python3.10 python3.9 python3.8 python3.6
])
AC_ARG_VAR([PYTHON], [the Python interpreter])