Enable source verification only on Fedora builds

This commit is contained in:
Petr Menšík 2020-04-08 20:49:02 +02:00
parent 6b3788d026
commit 304cfaa8e0

View File

@ -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