2009-12-26 23:12:37 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-HTTP-Server-Simple
|
|
|
|
#
|
2015-04-16 05:31:30 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-11-18 08:33:51 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2009-12-26 23:12:37 +00:00
|
|
|
|
2012-02-10 12:41:15 +00:00
|
|
|
|
2011-11-18 08:33:51 +00:00
|
|
|
Name: perl-HTTP-Server-Simple
|
2015-09-20 13:49:22 +00:00
|
|
|
Version: 0.51
|
2015-04-16 05:31:30 +00:00
|
|
|
Release: 0
|
|
|
|
%define cpan_name HTTP-Server-Simple
|
2011-11-18 08:33:51 +00:00
|
|
|
Summary: Lightweight HTTP server
|
2012-02-10 12:41:15 +00:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2011-11-18 08:33:51 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2015-04-16 05:31:30 +00:00
|
|
|
Url: http://search.cpan.org/dist/HTTP-Server-Simple/
|
2015-09-20 13:49:22 +00:00
|
|
|
Source0: http://www.cpan.org/authors/id/B/BP/BPS/%{cpan_name}-%{version}.tar.gz
|
2015-04-16 05:31:30 +00:00
|
|
|
Source1: cpanspec.yml
|
|
|
|
BuildArch: noarch
|
2011-11-18 08:33:51 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2015-04-16 05:31:30 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2015-08-27 14:21:53 +00:00
|
|
|
BuildRequires: perl(CGI)
|
2015-04-16 05:31:30 +00:00
|
|
|
BuildRequires: perl(Socket) >= 1.94
|
2015-09-20 13:49:22 +00:00
|
|
|
Requires: perl(CGI)
|
2015-04-16 05:31:30 +00:00
|
|
|
Requires: perl(Socket) >= 1.94
|
2010-12-03 14:38:09 +00:00
|
|
|
%{perl_requires}
|
2015-04-16 05:31:30 +00:00
|
|
|
# MANUAL BEGIN
|
|
|
|
BuildRequires: netcfg
|
|
|
|
# MANUAL END
|
2009-12-26 23:12:37 +00:00
|
|
|
|
|
|
|
%description
|
2015-04-16 05:31:30 +00:00
|
|
|
This is a simple standalone HTTP server. By default, it doesn't thread or
|
|
|
|
fork. It does, however, act as a simple frontend which can be used to build
|
|
|
|
a standalone web-based application or turn a CGI into one.
|
|
|
|
|
|
|
|
It is possible to use the Net::Server manpage classes to create forking,
|
|
|
|
pre-forking, and other types of more complicated servers; see the
|
|
|
|
/net_server manpage.
|
|
|
|
|
|
|
|
By default, the server traps a few signals:
|
2009-12-26 23:12:37 +00:00
|
|
|
|
2015-04-16 05:31:30 +00:00
|
|
|
* HUP
|
2009-12-26 23:12:37 +00:00
|
|
|
|
2015-04-16 05:31:30 +00:00
|
|
|
When you 'kill -HUP' the server, it lets the current request finish being
|
|
|
|
processed, then uses the 'restart' method to re-exec itself. Please note
|
|
|
|
that in order to provide restart-on-SIGHUP, HTTP::Server::Simple sets a
|
|
|
|
SIGHUP handler during initialisation. If your request handling code forks
|
|
|
|
you need to make sure you reset this or unexpected things will happen if
|
|
|
|
somebody sends a HUP to all running processes spawned by your app (e.g.
|
|
|
|
by "kill -HUP <script>")
|
2009-12-26 23:12:37 +00:00
|
|
|
|
2015-04-16 05:31:30 +00:00
|
|
|
* PIPE
|
|
|
|
|
|
|
|
If the server detects a broken pipe while writing output to the client,
|
|
|
|
it ignores the signal. Otherwise, a client closing the connection early
|
|
|
|
could kill the server.
|
2009-12-26 23:12:37 +00:00
|
|
|
|
|
|
|
%prep
|
2015-04-16 05:31:30 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2009-12-26 23:12:37 +00:00
|
|
|
|
|
|
|
%build
|
2015-04-16 05:31:30 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
2009-12-26 23:12:37 +00:00
|
|
|
|
|
|
|
%check
|
2015-04-16 05:31:30 +00:00
|
|
|
%{__make} test
|
2009-12-26 23:12:37 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
2015-04-16 05:31:30 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc Changes README
|
2009-12-26 23:12:37 +00:00
|
|
|
|
2011-11-18 08:33:51 +00:00
|
|
|
%changelog
|