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