diff --git a/gpgme.changes b/gpgme.changes index 0682134..95fc441 100644 --- a/gpgme.changes +++ b/gpgme.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Jan 21 14:57:30 UTC 2023 - Dirk Müller + +- add python311.patch to build language bindings for python 3.11 + ------------------------------------------------------------------- Tue Nov 8 18:35:11 UTC 2022 - Ben Greiner diff --git a/gpgme.spec b/gpgme.spec index e7ab45d..0224916 100644 --- a/gpgme.spec +++ b/gpgme.spec @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,7 +28,6 @@ %bcond_with python3 %bcond_without qt %endif -%{!?python_module:%define python_module() python-%{**} python3-{**}} Name: gpgme%{psuffix} Version: 1.18.0 Release: 0 @@ -36,8 +35,8 @@ Summary: Programmatic library interface to GnuPG License: GPL-3.0-or-later AND LGPL-2.1-or-later Group: Productivity/Security URL: https://www.gnupg.org/related_software/gpgme/ -Source: ftp://ftp.gnupg.org/gcrypt/gpgme/gpgme-%{version}.tar.bz2 -Source1: ftp://ftp.gnupg.org/gcrypt/gpgme/gpgme-%{version}.tar.bz2.sig +Source: https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-%{version}.tar.bz2 +Source1: https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-%{version}.tar.bz2.sig Source2: baselibs.conf # https://www.gnupg.org/signature_key.html Source3: gpgme.keyring @@ -51,6 +50,8 @@ Patch4: gpgme-D546-python310.patch Patch5: gpgme-1.18.0-T6137-qt_test.patch # PATCH-FIX-OPENSUSE gpgme-suse-nobetasuffix.patch code@bnavigator.de -- remove "-unknown" betasuffix boo#1205197 Patch6: gpgme-suse-nobetasuffix.patch +# Enable python 3.11 as well +Patch7: python311.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: gcc-c++ @@ -215,11 +216,7 @@ management. This package contains the bindings to use the library in Qt C++ applications. %prep -%setup -q -n gpgme-%{version} -%patch3 -p1 -%patch4 -p1 -%patch5 -p1 -%patch6 -p1 +%autosetup -p1 -n gpgme-%{version} %build ./autogen.sh diff --git a/python311.patch b/python311.patch new file mode 100644 index 0000000..d82879f --- /dev/null +++ b/python311.patch @@ -0,0 +1,26 @@ +Index: gpgme-1.18.0/configure.ac +=================================================================== +--- gpgme-1.18.0.orig/configure.ac ++++ gpgme-1.18.0/configure.ac +@@ -443,7 +443,7 @@ if test "$found_py" = "1"; then + if test "$found_py" = "1" -o "$found_py3" = "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],[all]], ++ [[2.7],[3.4],[3.5],[3.6],[3.7],[3.8],[3.9],[3.10],[3.11],[all]], + [unset PYTHON + unset PYTHON_VERSION + unset PYTHON_CPPFLAGS +Index: gpgme-1.18.0/m4/python.m4 +=================================================================== +--- gpgme-1.18.0.orig/m4/python.m4 ++++ gpgme-1.18.0/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.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 ++ python3 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 + ]) + + AC_ARG_VAR([PYTHON], [the Python interpreter])