File add-patch.diff of Package gpgme

--- gpgme.spec.orig	2020-11-30 09:58:01.314452792 +0200
+++ gpgme.spec	2020-11-30 09:41:44.237126195 +0200
@@ -41,12 +41,16 @@
 Source3:        gpgme.keyring
 # used to have a fixed timestamp
 Source99:       gpgme.changes
+Patch0:         fix-gpgme-tool-libdep.patch
+Patch1:         gpgme-t-json-test-Bravo-key-no-secret-key-material.patch
+Patch2:         gpgme-t-json-test-with-keygrip-when-listing-keys.patch
 BuildRequires:  gcc-c++
 BuildRequires:  gpg2 >= 2.0.10
 BuildRequires:  libassuan-devel >= 2.4.2
 BuildRequires:  libgpg-error-devel >= 1.28
 BuildRequires:  pkgconfig
 BuildRequires:  swig
+BuildRequires:  automake
 Requires(post): %{install_info_prereq}
 Requires(preun): %{install_info_prereq}
 %if %{with python2}
@@ -183,6 +187,13 @@
 
 %prep
 %setup -q -n gpgme-%{version}
+%if 0%{?suse_version} > 1500
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+aclocal
+automake src/Makefile
+%endif
 
 %ifarch %{ix86}
 sed -i -e '/t-callbacks.py/d' lang/python/tests/Makefile.{am,in}
openSUSE Build Service is sponsored by