From 5f3e8b3da1385c6f44c96c79b503a2b474da6fd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Tue, 12 Dec 2017 11:16:42 +0100 Subject: [PATCH] Control optional test with build condition --- perl-IO-Socket-IP.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-IO-Socket-IP.spec b/perl-IO-Socket-IP.spec index d435b2d..9e6eeb7 100644 --- a/perl-IO-Socket-IP.spec +++ b/perl-IO-Socket-IP.spec @@ -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