From 185500af528aa722bebcad0fe00594baa45eae91 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Tue, 11 Mar 2025 07:57:54 +0000 Subject: [PATCH] import CS perl-Module-CoreList-5.20240609-1.el9 --- .gitignore | 2 +- .perl-Module-CoreList.metadata | 2 +- SPECS/perl-Module-CoreList.spec | 26 ++++++++++---------------- 3 files changed, 12 insertions(+), 18 deletions(-) diff --git a/.gitignore b/.gitignore index ba11b15..2bf78a9 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/Module-CoreList-5.20210320.tar.gz +SOURCES/Module-CoreList-5.20240609.tar.gz diff --git a/.perl-Module-CoreList.metadata b/.perl-Module-CoreList.metadata index add91ee..f3477c5 100644 --- a/.perl-Module-CoreList.metadata +++ b/.perl-Module-CoreList.metadata @@ -1 +1 @@ -ae1b4a58ace3a3474c26b166ec2b2c449f4180fa SOURCES/Module-CoreList-5.20210320.tar.gz +9526482a0dd01b54f8b1a58de7b1097221745e5a SOURCES/Module-CoreList-5.20240609.tar.gz diff --git a/SPECS/perl-Module-CoreList.spec b/SPECS/perl-Module-CoreList.spec index 97fc98e..7731a2b 100644 --- a/SPECS/perl-Module-CoreList.spec +++ b/SPECS/perl-Module-CoreList.spec @@ -1,8 +1,8 @@ Name: perl-Module-CoreList # Epoch to compete with perl.spec Epoch: 1 -Version: 5.20210320 -Release: 3%{?dist} +Version: 5.20240609 +Release: 1%{?dist} Summary: What modules are shipped with versions of perl License: GPL+ or Artistic URL: https://metacpan.org/release/Module-CoreList @@ -25,7 +25,6 @@ BuildRequires: perl(List::Util) BuildRequires: perl(version) >= 0.88 # Tests: BuildRequires: perl(Test::More) -Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(List::Util) Requires: perl(version) >= 0.88 @@ -64,28 +63,22 @@ with "%{_libexecdir}/%{name}/test". # Help file to recognise the Perl scripts and normalize shebangs for F in t/*.t; do - if head -1 "$F" | grep -q -e '^#!.*perl' ; then - perl -MConfig -pi -e 's|^#!.*perl\b|$Config{startperl}|' "$F" - else - perl -i -MConfig -ple 'print $Config{startperl} if $. == 1' "$F" - fi + perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F" chmod +x "$F" done -# Remove release tests -rm t/pod.t -perl -i -ne 'print $_ unless m{^t/pod\.t}' MANIFEST - %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 %{make_build} %install %{make_install} +%{_fixperms} %{buildroot}/* # Install tests mkdir -p %{buildroot}/%{_libexecdir}/%{name} cp -a t %{buildroot}/%{_libexecdir}/%{name} +rm -f %{buildroot}/%{_libexecdir}/%{name}/t/pod.t cat > %{buildroot}/%{_libexecdir}/%{name}/test << 'EOF' #!/bin/sh unset PERL_CORE @@ -93,8 +86,6 @@ cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" EOF chmod +x %{buildroot}/%{_libexecdir}/%{name}/test -%{_fixperms} $RPM_BUILD_ROOT/* - %check unset PERL_CORE export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') @@ -102,8 +93,8 @@ make test %files %doc Changes README -%{perl_vendorlib}/* -%{_mandir}/man3/* +%{perl_vendorlib}/Module +%{_mandir}/man3/Module::CoreList* %files tools %doc README @@ -114,6 +105,9 @@ make test %{_libexecdir}/%{name} %changelog +* Tue Nov 19 2024 Jitka Plesnikova - 1:5.20240609 +- Resolves: RHEL-5539 - 5.20240609 bump + * Mon Aug 09 2021 Mohan Boddu - 1:5.20210320-3 - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags Related: rhbz#1991688