This should fix it: diff --git a/perl-Devel-CheckLib.spec b/perl-Devel-CheckLib.spec index 9645a77..4e0d6f3 100644 --- a/perl-Devel-CheckLib.spec +++ b/perl-Devel-CheckLib.spec @@ -31,6 +31,7 @@ BuildRequires: perl(File::Spec::Functions) BuildRequires: perl(IO::File) BuildRequires: perl(Capture::Tiny) BuildRequires: perl(lib) +BuildRequires: perl(blib) BuildRequires: perl(Test::More) >= 0.88 # Optional tests %if %{with perl_Devel_CheckLib_enables_optional_test} It's not visible in the current buildroot because for some reason, the testsuite does not find GCC, so not much is tested: PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-load.t ................... ok t/analyze-binary.t ............ skipped: Couldn't find your C compiler Subroutine Config::STORE redefined at t/bad-single-word-compiler.t line 19. t/bad-single-word-compiler.t .. ok t/cmdline-LIBS-INC.t .......... skipped: Couldn't find your C compiler t/custom-function.t ........... skipped: Couldn't find your C compiler t/dash-l-libs.t ............... skipped: Couldn't find your C compiler t/exit_with_message.t ......... skipped: Couldn't find your C compiler t/flags.t ..................... skipped: Couldn't find your C compiler t/found.t ..................... skipped: Couldn't find your C compiler t/headers.t ................... skipped: Couldn't find your C compiler Subroutine Config::STORE redefined at t/multi-word-compiler.t line 19. t/multi-word-compiler.t ....... ok t/not_found.t ................. skipped: Couldn't find your C compiler All tests successful. Files=12, Tests=3, 1 wallclock secs ( 0.02 usr 0.01 sys + 0.67 cusr 0.07 csys = 0.77 CPU) Result: PASS
GCC is not needed for building of the module, but should be required for tests execution. I would recommend adding perl(blib) and gcc to build-requires.
commit 5527c758ac03fa786654bdab0da8b9b6d1b632b6 Author: Jitka Plesnikova <jplesnik> Date: Tue Jul 18 10:15:29 2023 +0200 Resolves: rhbz#2216280 - Add test BR gcc and perl(blib) to not skip the tests
https://gitlab.com/redhat/centos-stream/rpms/perl-Devel-CheckLib/-/merge_requests/1