From 304cfaa8e056047f94d9e7c5952011edeab88b33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= Date: Wed, 8 Apr 2020 20:49:02 +0200 Subject: [PATCH] Enable source verification only on Fedora builds --- bind.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bind.spec b/bind.spec index e7bc694..ee7f5ff 100644 --- a/bind.spec +++ b/bind.spec @@ -152,7 +152,9 @@ BuildRequires: selinux-policy BuildRequires: python3-devel BuildRequires: python3-ply BuildRequires: findutils sed +%if 0%{?fedora} BuildRequires: gnupg2 +%endif BuildRequires: libuv-devel %if %{with DLZ} BuildRequires: openldap-devel, libpq-devel, sqlite-devel, mariadb-connector-c-devel @@ -414,7 +416,10 @@ BuildArch: noarch This package provides a module which allows commands to be sent to rndc directly from Python programs. %prep +%if 0%{?fedora} +# RHEL does not yet support this verification %{gpgverify} --keyring='%{SOURCE4}' --signature='%{SOURCE2}' --data='%{SOURCE0}' +%endif %setup -q -n %{name}-%{BINDVERSION} # Common patches