--- /dev/null
+--- poldek-0.42.2/pm/rpmorg/signature.c.orig 2021-04-17 12:56:41.167478071 +0200
++++ poldek-0.42.2/pm/rpmorg/signature.c 2021-04-17 12:56:12.007632757 +0200
+@@ -99,6 +99,9 @@
+
+ switch (td.tag) {
+ case RPMSIGTAG_RSA:
++ flags |= PKGVERIFY_PGP;
++ flags |= PKGVERIFY_GPG;
++ break;
+ case RPMSIGTAG_PGP5: /* XXX legacy */
+ case RPMSIGTAG_PGP:
+ flags |= PKGVERIFY_PGP;
Summary(pl.UTF-8): Pomocnicze narzędzie do zarządzania pakietami RPM
Name: poldek
Version: 0.42.2
-Release: 6
+Release: 7
License: GPL v2
Group: Applications/System
#Source0: http://poldek.pld-linux.org/download/snapshots/%{name}-%{version}-cvs%{snap}.tar.bz2
Patch13: trurlib-shared.patch
Patch14: rpm4-script-req-workaround.patch
Patch15: skip-buildid-obsoletes.patch
+Patch16: verify-signature.patch
+Patch17: %{name}-rsa_sig_rpmorg.patch
URL: http://poldek.pld-linux.org/
BuildRequires: %{db_pkg}-devel >= %{ver_db}
BuildRequires: autoconf >= 2.63
BuildRequires: libgomp-devel
BuildRequires: libtool
BuildRequires: libxml2-devel >= 2
+BuildRequires: lua54-devel
BuildRequires: ncurses-devel
BuildRequires: openssl-devel >= 0.9.7d
BuildRequires: pcre-devel
cd ..
%patch14 -p1
%patch15 -p1
+%patch16 -p1
+%patch17 -p1
%{__rm} doc/poldek.info
%{__rm} m4/libtool.m4 m4/lt*.m4
%{?with_static:%{__rm} $RPM_BUILD_ROOT%{_bindir}/rpmvercmp}
-%ifarch i686 aarch64
+%ifarch i686 aarch64 %{arm}
%define ftp_arch %{_target_cpu}
%endif
%ifarch %{x8664}
%define tld_conf %{SOURCE1}
%ifarch %{x8664}
- %define tld_multilib_conf %{SOURCE2}
+ %define tld_multilib_conf %{SOURCE2}
%endif
%define tld_debuginfo_conf %{SOURCE3}
--- /dev/null
+diff -up poldek-0.42.2/pkgfetch.c._orig poldek-0.42.2/pkgfetch.c
+diff -up poldek-0.42.2/pm/rpmorg/signature.c._orig poldek-0.42.2/pm/rpmorg/signature.c
+--- poldek-0.42.2/pm/rpmorg/signature.c._orig 2021-03-19 15:02:55.589828096 +0100
++++ poldek-0.42.2/pm/rpmorg/signature.c 2021-03-20 18:02:34.286105414 +0100
+@@ -177,6 +177,11 @@ static int do_verify_signature(const cha
+ if (fdt != NULL && Ferror(fdt) == 0) {
+ ts = rpmtsCreate();
+ rpmtsSetVfyFlags(ts, vfyflags);
++ if ((flags & (PKGVERIFY_PGP | PKGVERIFY_GPG)) == 0) {
++ int vfylevel = rpmtsVfyLevel(ts);
++ vfylevel &= ~RPMSIG_SIGNATURE_TYPE;
++ rpmtsSetVfyLevel(ts, vfylevel);
++ }
+ rc = rpmVerifySignatures(&qva, ts, fdt, n_basenam(path));
+ rpmtsFree(ts);
+