From b29f943a4c335573eadbb8511cc76b34bd450b18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= Date: Tue, 13 Oct 2020 18:41:29 +0200 Subject: [PATCH] Build on EPEL without signature check %gpgverify is defined on RHEL 8 in incompatible way to Fedora. Use it only on Fedora, leave to manual signatures for other distributions. --- unbound.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/unbound.spec b/unbound.spec index 69e571f..8bed946 100644 --- a/unbound.spec +++ b/unbound.spec @@ -66,7 +66,9 @@ BuildRequires: gcc, make BuildRequires: flex, openssl-devel BuildRequires: libevent-devel expat-devel BuildRequires: pkgconfig +%if 0%{?fedora} BuildRequires: gnupg2 +%endif %if 0%{with_python2} BuildRequires: python2-devel swig %endif @@ -162,7 +164,9 @@ Python 3 modules and extensions for unbound %prep -%{?gpgverify:%gpgverify -k 19 -s 18 -d 0} +%if 0%{?fedora} +%gpgverify -k 19 -s 18 -d 0 +%endif %global pkgname %{name}-%{version}%{?extra_version} %if 0%{with_python2} && 0%{with_python3}