Control optional test with build condition

This commit is contained in:
Petr Písař 2017-12-12 11:16:42 +01:00
parent 4d40404f6b
commit 5f3e8b3da1
1 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,6 @@
# Run optional test
%bcond_without perl_IO_Socket_IP_enables_optional_test
Name: perl-IO-Socket-IP
Version: 0.39
Release: 4%{?dist}
@ -27,8 +30,8 @@ BuildRequires: perl(warnings)
# Tests only
BuildRequires: perl(IO::Socket::INET)
BuildRequires: perl(Test::More)
%if %{with perl_IO_Socket_IP_enables_optional_test} && !%{defined perl_bootstrap}
# Optional tests only
%if !%{defined perl_bootstrap}
BuildRequires: perl(Socket6)
BuildRequires: perl(Test::Pod) >= 1.00
%endif