Add build-conditions to control running optional tests
This commit is contained in:
parent
97c4e0f1e4
commit
8f24b36bb5
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user