From b8f1071dfbb21d95fcaae70583e6455104c6cd74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Tue, 12 Dec 2017 13:00:48 +0100 Subject: [PATCH] Control optional test with a build condition --- perl-Term-ANSIColor.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-Term-ANSIColor.spec b/perl-Term-ANSIColor.spec index 420e403..1d7962d 100644 --- a/perl-Term-ANSIColor.spec +++ b/perl-Term-ANSIColor.spec @@ -1,3 +1,6 @@ +# Run optional test +%bcond_without perl_Term_ANSIColor_enables_optional_test + Name: perl-Term-ANSIColor Version: 4.06 Release: 395%{?dist} @@ -26,7 +29,7 @@ BuildRequires: perl(lib) BuildRequires: perl(overload) BuildRequires: perl(Test::More) # Optional tests -%if !%{defined perl_bootstrap} +%if %{with perl_Term_ANSIColor_enables_optional_test} && !%{defined perl_bootstrap} BuildRequires: perl(IPC::System::Simple) %endif Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))