Accepting request 1060160 from home:dirkmueller:branches:openSUSE:Factory:Rings:1-MinimalX
- add python311.patch to build language bindings for python 3.11 OBS-URL: https://build.opensuse.org/request/show/1060160 OBS-URL: https://build.opensuse.org/package/show/Base:System/gpgme?expand=0&rev=141
This commit is contained in:
parent
dd51d31562
commit
1d3f3745f0
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 21 14:57:30 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- add python311.patch to build language bindings for python 3.11
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 8 18:35:11 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
|
15
gpgme.spec
15
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
|
||||
|
26
python311.patch
Normal file
26
python311.patch
Normal file
@ -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])
|
Loading…
Reference in New Issue
Block a user