diff --git a/perl-CGI.spec b/perl-CGI.spec index 5f89a44..819722c 100644 --- a/perl-CGI.spec +++ b/perl-CGI.spec @@ -1,3 +1,6 @@ +# Run optional test +%bcond_without perl_CGI_enables_optional_test + Name: perl-CGI Summary: Handle Common Gateway Interface requests and responses Version: 4.51 @@ -41,7 +44,7 @@ BuildRequires: perl(Test::Deep) >= 0.11 BuildRequires: perl(Test::More) >= 0.98 BuildRequires: perl(Test::Warn) >= 0.3 BuildRequires: perl(utf8) -%if !%{defined perl_bootstrap} +%if !%{defined perl_bootstrap} && %{with perl_CGI_enables_optional_test} # Optional tests BuildRequires: perl(Test::CPAN::Changes) %endif