Compare commits
No commits in common. "c8" and "c9-beta" have entirely different histories.
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
SOURCES/CGI-4.38.tar.gz
|
||||
SOURCES/CGI-4.51.tar.gz
|
||||
|
||||
@ -1 +1 @@
|
||||
89c7f4cccc3047154726399e3a261377c85d7d0d SOURCES/CGI-4.38.tar.gz
|
||||
309f5566e8c3cbe72171496bdd71f98a8797fd81 SOURCES/CGI-4.51.tar.gz
|
||||
|
||||
@ -1,11 +1,13 @@
|
||||
# Run optional test
|
||||
%bcond_without perl_CGI_enables_optional_test
|
||||
|
||||
Name: perl-CGI
|
||||
Summary: Handle Common Gateway Interface requests and responses
|
||||
Version: 4.38
|
||||
Release: 2%{?dist}
|
||||
License: (GPL+ or Artistic) and Artistic 2.0
|
||||
Group: Development/Libraries
|
||||
Source0: http://search.cpan.org/CPAN/authors/id/L/LE/LEEJO/CGI-%{version}.tar.gz
|
||||
URL: http://search.cpan.org/dist/CGI
|
||||
Version: 4.51
|
||||
Release: 5%{?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
|
||||
BuildArch: noarch
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: findutils
|
||||
@ -13,19 +15,14 @@ BuildRequires: glibc-common
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||
# Run-requires:
|
||||
BuildRequires: perl(base)
|
||||
BuildRequires: perl(Carp)
|
||||
# Config not needed on Linux
|
||||
%if 0%{?fedora} >= 22
|
||||
BuildRequires: perl(deprecate)
|
||||
%endif
|
||||
BuildRequires: perl(Exporter)
|
||||
BuildRequires: perl(File::Spec) >= 0.82
|
||||
BuildRequires: perl(File::Temp) >= 0.17
|
||||
BuildRequires: perl(HTML::Entities) >= 3.69
|
||||
BuildRequires: perl(if)
|
||||
BuildRequires: perl(overload)
|
||||
BuildRequires: perl(parent)
|
||||
BuildRequires: perl(strict)
|
||||
@ -47,14 +44,11 @@ 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}
|
||||
%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))
|
||||
%if 0%{?fedora} >= 22
|
||||
Requires: perl(deprecate)
|
||||
%endif
|
||||
Requires: perl(File::Spec) >= 0.82
|
||||
Requires: perl(File::Temp) >= 0.17
|
||||
Requires: perl(HTML::Entities) >= 3.69
|
||||
@ -69,6 +63,11 @@ Requires: perl(Text::ParseWords)
|
||||
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(MultipartBuffer\\)$
|
||||
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Fh\\)
|
||||
|
||||
# Filter modules bundled for tests
|
||||
%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
|
||||
@ -79,22 +78,55 @@ HTML generation utilities are included as well.
|
||||
CGI.pm performs very well in in a vanilla CGI.pm environment and also comes
|
||||
with built-in support for mod_perl and mod_perl2 as well as FastCGI.
|
||||
|
||||
%package tests
|
||||
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
|
||||
with "%{_libexecdir}/%{name}/test".
|
||||
|
||||
%prep
|
||||
%setup -q -n CGI-%{version}
|
||||
iconv -f iso8859-1 -t utf-8 < Changes > Changes.1
|
||||
mv Changes.1 Changes
|
||||
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
|
||||
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
|
||||
make %{?_smp_mflags}
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
||||
%{make_build}
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
find %{buildroot} -type f -name .packlist -delete
|
||||
%{make_install}
|
||||
# Install tests
|
||||
mkdir -p %{buildroot}/%{_libexecdir}/%{name}
|
||||
cp -a t %{buildroot}/%{_libexecdir}/%{name}
|
||||
cat > %{buildroot}/%{_libexecdir}/%{name}/test << 'EOF'
|
||||
#!/bin/sh
|
||||
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
||||
EOF
|
||||
chmod +x %{buildroot}/%{_libexecdir}/%{name}/test
|
||||
%{_fixperms} %{buildroot}/*
|
||||
|
||||
%check
|
||||
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
|
||||
make test
|
||||
|
||||
%files
|
||||
@ -103,7 +135,92 @@ make test
|
||||
%{perl_vendorlib}/*
|
||||
%{_mandir}/man3/*.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
|
||||
|
||||
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 4.51-4
|
||||
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||
|
||||
* Mon Mar 01 2021 Jitka Plesnikova <jplesnik@redhat.com> - 4.51-3
|
||||
- Package tests
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.51-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Tue Oct 06 2020 Jitka Plesnikova <jplesnik@redhat.com> - 4.51-1
|
||||
- 4.51 bump
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.50-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 4.50-3
|
||||
- Perl 5.32 re-rebuild of bootstrapped packages
|
||||
|
||||
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 4.50-2
|
||||
- Perl 5.32 rebuild
|
||||
|
||||
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 4.50-1
|
||||
- 4.50 bump
|
||||
|
||||
* Mon Jun 08 2020 Jitka Plesnikova <jplesnik@redhat.com> - 4.49-1
|
||||
- 4.49 bump
|
||||
|
||||
* Tue Jun 02 2020 Jitka Plesnikova <jplesnik@redhat.com> - 4.48-1
|
||||
- 4.48 bump
|
||||
|
||||
* Mon May 04 2020 Jitka Plesnikova <jplesnik@redhat.com> - 4.47-1
|
||||
- 4.47 bump
|
||||
|
||||
* Tue Feb 04 2020 Jitka Plesnikova <jplesnik@redhat.com> - 4.46-1
|
||||
- 4.46 bump
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.45-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Mon Jan 13 2020 Jitka Plesnikova <jplesnik@redhat.com> - 4.45-1
|
||||
- 4.45 bump
|
||||
|
||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.44-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Wed Jun 05 2019 Jitka Plesnikova <jplesnik@redhat.com> - 4.44-1
|
||||
- 4.44 bump
|
||||
|
||||
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 4.43-3
|
||||
- Perl 5.30 re-rebuild of bootstrapped packages
|
||||
|
||||
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 4.43-2
|
||||
- Perl 5.30 rebuild
|
||||
|
||||
* Thu May 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 4.43-1
|
||||
- 4.43 bump
|
||||
|
||||
* Wed Mar 27 2019 Jitka Plesnikova <jplesnik@redhat.com> - 4.42-1
|
||||
- 4.42 bump
|
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.40-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Mon Aug 20 2018 Jitka Plesnikova <jplesnik@redhat.com> - 4.40-1
|
||||
- 4.40 bump
|
||||
|
||||
* Tue Aug 14 2018 Jitka Plesnikova <jplesnik@redhat.com> - 4.39-1
|
||||
- 4.39 bump
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.38-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Sat Jun 30 2018 Jitka Plesnikova <jplesnik@redhat.com> - 4.38-4
|
||||
- Perl 5.28 re-rebuild of bootstrapped packages
|
||||
|
||||
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 4.38-3
|
||||
- Perl 5.28 rebuild
|
||||
|
||||
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.38-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user