Make spec work also on CentOS 8

Move some conditional requirements to be enabled just on Fedora.
This commit is contained in:
Petr Menšík 2020-04-16 11:10:15 +02:00
parent 304cfaa8e0
commit 5e13eb8e75

View File

@ -17,7 +17,6 @@
%bcond_without DEVEL %bcond_without DEVEL
%bcond_without LMDB %bcond_without LMDB
%bcond_without JSON %bcond_without JSON
%bcond_without DNSTAP
%bcond_with BDB %bcond_with BDB
# skip DLZ for now # skip DLZ for now
%bcond_without DLZ %bcond_without DLZ
@ -25,8 +24,10 @@
%bcond_without GEOIP2 %bcond_without GEOIP2
%if 0%{?fedora} >= 28 %if 0%{?fedora} >= 28
%bcond_without UNITTEST %bcond_without UNITTEST
%bcond_without DNSTAP
%else %else
%bcond_with UNITTEST %bcond_with UNITTEST
%bcond_with DNSTAP
%endif %endif
%bcond_with TSAN %bcond_with TSAN
@ -416,7 +417,7 @@ BuildArch: noarch
This package provides a module which allows commands to be sent to rndc directly from Python programs. This package provides a module which allows commands to be sent to rndc directly from Python programs.
%prep %prep
%if 0%{?fedora} %if 0%{?gpgverify:1}
# RHEL does not yet support this verification # RHEL does not yet support this verification
%{gpgverify} --keyring='%{SOURCE4}' --signature='%{SOURCE2}' --data='%{SOURCE0}' %{gpgverify} --keyring='%{SOURCE4}' --signature='%{SOURCE2}' --data='%{SOURCE0}'
%endif %endif