Control optional test with a build condition
This commit is contained in:
parent
19bded576e
commit
9a8a5a8fd2
@ -1,3 +1,6 @@
|
||||
# Run optional test
|
||||
%bcond_without perl_Eval_Closure_enables_optional_test
|
||||
|
||||
Name: perl-Eval-Closure
|
||||
Version: 0.14
|
||||
Release: 4%{?dist}
|
||||
@ -33,8 +36,10 @@ BuildRequires: perl(Test::Fatal)
|
||||
BuildRequires: perl(Test::More) >= 0.88
|
||||
BuildRequires: perl(Test::Requires)
|
||||
BuildRequires: perl(warnings)
|
||||
%if %{with perl_Eval_Closure_enables_optional_test}
|
||||
# Optional Tests
|
||||
BuildRequires: perl(Test::Output)
|
||||
%endif
|
||||
# Runtime
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Requires: perl(Devel::LexAlias) >= 0.05
|
||||
|
Loading…
Reference in New Issue
Block a user