Control optional test with a macro
This commit is contained in:
parent
4ccfded6e9
commit
af0f67b054
@ -1,3 +1,10 @@
|
||||
# Run optional test
|
||||
%if ! 0%{?rhel}
|
||||
%bcond_without perl_YAML_LibYAML_enables_optional_test
|
||||
%else
|
||||
%bcond_with perl_YAML_LibYAML_enables_optional_test
|
||||
%endif
|
||||
|
||||
Name: perl-YAML-LibYAML
|
||||
Epoch: 1
|
||||
Version: 0.69
|
||||
@ -48,8 +55,10 @@ BuildRequires: perl(Tie::Array)
|
||||
BuildRequires: perl(Tie::Hash)
|
||||
BuildRequires: perl(utf8)
|
||||
|
||||
%if %{with perl_YAML_LibYAML_enables_optional_test}
|
||||
# Optional Tests
|
||||
BuildRequires: perl(Path::Class)
|
||||
%endif
|
||||
|
||||
# Dependencies
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
|
Loading…
Reference in New Issue
Block a user