diff --git a/.gitignore b/.gitignore index 46ee382..987f6a3 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,4 @@ /CGI-4.50.tar.gz /CGI-4.51.tar.gz /CGI-4.52.tar.gz +/CGI-4.53.tar.gz diff --git a/perl-CGI.spec b/perl-CGI.spec index 2bd767b..f22f36f 100644 --- a/perl-CGI.spec +++ b/perl-CGI.spec @@ -3,8 +3,8 @@ Name: perl-CGI Summary: Handle Common Gateway Interface requests and responses -Version: 4.52 -Release: 4%{?dist} +Version: 4.53 +Release: 1%{?dist} License: Artistic 2.0 Source0: https://cpan.metacpan.org/authors/id/L/LE/LEEJO/CGI-%{version}.tar.gz URL: https://metacpan.org/release/CGI @@ -67,7 +67,6 @@ Requires: perl(Text::ParseWords) %global __requires_exclude %{__requires_exclude}|^perl\\(Apache)\s*$ %global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir} - %description CGI.pm is a stable, complete and mature solution for processing and preparing HTTP requests and responses. Major features including processing form @@ -96,19 +95,10 @@ chmod -c -x examples/* # Help file to recognise the Perl scripts for F in `find t -name *.t`; do - if grep -q "^#!.*perl" "$F" ; 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/compiles_pod.t t/changes.t -perl -i -ne 'print $_ unless m{^t/compiles_pod\.t}' MANIFEST -perl -i -ne 'print $_ unless m{^t/changes\.t}' MANIFEST - %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 %{make_build} @@ -118,6 +108,8 @@ perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 # Install tests mkdir -p %{buildroot}/%{_libexecdir}/%{name} cp -a t %{buildroot}/%{_libexecdir}/%{name} +rm %{buildroot}/%{_libexecdir}/%{name}/t/compiles_pod.t +rm %{buildroot}/%{_libexecdir}/%{name}/t/changes.t cat > %{buildroot}/%{_libexecdir}/%{name}/test << 'EOF' #!/bin/sh cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" @@ -139,6 +131,9 @@ make test %{_libexecdir}/%{name} %changelog +* Fri Jun 04 2021 Jitka Plesnikova - 4.53-1 +- 4.53 bump + * Mon May 24 2021 Jitka Plesnikova - 4.52-4 - Perl 5.34 re-rebuild of bootstrapped packages diff --git a/sources b/sources index 866fcfb..366af1a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (CGI-4.52.tar.gz) = 370686da092e078ae67a3a960604bacf8dd726746a3fb30c4041e686fb6cea095fc68e0c972619c1eabbdfa83d3f817e17227efa924e9af04b85c4cdde3ed6b9 +SHA512 (CGI-4.53.tar.gz) = 8b037d4c3240dd87ab888245b604efb43d25e155e3e7e4068b373ef73d7dc2d6361d83819733f62a5c138003290d5195ec8cfaa1a5e8ca6356e6e9aa52813567