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
|
Name: perl-YAML-LibYAML
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 0.69
|
Version: 0.69
|
||||||
@ -48,8 +55,10 @@ BuildRequires: perl(Tie::Array)
|
|||||||
BuildRequires: perl(Tie::Hash)
|
BuildRequires: perl(Tie::Hash)
|
||||||
BuildRequires: perl(utf8)
|
BuildRequires: perl(utf8)
|
||||||
|
|
||||||
|
%if %{with perl_YAML_LibYAML_enables_optional_test}
|
||||||
# Optional Tests
|
# Optional Tests
|
||||||
BuildRequires: perl(Path::Class)
|
BuildRequires: perl(Path::Class)
|
||||||
|
%endif
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||||
|
Loading…
Reference in New Issue
Block a user