diff --git a/perl-Net-Ping.spec b/perl-Net-Ping.spec index bc90b3e..254bd2a 100644 --- a/perl-Net-Ping.spec +++ b/perl-Net-Ping.spec @@ -1,3 +1,6 @@ +# Perform optional tests +%bcond_without perl_Net_Ping_enables_optional_test + Name: perl-Net-Ping Version: 2.74 Release: 479%{?dist} @@ -41,6 +44,7 @@ BuildRequires: perl(Cwd) BuildRequires: perl(File::Spec) BuildRequires: perl(Test::More) # sudo not used +%if %{with perl_Net_Ping_enables_optional_test} # Optional tests: BuildRequires: perl(:VERSION) >= 5.6 # Class::XSAccessor not used @@ -52,6 +56,7 @@ BuildRequires: perl(IO::Socket) # Test::Kwalitee not used BuildRequires: perl(Test::Pod) >= 1.22 # Test::Pod::Coverage not used +%endif Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(IO::Socket::INET) # Keep Net::Ping::External optional