From 59c740ffb9f16647cd60c54c732ded964566932d Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Wed, 21 Apr 2021 11:57:26 +0200 Subject: [PATCH] 5.20210420 bump --- .gitignore | 1 + perl-Module-CoreList.spec | 19 +++++++------------ sources | 2 +- 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index c076c65..2eb8b06 100644 --- a/.gitignore +++ b/.gitignore @@ -95,3 +95,4 @@ Module-CoreList-2.13.tar.gz /Module-CoreList-5.20210123.tar.gz /Module-CoreList-5.20210220.tar.gz /Module-CoreList-5.20210320.tar.gz +/Module-CoreList-5.20210420.tar.gz diff --git a/perl-Module-CoreList.spec b/perl-Module-CoreList.spec index 075f8fb..0d2e9c8 100644 --- a/perl-Module-CoreList.spec +++ b/perl-Module-CoreList.spec @@ -1,7 +1,7 @@ Name: perl-Module-CoreList # Epoch to compete with perl.spec Epoch: 1 -Version: 5.20210320 +Version: 5.20210420 Release: 1%{?dist} Summary: What modules are shipped with versions of perl License: GPL+ or Artistic @@ -64,28 +64,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} $RPM_BUILD_ROOT/* # 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 +87,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}') @@ -114,6 +106,9 @@ make test %{_libexecdir}/%{name} %changelog +* Wed Apr 21 2021 Jitka Plesnikova - 1:5.20210420-1 +- 5.20210420 bump + * Sun Mar 21 2021 Jitka Plesnikova - 1:5.20210320-1 - 5.20210320 bump diff --git a/sources b/sources index 71a40b8..a2a6f62 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (Module-CoreList-5.20210320.tar.gz) = 62b4d10b0f75a360eb71c4f8b220998569e48df06bb503306f00c22afc6e0116c089660392938270daaf7260258a377bd719c8fee372101c8de09e4989f51260 +SHA512 (Module-CoreList-5.20210420.tar.gz) = efd97eab322ffa09362bf723fcab9da6bb05edba8b60e43c342d1bc9b8c5e797682dd886faf55b3c978a1b1bc8b488e83644825d7229551f26cd9594f0de949a