|
|
|
@ -1,24 +1,45 @@
|
|
|
|
|
# Perform functional tests using FCGI::Client.
|
|
|
|
|
# RHEL does not include FCGI::Client due to its dependencies.
|
|
|
|
|
%bcond perl_FCGI_enables_client_tests %{undefined rhel}
|
|
|
|
|
|
|
|
|
|
Name: perl-FCGI
|
|
|
|
|
Summary: FastCGI Perl bindings
|
|
|
|
|
# needed to properly replace/obsolete fcgi-perl
|
|
|
|
|
Epoch: 1
|
|
|
|
|
Version: 0.79
|
|
|
|
|
Release: 8%{?dist}
|
|
|
|
|
# same as fcgi
|
|
|
|
|
Version: 0.82
|
|
|
|
|
Release: 12%{?dist}
|
|
|
|
|
# eg/echo.pl: "See the LICENSE file"
|
|
|
|
|
# fastcgi.h: "See the LICENSE file"
|
|
|
|
|
# FCGI.pm: "See the LICENSE file"
|
|
|
|
|
# fcgiapp.c: "See the LICENSE file"
|
|
|
|
|
# fcgiapp.h: "See the LICENSE file"
|
|
|
|
|
# fcgimisc.h: "See the LICENSE file
|
|
|
|
|
# fcgios.h: "See the LICENSE file"
|
|
|
|
|
# LICENSE: OML
|
|
|
|
|
# os_unix.c: "See the LICENSE file"
|
|
|
|
|
# README: "See the LICENSE file"
|
|
|
|
|
## Used at build time, but nonpackaged
|
|
|
|
|
# configure: FSFUL
|
|
|
|
|
## Unused and nonpackaged
|
|
|
|
|
# os_win32.c: "See the LICENSE file"
|
|
|
|
|
License: OML
|
|
|
|
|
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/FCGI-%{version}.tar.gz
|
|
|
|
|
# Fix CVE-2012-6687 in the bundled fcgi library, bug #1190294, CPAN RT#118405,
|
|
|
|
|
# patch copied from Debian's libfcgi-perl.
|
|
|
|
|
Patch0: FCGI-0.78-CVE-2012-6687.patch
|
|
|
|
|
URL: https://metacpan.org/release/FCGI
|
|
|
|
|
# bash for sh executed from Makefile.PL
|
|
|
|
|
BuildRequires: bash
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
|
BuildRequires: findutils
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
# grep executed by configure
|
|
|
|
|
BuildRequires: grep
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl(:VERSION) >= 5.6
|
|
|
|
|
BuildRequires: perl(Config)
|
|
|
|
|
BuildRequires: perl(Cwd)
|
|
|
|
|
# ExtUtils::Liblist not used
|
|
|
|
@ -27,13 +48,21 @@ BuildRequires: perl(File::Copy)
|
|
|
|
|
# File::Spec not used on Linux
|
|
|
|
|
BuildRequires: perl(Getopt::Long)
|
|
|
|
|
BuildRequires: perl(IO::File)
|
|
|
|
|
# sed executed by configure
|
|
|
|
|
BuildRequires: sed
|
|
|
|
|
# Run-time:
|
|
|
|
|
# Carp not used at tests
|
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
|
BuildRequires: perl(XSLoader)
|
|
|
|
|
# Tests:
|
|
|
|
|
BuildRequires: perl(Test)
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
%if %{with perl_FCGI_enables_client_tests}
|
|
|
|
|
BuildRequires: perl(FCGI::Client)
|
|
|
|
|
BuildRequires: perl(File::Temp)
|
|
|
|
|
BuildRequires: perl(IO::Socket)
|
|
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
%endif
|
|
|
|
|
Requires: perl(Carp)
|
|
|
|
|
Requires: perl(XSLoader)
|
|
|
|
|
# fcgiapp.c, os_unix.c, os_win32.c are copied and modified from FastCGI
|
|
|
|
@ -45,10 +74,28 @@ Provides: bundled(fcgi)
|
|
|
|
|
%description
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
%package tests
|
|
|
|
|
Summary: Tests for %{name}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
Requires: perl-Test-Harness
|
|
|
|
|
|
|
|
|
|
%description tests
|
|
|
|
|
Tests from %{name}. Execute them
|
|
|
|
|
with "%{_libexecdir}/%{name}/test".
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n FCGI-%{version}
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
%autosetup -p1 -n FCGI-%{version}
|
|
|
|
|
find . -type f -exec chmod -c -x {} +
|
|
|
|
|
%if %{without perl_FCGI_enables_client_tests}
|
|
|
|
|
rm -f t/02-unix_domain_socket.t
|
|
|
|
|
perl -i -ne 'print $_ unless m{^t/02-unix_domain_socket\.t}' MANIFEST
|
|
|
|
|
%endif
|
|
|
|
|
# Help generators to recognize Perl scripts
|
|
|
|
|
for F in t/*.t; do
|
|
|
|
|
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F"
|
|
|
|
|
chmod +x "$F"
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1 \
|
|
|
|
@ -58,24 +105,76 @@ perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1 \
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
|
|
%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 ChangeLog README
|
|
|
|
|
%{perl_vendorarch}/*
|
|
|
|
|
%exclude %dir %{perl_vendorarch}/auto
|
|
|
|
|
%{_mandir}/man3/*.3*
|
|
|
|
|
%doc ChangeLog eg README
|
|
|
|
|
%{perl_vendorarch}/auto/FCGI
|
|
|
|
|
%{perl_vendorarch}/FCGI.pm
|
|
|
|
|
%{_mandir}/man3/FCGI.3*
|
|
|
|
|
|
|
|
|
|
%files tests
|
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1:0.79-8
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Thu Aug 08 2024 Troy Dawson <tdawson@redhat.com> - 1:0.82-12
|
|
|
|
|
- Bump release for Aug 2024 java mass rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1:0.82-11
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.82-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.82-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.82-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.82-7
|
|
|
|
|
- Perl 5.38 rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 12 2023 Petr Pisar <ppisar@redhat.com> - 1:0.82-6
|
|
|
|
|
- Specify all dependencies
|
|
|
|
|
- Package examples
|
|
|
|
|
- Package the tests
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.82-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.82-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jun 01 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.82-3
|
|
|
|
|
- Perl 5.36 rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.82-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Aug 01 2021 Emmanuel Seyman <emmanuel@seyman.fr> - 1:0.82-1
|
|
|
|
|
- Update to 0.82
|
|
|
|
|
|
|
|
|
|
* Sun Jul 25 2021 Emmanuel Seyman <emmanuel@seyman.fr> - 1:0.80-1
|
|
|
|
|
- Update to 0.80
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.79-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1:0.79-7
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.79-7
|
|
|
|
|
- Perl 5.34 rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.79-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|