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}