2011-01-18 16:17:48 +00:00
#
2014-04-23 04:56:56 +00:00
# spec file for package perl-FCGI-ProcManager
2011-01-18 16:17:48 +00:00
#
2024-07-21 20:09:30 +00:00
# Copyright (c) 2024 SUSE LLC
2011-01-18 16:17:48 +00:00
#
# 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.
2021-04-13 20:32:41 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2011-01-18 16:17:48 +00:00
#
2014-04-23 04:56:56 +00:00
2024-07-21 20:09:30 +00:00
%define cpan_name FCGI-ProcManager
2011-01-18 16:17:48 +00:00
Name : perl-FCGI-ProcManager
2024-07-21 20:09:30 +00:00
Version : 0.280.0
2014-04-23 04:56:56 +00:00
Release : 0
2024-07-21 20:09:30 +00:00
# 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
2021-04-13 20:32:41 +00:00
License : LGPL-2.1-or-later
2024-07-21 20:09:30 +00:00
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
2015-04-17 09:21:12 +00:00
Source1 : cpanspec.yml
2025-08-12 18:14:01 +02:00
Source100 : README.md
2015-04-17 09:21:12 +00:00
BuildArch : noarch
2011-01-18 16:17:48 +00:00
BuildRequires : perl
BuildRequires : perl-macros
2024-07-21 20:09:30 +00:00
Provides : perl(FCGI::ProcManager) = %{version}
Provides : perl(FCGI::ProcManager::Constrained)
%undefine __perllib_provides
2011-01-18 16:17:48 +00:00
%{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
2024-07-21 20:09:30 +00:00
%autosetup -n %{cpan_name} -%{cpan_version}
2011-01-18 16:17:48 +00:00
%build
2024-07-21 20:09:30 +00:00
perl Makefile.PL INSTALLDIRS=vendor
%make_build
2011-01-18 16:17:48 +00:00
%check
2024-07-21 20:09:30 +00:00
make test
2011-01-18 16:17:48 +00:00
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
2024-07-21 20:09:30 +00:00
%doc ChangeLog Makefile.old README TODO
2017-03-06 07:04:56 +00:00
%license COPYING
2011-01-18 16:17:48 +00:00
%changelog