diff --git a/perl-Plack.spec b/perl-Plack.spec index 8869e00..b74f5ac 100644 --- a/perl-Plack.spec +++ b/perl-Plack.spec @@ -7,6 +7,9 @@ # Use Devel::StackTrace::WithLexicals for catching exceptions. %bcond_without perl_Plack_enables_Devel_StackTrace_WithLexicals +# Build with FCGI support +%bcond_without perl_Plack_enables_fcgi + # Use XS HTTP parser. This can be disabled with PLACK_HTTP_PARSER_PP=1 # environment variable at run time. %bcond_without perl_Plack_enables_HTTP_Parser_XS @@ -77,8 +80,10 @@ BuildRequires: perl(Devel::StackTrace::WithLexicals) >= 0.8 BuildRequires: perl(Digest::MD5) BuildRequires: perl(DirHandle) BuildRequires: perl(Exporter) +%if %{with perl_Plack_enables_fcgi} # FCGI not used at tests # FCGI::ProcManager not used at tests +%endif BuildRequires: perl(File::Basename) BuildRequires: perl(File::ShareDir) >= 1.00 BuildRequires: perl(File::Spec) @@ -113,7 +118,9 @@ BuildRequires: perl(parent) BuildRequires: perl(Pod::Usage) >= 1.36 BuildRequires: perl(POSIX) BuildRequires: perl(Scalar::Util) +%if %{with perl_Plack_enables_fcgi} # Server::Starter not used at tests +%endif BuildRequires: perl(Socket) BuildRequires: perl(Storable) BuildRequires: perl(Stream::Buffered) >= 0.02 @@ -138,7 +145,9 @@ BuildRequires: perl(HTTP::Cookies) BuildRequires: perl(HTTP::Request::AsCGI) >= 1.2 BuildRequires: perl(IO::File) BuildRequires: perl(IO::Handle::Util) +%if %{with perl_Plack_enables_fcgi} BuildRequires: perl(IO::Socket) +%endif BuildRequires: perl(Log::Dispatch) >= 2.25 BuildRequires: perl(Log::Dispatch::Array) >= 1.001 BuildRequires: perl(LWP::Protocol::http10) @@ -160,9 +169,11 @@ BuildRequires: /usr/sbin/httpd # For t/Plack-Middleware/cgibin_exec.t BuildRequires: /usr/bin/python -# For lighttpd tests -BuildRequires: /usr/sbin/lighttpd -BuildRequires: lighttpd-fastcgi +%if %{with perl_Plack_enables_fcgi} +# For lighttpd tests, not used, RELEASE_TESTING only +# /usr/sbin/lighttpd +# lighttpd-fastcgi +%endif Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(Apache::LogFormat::Compiler) >= 0.33 @@ -174,8 +185,6 @@ Requires: perl(Devel::StackTrace::AsHTML) >= 0.11 %if %{with perl_Plack_enables_Devel_StackTrace_WithLexicals} Suggests: perl(Devel::StackTrace::WithLexicals) >= 0.8 %endif -# FCGI handler needs FCGI::ProcManager by default -Requires: perl(FCGI::ProcManager) Requires: perl(File::Basename) Requires: perl(Filesys::Notify::Simple) Requires: perl(Getopt::Long) @@ -197,8 +206,6 @@ Recommends: perl(IO::Socket::IP) Requires: perl(lib) Requires: perl(Log::Log4perl) Requires: perl(Pod::Usage) >= 1.36 -# Server::Starter is used only of Plack is executed from Server::Starter. No -# need for declaring the dependency. Requires: perl(Stream::Buffered) >= 0.02 Requires: perl(URI) >= 1.59 Requires: perl(WWW::Form::UrlEncoded) >= 0.23 @@ -232,6 +239,21 @@ Requires: perl(URI) >= 1.59 %{summary}. %endif +%if %{with perl_Plack_enables_fcgi} +%package Handler-FCGI +Summary: Plack handler for FastCGI +Requires: perl-Plack = %{version}-%{release} +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +# FCGI handler needs FCGI::ProcManager by default +Requires: perl(FCGI::ProcManager) +# Server::Starter is used only of Plack is executed from Server::Starter. No +# need for declaring the dependency. +Requires: perl(URI) >= 1.59 + +%description Handler-FCGI +%{summary}. +%endif + %package Test Summary: Test-modules for perl-Plack Requires: perl-Plack = %{version}-%{release} @@ -280,6 +302,9 @@ export TEST_APACHE2=0 # Packaged separately in perl-Plack-Handler-Apache2 %exclude %{perl_vendorlib}/Plack/Handler/Apache2* %exclude %{_mandir}/man3/Plack::Handler::Apache2* +# Packaged separately in perl-Plack-Handler-FCGI +%exclude %{perl_vendorlib}/Plack/Handler/FCGI.pm +%exclude %{_mandir}/man3/Plack::Handler::FCGI.3pm* # Packaged separately in perl-Plack-Test %exclude %{perl_vendorlib}/Plack/Test %exclude %{perl_vendorlib}/Plack/Test.pm @@ -300,6 +325,12 @@ export TEST_APACHE2=0 %{_mandir}/man3/Plack::Handler::Apache2* %endif +%if %{with perl_Plack_enables_fcgi} +%files Handler-FCGI +%{perl_vendorlib}/Plack/Handler/FCGI.pm +%{_mandir}/man3/Plack::Handler::FCGI.3pm* +%endif + %files Test %{_mandir}/man3/Plack::Test* %dir %{perl_vendorlib}/Plack @@ -312,6 +343,7 @@ export TEST_APACHE2=0 * Thu May 06 2021 Petr Pisar , Jitka Plesnikova - 1.0048-3 - Specify all dependencies - Move Apache httpd 2 mod_perl handler to perl-Plack-Handler-Apache2 +- Move FCGI handler to perl-Plack-Handler-FCGI * Wed Jan 27 2021 Fedora Release Engineering - 1.0048-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild