From a8f8de1cf98542f6e0978cafe618310d2872af84 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Sep 15 2017 10:59:40 +0000 Subject: Introduce build-condition for optional tests --- diff --git a/perl-IO-Socket-INET6.spec b/perl-IO-Socket-INET6.spec index 706e4df..d9960fd 100644 --- a/perl-IO-Socket-INET6.spec +++ b/perl-IO-Socket-INET6.spec @@ -1,3 +1,5 @@ +%{bcond_without perl_IO_Socket_INET6_enables_optional_test} + Name: perl-IO-Socket-INET6 Version: 2.72 Release: 11%{?dist} @@ -24,10 +26,12 @@ BuildRequires: perl(Test::More) BuildRequires: perl(utf8) BuildRequires: perl(vars) BuildRequires: perl(warnings) +%if %{with perl_IO_Socket_INET6_enables_optional_test} # Optional Tests BuildRequires: perl(Test::Pod) >= 1.14 BuildRequires: perl(Test::Pod::Coverage) >= 1.04 BuildRequires: perl(Test::TrailingSpace) +%endif # Runtime Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))