diff --git a/perl-YAML-LibYAML.spec b/perl-YAML-LibYAML.spec index 43158b8..4262b02 100644 --- a/perl-YAML-LibYAML.spec +++ b/perl-YAML-LibYAML.spec @@ -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))