From 9c3baad1734b734c4616e63f400fe48da2202962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Tue, 12 Dec 2017 12:00:17 +0100 Subject: [PATCH] Control optional test with a build condition --- perl-Module-CoreList.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-Module-CoreList.spec b/perl-Module-CoreList.spec index d265bbb..63bc8de 100644 --- a/perl-Module-CoreList.spec +++ b/perl-Module-CoreList.spec @@ -1,3 +1,6 @@ +# Run optional test +%bcond_without perl_Module_CoreList_enables_optional_test + Name: perl-Module-CoreList # Epoch to compete with perl.spec Epoch: 1 @@ -25,7 +28,7 @@ BuildRequires: perl(warnings) # Tests: BuildRequires: perl(Test::More) # Optional tests: -%if !%{defined perl_bootstrap} +%if %{with perl_Module_CoreList_enables_optional_test} && !%{defined perl_bootstrap} BuildRequires: perl(Test::Pod) >= 1.00 %endif Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))