2007-01-15 23:31:21 +00:00
|
|
|
#
|
2011-11-17 15:42:34 +00:00
|
|
|
# spec file for package perl-Net-Server
|
2007-01-15 23:31:21 +00:00
|
|
|
#
|
2023-03-14 10:43:52 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2007-01-15 23:31:21 +00:00
|
|
|
#
|
2009-06-18 15:09:30 +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-03-23 15:19:36 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:31:21 +00:00
|
|
|
#
|
|
|
|
|
2009-06-18 15:09:30 +00:00
|
|
|
|
2021-03-23 15:19:36 +00:00
|
|
|
%define cpan_name Net-Server
|
2007-01-15 23:31:21 +00:00
|
|
|
Name: perl-Net-Server
|
2023-03-15 10:02:14 +00:00
|
|
|
Version: 2.014
|
2011-12-06 11:04:59 +00:00
|
|
|
Release: 0
|
2021-03-23 15:19:36 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2022-12-08 19:26:11 +00:00
|
|
|
Summary: Extensible Perl internet server
|
2021-03-23 15:19:36 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2017-08-14 13:15:18 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RH/RHANDOM/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:16:04 +02:00
|
|
|
Source100: README.md
|
2010-07-19 18:55:38 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
2011-12-06 11:04:59 +00:00
|
|
|
BuildRequires: perl-macros
|
|
|
|
%{perl_requires}
|
2007-01-15 23:31:21 +00:00
|
|
|
|
|
|
|
%description
|
2017-08-14 13:15:18 +00:00
|
|
|
'Net::Server' is an extensible, generic Perl server engine.
|
2011-12-06 11:04:59 +00:00
|
|
|
|
|
|
|
'Net::Server' attempts to be a generic server as in 'Net::Daemon' and
|
|
|
|
'NetServer::Generic'. It includes with it the ability to run as an inetd
|
|
|
|
process ('Net::Server::INET'), a single connection server ('Net::Server' or
|
|
|
|
'Net::Server::Single'), a forking server ('Net::Server::Fork'), a
|
|
|
|
preforking server which maintains a constant number of preforked children
|
|
|
|
('Net::Server::PreForkSimple'), or as a managed preforking server which
|
|
|
|
maintains the number of children based on server load
|
|
|
|
('Net::Server::PreFork'). In all but the inetd type, the server provides
|
|
|
|
the ability to connect to one or to multiple server ports.
|
2007-01-15 23:31:21 +00:00
|
|
|
|
2017-08-14 13:15:18 +00:00
|
|
|
The additional server types are made possible via "personalities" or sub
|
|
|
|
classes of the 'Net::Server'. By moving the multiple types of servers out
|
|
|
|
of the main 'Net::Server' class, the 'Net::Server' concept is easily
|
|
|
|
extended to other types (in the near future, we would like to add a
|
|
|
|
"Thread" personality).
|
2011-12-06 11:04:59 +00:00
|
|
|
|
|
|
|
'Net::Server' borrows several concepts from the Apache Webserver.
|
|
|
|
'Net::Server' uses "hooks" to allow custom servers such as SMTP, HTTP,
|
|
|
|
POP3, etc. to be layered over the base 'Net::Server' class. In addition the
|
|
|
|
'Net::Server::PreFork' class borrows concepts of min_start_servers,
|
|
|
|
max_servers, and min_waiting servers. 'Net::Server::PreFork' also uses the
|
|
|
|
concept of an flock serialized accept when accepting on multiple ports
|
|
|
|
(PreFork can choose between flock, IPC::Semaphore, and pipe to control
|
|
|
|
serialization).
|
2007-01-15 23:31:21 +00:00
|
|
|
|
|
|
|
%prep
|
2023-03-15 10:02:14 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{version}
|
2023-03-14 10:43:52 +00:00
|
|
|
|
2021-03-23 15:19:36 +00:00
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2007-01-15 23:31:21 +00:00
|
|
|
|
|
|
|
%build
|
2021-03-23 15:19:36 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%make_build
|
2010-07-19 13:04:40 +00:00
|
|
|
|
|
|
|
%check
|
2021-03-23 15:19:36 +00:00
|
|
|
make test
|
2007-01-15 23:31:21 +00:00
|
|
|
|
|
|
|
%install
|
2010-07-19 18:55:38 +00:00
|
|
|
%perl_make_install
|
2011-12-06 11:04:59 +00:00
|
|
|
%perl_process_packlist
|
2010-07-19 18:55:38 +00:00
|
|
|
%perl_gen_filelist
|
2007-01-15 23:31:21 +00:00
|
|
|
|
2010-07-19 18:55:38 +00:00
|
|
|
%files -f %{name}.files
|
2017-08-14 13:15:18 +00:00
|
|
|
%doc Changes examples README
|
|
|
|
%license LICENSE
|
2009-06-18 15:09:30 +00:00
|
|
|
|
2007-03-30 14:31:44 +00:00
|
|
|
%changelog
|