forked from pool/perl-HTTP-Daemon
Accepting request 105997 from devel:languages:perl
- updated to 6.01 If you bind localhost, don't trust gethostbyaddr() to resolve the address. [RT#67247] Restore perl-5.8.1 compatiblity. OBS-URL: https://build.opensuse.org/request/show/105997 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-HTTP-Daemon?expand=0&rev=5
This commit is contained in:
committed by
Git OBS Bridge
parent
a6f1b0f2c1
commit
9f364548b5
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4801d349c52813a1e49d6b31962f45705bae76fb907279e75933596c04e0de89
|
||||
size 18512
|
3
HTTP-Daemon-6.01.tar.gz
Normal file
3
HTTP-Daemon-6.01.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:43fd867742701a3f9fcc7bd59838ab72c6490c0ebaf66901068ec6997514adc2
|
||||
size 18628
|
@@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 20 10:48:36 UTC 2012 - coolo@suse.com
|
||||
|
||||
- updated to 6.01
|
||||
If you bind localhost, don't trust gethostbyaddr() to resolve the
|
||||
address. [RT#67247]
|
||||
Restore perl-5.8.1 compatiblity.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 14 10:13:32 UTC 2011 - vcizek@novell.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-HTTP-Daemon
|
||||
#
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,33 +16,33 @@
|
||||
#
|
||||
|
||||
|
||||
|
||||
Name: perl-HTTP-Daemon
|
||||
Version: 6.00
|
||||
Release: 1
|
||||
License: GPL-1.0+ or Artistic-1.0
|
||||
Version: 6.01
|
||||
Release: 0
|
||||
%define cpan_name HTTP-Daemon
|
||||
Summary: a simple http server class
|
||||
Url: http://search.cpan.org/dist/HTTP-Daemon/
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
#Source: http://www.cpan.org/authors/id/G/GA/GAAS/HTTP-Daemon-%{version}.tar.gz
|
||||
Source: %{cpan_name}-%{version}.tar.gz
|
||||
Url: http://search.cpan.org/dist/HTTP-Daemon/
|
||||
Source: http://www.cpan.org/authors/id/G/GA/GAAS/%{cpan_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(HTTP::Date) >= 6
|
||||
BuildRequires: perl(HTTP::Request) >= 6
|
||||
BuildRequires: perl(HTTP::Response) >= 6
|
||||
BuildRequires: perl(HTTP::Status) >= 6
|
||||
BuildRequires: perl(IO::Socket)
|
||||
BuildRequires: perl(LWP::MediaTypes) >= 6
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
#BuildRequires: perl(HTTP::Daemon)
|
||||
#BuildRequires: perl(LWP::RobotUA)
|
||||
#BuildRequires: perl(LWP::UserAgent)
|
||||
#BuildRequires: perl(URI)
|
||||
Requires: perl(HTTP::Date) >= 6
|
||||
Requires: perl(HTTP::Request) >= 6
|
||||
Requires: perl(HTTP::Response) >= 6
|
||||
Requires: perl(HTTP::Status) >= 6
|
||||
Requires: perl(IO::Socket)
|
||||
Requires: perl(LWP::MediaTypes) >= 6
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
@@ -51,9 +51,16 @@ socket for incoming requests. The 'HTTP::Daemon' is a subclass of
|
||||
'IO::Socket::INET', so you can perform socket operations directly on it
|
||||
too.
|
||||
|
||||
The accept() method will return when a connection from a client is
|
||||
available. The returned value will be an 'HTTP::Daemon::ClientConn' object
|
||||
which is another 'IO::Socket::INET' subclass. Calling the get_request()
|
||||
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.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
find . -type f -print0 | xargs -0 chmod 644
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
@@ -67,11 +74,8 @@ too.
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(644,root,root,755)
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes README
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user