From 8f24b36bb55945b6aa17ca6cdb4d9bb2ddd2f772 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Tue, 9 Feb 2021 10:21:54 +0100 Subject: [PATCH] Add build-conditions to control running optional tests --- perl-CGI.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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