From e0cec7bddda57a3952c113b34748c3305a41cc6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Thu, 12 Apr 2018 10:53:17 +0200 Subject: [PATCH] Control optional test with a macro --- perl-YAML-Syck.spec | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/perl-YAML-Syck.spec b/perl-YAML-Syck.spec index d76873a..cd1e4fe 100644 --- a/perl-YAML-Syck.spec +++ b/perl-YAML-Syck.spec @@ -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)