From 4385760309fa4aa842a8d6db68538a6994327ac5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Tue, 12 Dec 2017 10:46:19 +0100 Subject: [PATCH] Control optionl test with a build condition --- perl-ExtUtils-Install.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/perl-ExtUtils-Install.spec b/perl-ExtUtils-Install.spec index 859e5de..aaf97a0 100644 --- a/perl-ExtUtils-Install.spec +++ b/perl-ExtUtils-Install.spec @@ -1,3 +1,6 @@ +# Run optional test +%bcond_without perl_ExtUtils_Install_enables_optional_test + Name: perl-ExtUtils-Install Version: 2.14 Release: 3%{?dist} @@ -40,12 +43,14 @@ BuildRequires: perl(Test::More) # VMS::DCLsymnot used # Unbundled tests: # Test::Builder not used +%if %{with perl_ExtUtils_Install_enables_optional_test} # Optional testes: %if !%{defined perl_bootstrap} BuildRequires: perl(Test::Pod) >= 1.14 # Test::Pod::Coverage 1.08 not used # Pod::Coverage 0.17 not used %endif +%endif Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(AutoSplit) Requires: perl(Data::Dumper)