Control optional test with build condition
This commit is contained in:
parent
4d40404f6b
commit
5f3e8b3da1
@ -1,3 +1,6 @@
|
|||||||
|
# Run optional test
|
||||||
|
%bcond_without perl_IO_Socket_IP_enables_optional_test
|
||||||
|
|
||||||
Name: perl-IO-Socket-IP
|
Name: perl-IO-Socket-IP
|
||||||
Version: 0.39
|
Version: 0.39
|
||||||
Release: 4%{?dist}
|
Release: 4%{?dist}
|
||||||
@ -27,8 +30,8 @@ BuildRequires: perl(warnings)
|
|||||||
# Tests only
|
# Tests only
|
||||||
BuildRequires: perl(IO::Socket::INET)
|
BuildRequires: perl(IO::Socket::INET)
|
||||||
BuildRequires: perl(Test::More)
|
BuildRequires: perl(Test::More)
|
||||||
|
%if %{with perl_IO_Socket_IP_enables_optional_test} && !%{defined perl_bootstrap}
|
||||||
# Optional tests only
|
# Optional tests only
|
||||||
%if !%{defined perl_bootstrap}
|
|
||||||
BuildRequires: perl(Socket6)
|
BuildRequires: perl(Socket6)
|
||||||
BuildRequires: perl(Test::Pod) >= 1.00
|
BuildRequires: perl(Test::Pod) >= 1.00
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user