Compare commits

..

No commits in common. "c8" and "c10s" have entirely different histories.
c8 ... c10s

8 changed files with 277 additions and 29 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

53
.gitignore vendored
View File

@ -1 +1,52 @@
SOURCES/CGI-4.38.tar.gz
/CGI.pm-3.50.tar.gz
/CGI.pm-3.51.tar.gz
/CGI.pm-3.60.tar.gz
/CGI.pm-3.61.tar.gz
/CGI.pm-3.62.tar.gz
/CGI.pm-3.63.tar.gz
/CGI.pm-3.64.tar.gz
/CGI.pm-3.65.tar.gz
/CGI.pm-4.00.tar.gz
/CGI.pm-4.01.tar.gz
/CGI.pm-4.02.tar.gz
/CGI.pm-4.03.tar.gz
/CGI-4.04.tar.gz
/CGI-4.13.tar.gz
/CGI-4.14.tar.gz
/CGI-4.15.tar.gz
/CGI-4.20.tar.gz
/CGI-4.21.tar.gz
/CGI-4.22.tar.gz
/CGI-4.24.tar.gz
/CGI-4.25.tar.gz
/CGI-4.26.tar.gz
/CGI-4.27.tar.gz
/CGI-4.28.tar.gz
/CGI-4.31.tar.gz
/CGI-4.32.tar.gz
/CGI-4.33.tar.gz
/CGI-4.35.tar.gz
/CGI-4.36.tar.gz
/CGI-4.37.tar.gz
/CGI-4.38.tar.gz
/CGI-4.39.tar.gz
/CGI-4.40.tar.gz
/CGI-4.42.tar.gz
/CGI-4.43.tar.gz
/CGI-4.44.tar.gz
/CGI-4.45.tar.gz
/CGI-4.46.tar.gz
/CGI-4.47.tar.gz
/CGI-4.48.tar.gz
/CGI-4.49.tar.gz
/CGI-4.50.tar.gz
/CGI-4.51.tar.gz
/CGI-4.52.tar.gz
/CGI-4.53.tar.gz
/CGI-4.54.tar.gz
/CGI-4.55.tar.gz
/CGI-4.56.tar.gz
/CGI-4.57.tar.gz
/CGI-4.59.tar.gz
/CGI-4.60.tar.gz
/CGI-4.61.tar.gz

View File

@ -1 +0,0 @@
89c7f4cccc3047154726399e3a261377c85d7d0d SOURCES/CGI-4.38.tar.gz

15
gating.yaml Normal file
View File

@ -0,0 +1,15 @@
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_stable
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
# RHEL
--- !Policy
product_versions:
- rhel-*
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -1,11 +1,10 @@
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.61
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 +12,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)
@ -43,18 +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}
# 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 +54,10 @@ 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,31 +68,207 @@ 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
%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
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
chmod +x "$F"
done
%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}
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)"
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
%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
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 4.61-5
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* 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
* 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
* 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

5
plans/sanity.fmf Normal file
View File

@ -0,0 +1,5 @@
summary: Sanity tests
discover:
how: fmf
execute:
how: tmt

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (CGI-4.61.tar.gz) = 748ccc8f89fb87d8ac126c376e9ba91dc277c8b117c8200efc0adc63ad92401b67616f055a77936f056a245c319e4e50fcb608ca77ec08ddd25364413d9d23ce

11
tests/upstream-tests.fmf Normal file
View File

@ -0,0 +1,11 @@
summary: Upstream tests
component: perl-CGI
require: perl-CGI-tests
test: /usr/libexec/perl-CGI/test
enabled: true
tag:
- rhel-buildroot
adjust:
- enabled: false
when: distro < rhel-10 or distro < centos-stream-10
continue: false