Conditionalize optional tests
This commit is contained in:
parent
76b9751950
commit
6fd9f4015d
@ -1,3 +1,6 @@
|
||||
# Perform optional tests
|
||||
%bcond_without perl_JSON_PP_enables_optional_test
|
||||
|
||||
Name: perl-JSON-PP
|
||||
Epoch: 1
|
||||
Version: 4.02
|
||||
@ -36,11 +39,13 @@ BuildRequires: perl(Test)
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(Tie::Array)
|
||||
BuildRequires: perl(Tie::Hash)
|
||||
%if %{with perl_JSON_PP_enables_optional_test}
|
||||
# Optional tests
|
||||
%if !%{defined perl_bootstrap}
|
||||
# Disable non-core dependencies when bootstrapping a core module
|
||||
BuildRequires: perl(Tie::IxHash)
|
||||
%endif
|
||||
%endif
|
||||
# Runtime
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Requires: perl(Data::Dumper)
|
||||
|
Loading…
Reference in New Issue
Block a user