Guard explicit dependency on /usr/bin/gpg by perl_CPAN_enables_gnupg_test too

This commit is contained in:
Petr Písař 2017-04-05 11:22:42 +02:00
parent 470e724236
commit 4159d449e5

View File

@ -104,9 +104,11 @@ BuildRequires: perl(Pod::Usage)
BuildRequires: perl(Test::More) BuildRequires: perl(Test::More)
# Optional tests: # Optional tests:
%if %{with perl_CPAN_enables_gnupg_test}
BuildRequires: %{_bindir}/gpg BuildRequires: %{_bindir}/gpg
# Digest::SHA1 not needed if Digest::SHA is available # Digest::SHA1 not needed if Digest::SHA is available
# Digest::SHA::PurePerl not needed if Digest::SHA is available # Digest::SHA::PurePerl not needed if Digest::SHA is available
%endif
%if !%{defined perl_bootstrap} %if !%{defined perl_bootstrap}
BuildRequires: perl(Expect) BuildRequires: perl(Expect)
%endif %endif