From fef6ec3173775fd060c5aa2536caec9a764d7a49 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Mon, 3 Jul 2023 09:27:53 -0400 Subject: [PATCH] Disable optional dependencies in RHEL builds perl-XS-Parse-Keyword 0.34 switched from Test::More to Test2::V0, pulling this into the ELN (and hence RHEL 10) buildroot. JSON::MaybeXS is optional in the test suite, and pulls in Cpanel::JSON::XS which has many otherwise unnecessary dependencies. --- perl-Test2-Suite.spec | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/perl-Test2-Suite.spec b/perl-Test2-Suite.spec index b7cc696..26b7913 100644 --- a/perl-Test2-Suite.spec +++ b/perl-Test2-Suite.spec @@ -1,5 +1,12 @@ +# Run extra test # Break lines according to Unicode rules +%if ! (0%{?rhel}) +%bcond_without perl_Test2_Suite_enables_extra_test %bcond_without perl_Test2_Suite_enables_unicode +%else +%bcond_with perl_Test2_Suite_enables_extra_test +%bcond_with perl_Test2_Suite_enables_unicode +%endif Name: perl-Test2-Suite Version: 0.000155 @@ -62,7 +69,9 @@ BuildRequires: perl(Unicode::GCString) %endif # Tests: BuildRequires: perl(IO::Handle) +%if %{with perl_Test2_Suite_enables_extra_test} BuildRequires: perl(JSON::MaybeXS) +%endif BuildRequires: perl(PerlIO) BuildRequires: perl(Test2::EventFacet::Assert) BuildRequires: perl(Test2::Formatter::TAP)