Specify all dependencies

This commit is contained in:
Petr Písař 2023-06-12 13:30:48 +02:00
parent 9b1e0a6c06
commit 05e3064dea

View File

@ -7,22 +7,39 @@ Summary: FastCGI Perl bindings
# needed to properly replace/obsolete fcgi-perl
Epoch: 1
Version: 0.82
Release: 5%{?dist}
# same as fcgi
Release: 6%{?dist}
# 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
# eg/echo.pl: "See the LICENSE file"
# 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
@ -31,6 +48,8 @@ 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)
@ -39,7 +58,10 @@ BuildRequires: perl(XSLoader)
BuildRequires: perl(Test)
%if %{with perl_FCGI_enables_client_tests}
BuildRequires: perl(FCGI::Client)
BuildRequires: perl(Test::More)
BuildRequires: perl(File::Temp)
BuildRequires: perl(IO::Socket)
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(warnings)
%endif
Requires: perl(Carp)
Requires: perl(XSLoader)
@ -53,8 +75,7 @@ Provides: bundled(fcgi)
%{summary}.
%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
@ -71,16 +92,20 @@ perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1 \
%{_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 ChangeLog README
%{perl_vendorarch}/*
%exclude %dir %{perl_vendorarch}/auto
%{_mandir}/man3/*.3*
%{perl_vendorarch}/auto/FCGI
%{perl_vendorarch}/FCGI.pm
%{_mandir}/man3/FCGI.3*
%changelog
* Mon Jun 12 2023 Petr Pisar <ppisar@redhat.com> - 1:0.82-6
- Specify all dependencies
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.82-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild