Control optional test with a macro
This commit is contained in:
parent
8bd87e81a3
commit
e0cec7bddd
@ -1,3 +1,10 @@
|
||||
# Run optional test
|
||||
%if ! 0%{?rhel}
|
||||
%bcond_without perl_YAML_Syck_enables_optional_test
|
||||
%else
|
||||
%bcond_with perl_YAML_Syck_enables_optional_test
|
||||
%endif
|
||||
|
||||
Name: perl-YAML-Syck
|
||||
Version: 1.30
|
||||
Release: 5%{?dist}
|
||||
@ -32,9 +39,11 @@ BuildRequires: perl(IO::File)
|
||||
BuildRequires: perl(Storable)
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(Tie::Hash)
|
||||
%if %{with perl_YAML_Syck_enables_optional_test}
|
||||
# Optional tests
|
||||
BuildRequires: perl(Devel::Leak)
|
||||
BuildRequires: perl(JSON)
|
||||
%endif
|
||||
# Dependencies
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Requires: perl(XSLoader)
|
||||
|
Loading…
Reference in New Issue
Block a user