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.
This commit is contained in:
parent
1cf8c20d9c
commit
fef6ec3173
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user