From c7adc74b4ade28fabd1fdf10514281b99b2f32a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Tue, 12 Dec 2017 10:19:38 +0100 Subject: [PATCH] Control optional test with a build condition --- perl-constant.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-constant.spec b/perl-constant.spec index d581aa1..4e59717 100644 --- a/perl-constant.spec +++ b/perl-constant.spec @@ -1,3 +1,6 @@ +# Run optional test +%bcond_without perl_constant_enables_optional_test + %global cpan_version 1.27 Name: perl-constant @@ -23,7 +26,7 @@ BuildRequires: perl(warnings::register) BuildRequires: perl(Test::More) BuildRequires: perl(utf8) BuildRequires: perl(warnings) -%if !%{defined perl_bootstrap} +%if %{with perl_constant_enables_optional_test} && !%{defined perl_bootstrap} # Optional tests: BuildRequires: perl(Test::Pod) >= 1.14 BuildRequires: perl(Test::Pod::Coverage) >= 1.04