Conditionalize optional tests
This commit is contained in:
parent
256920e699
commit
9036624c53
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user