2011-03-18 14:26:53 +01:00
|
|
|
#
|
2011-03-18 14:27:03 +01:00
|
|
|
# spec file for package perl-HTTP-Daemon
|
2011-03-18 14:26:53 +01:00
|
|
|
#
|
2022-02-15 16:13:36 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2011-03-18 14:26:53 +01: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.
|
|
|
|
|
2019-04-02 07:24:42 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-03-18 14:26:53 +01:00
|
|
|
#
|
|
|
|
|
2011-03-18 14:27:03 +01:00
|
|
|
|
2022-02-15 16:13:36 +01:00
|
|
|
%define cpan_name HTTP-Daemon
|
2011-03-18 14:26:53 +01:00
|
|
|
Name: perl-HTTP-Daemon
|
2022-02-15 16:13:36 +01:00
|
|
|
Version: 6.13
|
2012-03-01 17:23:26 +01:00
|
|
|
Release: 0
|
2019-04-02 07:25:46 +02:00
|
|
|
Summary: Simple http server class
|
2019-04-02 07:24:42 +02:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2020-05-27 10:33:49 +02:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2019-08-30 22:17:19 +02:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/O/OA/OALDERS/%{cpan_name}-%{version}.tar.gz
|
2019-04-02 07:25:46 +02:00
|
|
|
Source1: cpanspec.yml
|
2012-03-01 17:23:26 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2011-03-18 14:26:53 +01:00
|
|
|
BuildRequires: perl(HTTP::Date) >= 6
|
|
|
|
BuildRequires: perl(HTTP::Request) >= 6
|
|
|
|
BuildRequires: perl(HTTP::Response) >= 6
|
|
|
|
BuildRequires: perl(HTTP::Status) >= 6
|
2020-05-27 10:33:49 +02:00
|
|
|
BuildRequires: perl(HTTP::Tiny) >= 0.042
|
2022-02-15 16:13:36 +01:00
|
|
|
BuildRequires: perl(IO::Socket::IP) >= 0.32
|
2011-03-18 14:26:53 +01:00
|
|
|
BuildRequires: perl(LWP::MediaTypes) >= 6
|
2019-04-02 07:25:46 +02:00
|
|
|
BuildRequires: perl(Module::Build::Tiny) >= 0.034
|
|
|
|
BuildRequires: perl(Module::Metadata)
|
2020-05-27 10:33:49 +02:00
|
|
|
BuildRequires: perl(Test::More) >= 0.98
|
2019-04-02 07:25:46 +02:00
|
|
|
BuildRequires: perl(Test::Needs)
|
|
|
|
BuildRequires: perl(URI)
|
2011-03-18 14:26:53 +01:00
|
|
|
Requires: perl(HTTP::Date) >= 6
|
|
|
|
Requires: perl(HTTP::Request) >= 6
|
|
|
|
Requires: perl(HTTP::Response) >= 6
|
|
|
|
Requires: perl(HTTP::Status) >= 6
|
2022-02-15 16:13:36 +01:00
|
|
|
Requires: perl(IO::Socket::IP) >= 0.32
|
2011-03-18 14:26:53 +01:00
|
|
|
Requires: perl(LWP::MediaTypes) >= 6
|
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Instances of the 'HTTP::Daemon' class are HTTP/1.1 servers that listen on a
|
|
|
|
socket for incoming requests. The 'HTTP::Daemon' is a subclass of
|
2019-07-28 17:09:22 +02:00
|
|
|
'IO::Socket::IP', so you can perform socket operations directly on it too.
|
2011-03-18 14:26:53 +01:00
|
|
|
|
2020-05-27 10:33:49 +02:00
|
|
|
Please note that 'HTTP::Daemon' used to be a subclass of
|
|
|
|
'IO::Socket::INET'. To support IPv6, it switched the parent class to
|
|
|
|
'IO::Socket::IP' at version 6.05. See IPv6 SUPPORT for details.
|
|
|
|
|
2012-03-01 17:23:26 +01:00
|
|
|
The accept() method will return when a connection from a client is
|
|
|
|
available. The returned value will be an 'HTTP::Daemon::ClientConn' object
|
2019-07-28 17:09:22 +02:00
|
|
|
which is another 'IO::Socket::IP' subclass. Calling the get_request()
|
2012-03-01 17:23:26 +01:00
|
|
|
method on this object will read data from the client and return an
|
|
|
|
'HTTP::Request' object. The ClientConn object also provide methods to send
|
|
|
|
back various responses.
|
2011-03-18 14:26:53 +01:00
|
|
|
|
|
|
|
%prep
|
2022-02-15 16:13:36 +01:00
|
|
|
%autosetup -n %{cpan_name}-%{version}
|
2020-05-27 10:33:49 +02:00
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2011-03-18 14:26:53 +01:00
|
|
|
|
|
|
|
%build
|
2019-04-02 07:25:46 +02:00
|
|
|
perl Build.PL --installdirs=vendor
|
|
|
|
./Build build --flags=%{?_smp_mflags}
|
2011-03-18 14:26:53 +01:00
|
|
|
|
|
|
|
%check
|
2019-04-02 07:25:46 +02:00
|
|
|
./Build test
|
2011-03-18 14:26:53 +01:00
|
|
|
|
|
|
|
%install
|
2019-04-02 07:25:46 +02:00
|
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
2011-03-18 14:26:53 +01:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2019-04-03 09:37:46 +02:00
|
|
|
%doc Changes CONTRIBUTING README
|
|
|
|
%license LICENCE
|
2011-03-18 14:26:53 +01:00
|
|
|
|
|
|
|
%changelog
|