Introduce build-condition for gnup1 tests
And disable the tests by default because they need a network access.
This commit is contained in:
parent
be3831d860
commit
470e724236
|
@ -1,3 +1,7 @@
|
||||||
|
# Don not run gnupg1 tests by default, they need network access
|
||||||
|
# (Socket::inet_aton('pool.sks-keyservers.net')).
|
||||||
|
%bcond_with perl_CPAN_enables_gnupg_test
|
||||||
|
|
||||||
Name: perl-CPAN
|
Name: perl-CPAN
|
||||||
Version: 2.16
|
Version: 2.16
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
|
@ -109,10 +113,14 @@ BuildRequires: perl(Expect)
|
||||||
BuildRequires: perl(Hash::Util)
|
BuildRequires: perl(Hash::Util)
|
||||||
%if !%{defined perl_bootstrap}
|
%if !%{defined perl_bootstrap}
|
||||||
# Kwalify not yet packaged
|
# Kwalify not yet packaged
|
||||||
|
%if %{with perl_CPAN_enables_gnupg_test}
|
||||||
BuildRequires: perl(Module::Signature) >= 0.66
|
BuildRequires: perl(Module::Signature) >= 0.66
|
||||||
|
%endif
|
||||||
BuildRequires: perl(Perl::Version)
|
BuildRequires: perl(Perl::Version)
|
||||||
%endif
|
%endif
|
||||||
|
%if %{with perl_CPAN_enables_gnupg_test}
|
||||||
BuildRequires: perl(Socket)
|
BuildRequires: perl(Socket)
|
||||||
|
%endif
|
||||||
%if !%{defined perl_bootstrap}
|
%if !%{defined perl_bootstrap}
|
||||||
BuildRequires: perl(Sort::Versions)
|
BuildRequires: perl(Sort::Versions)
|
||||||
# Test::MinimumVersion not used
|
# Test::MinimumVersion not used
|
||||||
|
|
Loading…
Reference in New Issue