|
|
|
@ -1,11 +1,8 @@
|
|
|
|
|
# Run optional test
|
|
|
|
|
%bcond_without perl_CGI_enables_optional_test
|
|
|
|
|
|
|
|
|
|
Name: perl-CGI
|
|
|
|
|
Summary: Handle Common Gateway Interface requests and responses
|
|
|
|
|
Version: 4.51
|
|
|
|
|
Version: 4.61
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
License: Artistic 2.0
|
|
|
|
|
License: Artistic-2.0
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/L/LE/LEEJO/CGI-%{version}.tar.gz
|
|
|
|
|
URL: https://metacpan.org/release/CGI
|
|
|
|
|
BuildArch: noarch
|
|
|
|
@ -40,15 +37,9 @@ BuildRequires: perl(IO::File)
|
|
|
|
|
BuildRequires: perl(IO::Handle)
|
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
|
BuildRequires: perl(POSIX)
|
|
|
|
|
BuildRequires: perl(Test::Deep) >= 0.11
|
|
|
|
|
BuildRequires: perl(Test::More) >= 0.98
|
|
|
|
|
BuildRequires: perl(Test::Warn) >= 0.3
|
|
|
|
|
BuildRequires: perl(utf8)
|
|
|
|
|
%if !%{defined perl_bootstrap} && %{with perl_CGI_enables_optional_test}
|
|
|
|
|
# Optional tests
|
|
|
|
|
BuildRequires: perl(Test::CPAN::Changes)
|
|
|
|
|
%endif
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
Requires: perl(File::Spec) >= 0.82
|
|
|
|
|
Requires: perl(File::Temp) >= 0.17
|
|
|
|
|
Requires: perl(HTML::Entities) >= 3.69
|
|
|
|
@ -67,7 +58,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
|
|
|
|
@ -82,7 +72,6 @@ with built-in support for mod_perl and mod_perl2 as well as FastCGI.
|
|
|
|
|
Summary: Tests for %{name}
|
|
|
|
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
Requires: perl-Test-Harness
|
|
|
|
|
Requires: perl(Test::CPAN::Changes)
|
|
|
|
|
|
|
|
|
|
%description tests
|
|
|
|
|
Tests from %{name}-%{version}. Execute them
|
|
|
|
@ -96,19 +85,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 +98,7 @@ 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
|
|
|
|
|
cat > %{buildroot}/%{_libexecdir}/%{name}/test << 'EOF'
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
|
|
|
@ -132,19 +113,89 @@ make test
|
|
|
|
|
%files
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc Changes README.md examples/
|
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
|
%{_mandir}/man3/*.3*
|
|
|
|
|
%{perl_vendorlib}/CGI*
|
|
|
|
|
%{perl_vendorlib}/Fh*
|
|
|
|
|
%{_mandir}/man3/CGI*.3*
|
|
|
|
|
|
|
|
|
|
%files tests
|
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 4.51-5
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 4.61-5
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 4.61-4
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 4.61-4
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.61-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.61-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 10 2024 Jitka Plesnikova <jplesnik@redhat.com> - 4.61-1
|
|
|
|
|
- 4.61 bump (rhbz#2257292)
|
|
|
|
|
|
|
|
|
|
* Fri Nov 10 2023 Jitka Plesnikova <jplesnik@redhat.com> - 4.60-2
|
|
|
|
|
- Remove unused dependency perl(Test::CPAN::Changes)
|
|
|
|
|
|
|
|
|
|
* Wed Nov 01 2023 Jitka Plesnikova <jplesnik@redhat.com> - 4.60-1
|
|
|
|
|
- 4.60 bump (rhbz#2247441)
|
|
|
|
|
|
|
|
|
|
* Tue Oct 03 2023 Jitka Plesnikova <jplesnik@redhat.com> - 4.59-1
|
|
|
|
|
- 4.59 bump (rhbz#2241705)
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.57-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu May 04 2023 Jitka Plesnikova <jplesnik@redhat.com> - 4.57-1
|
|
|
|
|
- 4.57 bump
|
|
|
|
|
|
|
|
|
|
* Fri Mar 03 2023 Jitka Plesnikova <jplesnik@redhat.com> - 4.56-1
|
|
|
|
|
- 4.56 bump
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.55-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 04 2023 Jitka Plesnikova <jplesnik@redhat.com> - 4.55-1
|
|
|
|
|
- 4.55 bump
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.54-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 03 2022 Jitka Plesnikova <jplesnik@redhat.com> - 4.54-3
|
|
|
|
|
- Perl 5.36 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 4.54-2
|
|
|
|
|
- Perl 5.36 rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Feb 07 2022 Jitka Plesnikova <jplesnik@redhat.com> - 4.54-1
|
|
|
|
|
- 4.54 bump
|
|
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.53-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.53-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 04 2021 Jitka Plesnikova <jplesnik@redhat.com> - 4.53-1
|
|
|
|
|
- 4.53 bump
|
|
|
|
|
|
|
|
|
|
* Mon May 24 2021 Jitka Plesnikova <jplesnik@redhat.com> - 4.52-4
|
|
|
|
|
- Perl 5.34 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Mon May 24 2021 Jitka Plesnikova <jplesnik@redhat.com> - 4.52-3
|
|
|
|
|
- Perl 5.34 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 4.52-2
|
|
|
|
|
- Perl 5.34 rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 4.51-4
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Tue May 04 2021 Jitka Plesnikova <jplesnik@redhat.com> - 4.52-1
|
|
|
|
|
- 4.52 bump
|
|
|
|
|
|
|
|
|
|
* Mon Mar 01 2021 Jitka Plesnikova <jplesnik@redhat.com> - 4.51-3
|
|
|
|
|
- Package tests
|
|
|
|
|