Files
perl-FCGI-ProcManager/perl-FCGI-ProcManager.spec
2025-08-12 18:14:01 +02:00

80 lines
3.5 KiB
RPMSpec

#
# spec file for package perl-FCGI-ProcManager
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name FCGI-ProcManager
Name: perl-FCGI-ProcManager
Version: 0.280.0
Release: 0
# 0.28 -> normalize -> 0.280.0
%define cpan_version 0.28
#Upstream: FCGI-ProcManager - A Perl FCGI Process Manager This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. BECAUSE THIS LIBRARY IS LICENSED FREE OF CHARGE, THIS LIBRARY IS BEING PROVIDED "AS IS WITH ALL FAULTS," WITHOUT ANY WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF TITLE, NONINFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, AND THE ENTIRE RISK AS TO SATISFACTORY QUALITY, PERFORMANCE, ACCURACY, AND EFFORT IS WITH THE YOU. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
License: LGPL-2.1-or-later
Summary: Perl-based FastCGI process manager
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/A/AR/ARODLAND/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
Provides: perl(FCGI::ProcManager) = %{version}
Provides: perl(FCGI::ProcManager::Constrained)
%undefine __perllib_provides
%{perl_requires}
%description
FCGI::ProcManager is used to serve as a FastCGI process manager. By
re-implementing it in perl, developers can more finely tune performance in
their web applications, and can take advantage of copy-on-write semantics
prevalent in UNIX kernel process management. The process manager should be
invoked before the caller''s request loop
The primary routine, 'pm_manage', enters a loop in which it maintains a
number of FastCGI servers (via fork(2)), and which reaps those servers when
they die (via wait(2)).
'pm_manage' provides too hooks:
C<managing_init> - called just before the manager enters the manager loop.
C<handling_init> - called just before a server is returns from C<pm_manage>
It is necessary for the caller, when implementing its request loop, to
insert a call to 'pm_pre_dispatch' at the top of the loop, and then
7'pm_post_dispatch' at the end of the loop.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc ChangeLog Makefile.old README TODO
%license COPYING
%changelog