--- /dev/null
+--- gpgme-1.9.0/lang/qt/src/dn.cpp.orig 2017-03-20 20:10:15.000000000 +0100
++++ gpgme-1.9.0/lang/qt/src/dn.cpp 2017-03-29 20:58:29.893277570 +0200
+@@ -167,7 +167,7 @@
+ for (unsigned int i = 0; i < numOidMaps; ++i)
+ if (!strcasecmp((char *)p, oidmap[i].oid)) {
+ free(p);
+- gpgrt_asprintf(&p, oidmap[i].name);
++ gpgrt_asprintf(&p, "%s", oidmap[i].name);
+ break;
+ }
+ array->key = p;
---- gpgme-1.8.0/lang/python/Makefile.am.orig 2016-11-27 12:56:09.390089844 +0100
-+++ gpgme-1.8.0/lang/python/Makefile.am 2016-11-27 17:00:38.506589016 +0100
-@@ -101,14 +101,15 @@
- rm -f install_files.txt
- for PYTHON in $(PYTHONS); do \
+--- gpgme-1.9.0/lang/python/Makefile.am.orig 2017-03-29 20:00:06.723317571 +0200
++++ gpgme-1.9.0/lang/python/Makefile.am 2017-03-29 20:50:36.333282979 +0200
+@@ -105,7 +105,9 @@
+ PYTHON="$$1" ; shift ; \
+ cd python$${VERSION}-gpg ; \
$$PYTHON setup.py install \
- --prefix $(DESTDIR)$(prefix) \
+ --prefix $(prefix) \
+ --optimize=2 \
--record files.txt \
--verbose ; \
- cat files.txt >> install_files.txt ; \
- rm files.txt ; \
+ cat files.txt >> ../install_files.txt ; \
+@@ -113,7 +115,6 @@
+ cd .. ; \
done
$(MKDIR_P) $(DESTDIR)$(pythondir)/gpg
- mv install_files.txt $(DESTDIR)$(pythondir)/gpg
Summary: Library for accessing GnuPG
Summary(pl.UTF-8): Biblioteka dająca dostęp do funkcji GnuPG
Name: gpgme
-Version: 1.8.0
-Release: 2
+Version: 1.9.0
+Release: 1
Epoch: 1
License: LGPL v2.1+
Group: Libraries
Source0: ftp://ftp.gnupg.org/gcrypt/gpgme/%{name}-%{version}.tar.bz2
-# Source0-md5: 722a4153904b9b5dc15485a22d29263b
+# Source0-md5: 1e00bb8ef04d1d05d5a0f19e143854c3
Patch0: %{name}-info.patch
Patch1: %{name}-kill-tests.patch
Patch2: %{name}-largefile.patch
Patch3: %{name}-python.patch
+Patch4: %{name}-format.patch
URL: http://www.gnupg.org/gpgme.html
BuildRequires: autoconf >= 2.59
BuildRequires: automake >= 1:1.14
%{!?with_tests:%patch1 -p1}
%patch2 -p1
%patch3 -p1
+%patch4 -p1
%build
%{__libtoolize}