Control optional test with a build condition

This commit is contained in:
Petr Písař 2017-12-07 12:35:24 +01:00
parent 19bded576e
commit 9a8a5a8fd2
1 changed files with 5 additions and 0 deletions

View File

@ -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