6.12 bump
This commit is contained in:
parent
d243b71a95
commit
cc06085427
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,3 +4,4 @@
|
||||
/HTTP-Daemon-6.05.tar.gz
|
||||
/HTTP-Daemon-6.06.tar.gz
|
||||
/HTTP-Daemon-6.10.tar.gz
|
||||
/HTTP-Daemon-6.12.tar.gz
|
||||
|
@ -1,37 +0,0 @@
|
||||
From 2726c84a553b2a855dd8292399f277f0d6e2e33a Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
||||
Date: Wed, 27 May 2020 12:18:44 +0200
|
||||
Subject: [PATCH] An IPv6 zone separator must be URI-quoted
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
This is wrong:
|
||||
|
||||
$ perl -Ilib -e 'use HTTP::Daemon; $d=HTTP::Daemon->new(LocalAddr=>q{fe80::250:54ff:fe00:f01%ens3}) or die; print $d->url(), qq{\n}'
|
||||
http://[fe80::250:54ff:fe00:f01%ens3]:50263/
|
||||
|
||||
The per-cent character must be quoted in an URI. This was fixed in
|
||||
a 81bd91d29736061e6e9a0d78022e6ea9b6a72e70 commit, but broken later in
|
||||
6.10 release.
|
||||
|
||||
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
||||
---
|
||||
lib/HTTP/Daemon.pm | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/lib/HTTP/Daemon.pm b/lib/HTTP/Daemon.pm
|
||||
index cac7f84..260d5bb 100644
|
||||
--- a/lib/HTTP/Daemon.pm
|
||||
+++ b/lib/HTTP/Daemon.pm
|
||||
@@ -47,6 +47,7 @@ sub url {
|
||||
my $self = shift;
|
||||
|
||||
my $host = $self->sockhost;
|
||||
+ $host =~ s/%/%25/g;
|
||||
$host = "127.0.0.1" if $host eq "0.0.0.0";
|
||||
$host = "::1" if $host eq "::";
|
||||
$host = "[$host]" if $self->sockdomain == Socket::AF_INET6;
|
||||
--
|
||||
2.25.4
|
||||
|
@ -1,5 +1,5 @@
|
||||
Name: perl-HTTP-Daemon
|
||||
Version: 6.10
|
||||
Version: 6.12
|
||||
Release: 1%{?dist}
|
||||
Summary: Simple HTTP server class
|
||||
License: GPL+ or Artistic
|
||||
@ -7,9 +7,6 @@ URL: https://metacpan.org/release/HTTP-Daemon
|
||||
Source0: https://cpan.metacpan.org/authors/id/O/OA/OALDERS/HTTP-Daemon-%{version}.tar.gz
|
||||
# Use Makefile.PL without unneeded dependencies
|
||||
Patch0: HTTP-Daemon-6.04-EU-MM-is-not-deprecated.patch
|
||||
# Fix quoting a zone separator, proposed to an upstream,
|
||||
# <https://github.com/libwww-perl/HTTP-Daemon/pull/46>
|
||||
Patch1: HTTP-Daemon-6.10-An-IPv6-zone-separator-must-be-URI-quoted.patch
|
||||
BuildArch: noarch
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-generators
|
||||
@ -62,7 +59,6 @@ IO::Socket::IP, so you can perform socket operations directly on it too.
|
||||
%prep
|
||||
%setup -q -n HTTP-Daemon-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
||||
@ -85,6 +81,9 @@ make test
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Fri Jun 05 2020 Petr Pisar <ppisar@redhat.com> - 6.12-1
|
||||
- 6.12 bump
|
||||
|
||||
* Wed May 27 2020 Petr Pisar <ppisar@redhat.com> - 6.10-1
|
||||
- 6.10 bump
|
||||
|
||||
|
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (HTTP-Daemon-6.10.tar.gz) = 939b646c5b2de4b5a77f1f5fd933425e97ce183416913a4871e8a931313e4f40bd5a72d4fc1ae264f13e1f32dbe0f428badf429ce86e34f48b2d3f91e0c0b03d
|
||||
SHA512 (HTTP-Daemon-6.12.tar.gz) = 83a8b868162dfa1be66d4267e99af1111d28122c793e89d905243c175617c22ceb66f88b6ea54c29e7b131c26668776ab24cf671c4cc6c1c8810505e0f072596
|
||||
|
Loading…
Reference in New Issue
Block a user