8
0

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:
Stephan Kulow
2012-03-01 16:23:26 +00:00
committed by Git OBS Bridge
parent a6f1b0f2c1
commit 9f364548b5
4 changed files with 33 additions and 21 deletions

View File

@@ -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
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:43fd867742701a3f9fcc7bd59838ab72c6490c0ebaf66901068ec6997514adc2
size 18628

View File

@@ -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 Mon Mar 14 10:13:32 UTC 2011 - vcizek@novell.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-HTTP-Daemon # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,33 +16,33 @@
# #
Name: perl-HTTP-Daemon Name: perl-HTTP-Daemon
Version: 6.00 Version: 6.01
Release: 1 Release: 0
License: GPL-1.0+ or Artistic-1.0
%define cpan_name HTTP-Daemon %define cpan_name HTTP-Daemon
Summary: a simple http server class 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 Group: Development/Libraries/Perl
#Source: http://www.cpan.org/authors/id/G/GA/GAAS/HTTP-Daemon-%{version}.tar.gz Url: http://search.cpan.org/dist/HTTP-Daemon/
Source: %{cpan_name}-%{version}.tar.gz 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::Date) >= 6
BuildRequires: perl(HTTP::Request) >= 6 BuildRequires: perl(HTTP::Request) >= 6
BuildRequires: perl(HTTP::Response) >= 6 BuildRequires: perl(HTTP::Response) >= 6
BuildRequires: perl(HTTP::Status) >= 6 BuildRequires: perl(HTTP::Status) >= 6
BuildRequires: perl(IO::Socket)
BuildRequires: perl(LWP::MediaTypes) >= 6 BuildRequires: perl(LWP::MediaTypes) >= 6
BuildRequires: perl #BuildRequires: perl(HTTP::Daemon)
BuildRequires: perl-macros #BuildRequires: perl(LWP::RobotUA)
#BuildRequires: perl(LWP::UserAgent)
#BuildRequires: perl(URI)
Requires: perl(HTTP::Date) >= 6 Requires: perl(HTTP::Date) >= 6
Requires: perl(HTTP::Request) >= 6 Requires: perl(HTTP::Request) >= 6
Requires: perl(HTTP::Response) >= 6 Requires: perl(HTTP::Response) >= 6
Requires: perl(HTTP::Status) >= 6 Requires: perl(HTTP::Status) >= 6
Requires: perl(IO::Socket)
Requires: perl(LWP::MediaTypes) >= 6 Requires: perl(LWP::MediaTypes) >= 6
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%{perl_requires} %{perl_requires}
%description %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 'IO::Socket::INET', so you can perform socket operations directly on it
too. 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 %prep
%setup -q -n %{cpan_name}-%{version} %setup -q -n %{cpan_name}-%{version}
find . -type f -print0 | xargs -0 chmod 644
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor
@@ -67,11 +74,8 @@ too.
%perl_process_packlist %perl_process_packlist
%perl_gen_filelist %perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files %files -f %{name}.files
%defattr(644,root,root,755) %defattr(-,root,root,755)
%doc Changes README %doc Changes README
%changelog %changelog