From f26d4dbf1a6db2b88e24a5c1319d925f23f1e5d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Wed, 4 May 2016 09:04:42 +0200 Subject: [PATCH] 0.058 bump --- .gitignore | 1 + ...58-Croak-on-failed-write-into-a-file.patch | 8 +++---- perl-HTTP-Tiny.spec | 22 ++++++++++++++----- sources | 2 +- 4 files changed, 22 insertions(+), 11 deletions(-) rename HTTP-Tiny-0.053-Croak-on-failed-write-into-a-file.patch => HTTP-Tiny-0.058-Croak-on-failed-write-into-a-file.patch (90%) diff --git a/.gitignore b/.gitignore index 5bce0c3..07c7afa 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ /HTTP-Tiny-0.053.tar.gz /HTTP-Tiny-0.054.tar.gz /HTTP-Tiny-0.056.tar.gz +/HTTP-Tiny-0.058.tar.gz diff --git a/HTTP-Tiny-0.053-Croak-on-failed-write-into-a-file.patch b/HTTP-Tiny-0.058-Croak-on-failed-write-into-a-file.patch similarity index 90% rename from HTTP-Tiny-0.053-Croak-on-failed-write-into-a-file.patch rename to HTTP-Tiny-0.058-Croak-on-failed-write-into-a-file.patch index ede79d1..0488bde 100644 --- a/HTTP-Tiny-0.053-Croak-on-failed-write-into-a-file.patch +++ b/HTTP-Tiny-0.058-Croak-on-failed-write-into-a-file.patch @@ -1,4 +1,4 @@ -From 727079f1ba023d5d923fa95802cd4806d2f98e39 Mon Sep 17 00:00:00 2001 +From 782e0fffff52c0cd729bbcdbd18657df4331adc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Wed, 27 Nov 2013 10:45:39 +0100 Subject: [PATCH] Croak on failed write into a file @@ -16,10 +16,10 @@ Signed-off-by: Petr Písař 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/HTTP/Tiny.pm b/lib/HTTP/Tiny.pm -index d8bd719..2c02421 100644 +index 42653e0..a3def75 100644 --- a/lib/HTTP/Tiny.pm +++ b/lib/HTTP/Tiny.pm -@@ -281,7 +281,10 @@ sub mirror { +@@ -291,7 +291,10 @@ sub mirror { sysopen my $fh, $tempfile, Fcntl::O_CREAT()|Fcntl::O_EXCL()|Fcntl::O_WRONLY() or Carp::croak(qq/Error: Could not create temporary file $tempfile for downloading: $!\n/); binmode $fh; @@ -32,5 +32,5 @@ index d8bd719..2c02421 100644 close $fh or Carp::croak(qq/Error: Caught error closing temporary file $tempfile: $!\n/); -- -1.9.3 +2.5.5 diff --git a/perl-HTTP-Tiny.spec b/perl-HTTP-Tiny.spec index 86b422d..cd92092 100644 --- a/perl-HTTP-Tiny.spec +++ b/perl-HTTP-Tiny.spec @@ -1,6 +1,6 @@ Name: perl-HTTP-Tiny -Version: 0.056 -Release: 4%{?dist} +Version: 0.058 +Release: 1%{?dist} Summary: Small, simple, correct HTTP/1.1 client License: GPL+ or Artistic Group: Development/Libraries @@ -8,9 +8,12 @@ URL: http://search.cpan.org/dist/HTTP-Tiny/ Source0: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/HTTP-Tiny-%{version}.tar.gz # Check for write failure, bug #1031096, refused by upstream, # -Patch0: HTTP-Tiny-0.053-Croak-on-failed-write-into-a-file.patch +Patch0: HTTP-Tiny-0.058-Croak-on-failed-write-into-a-file.patch BuildArch: noarch +BuildRequires: findutils +BuildRequires: make BuildRequires: perl +BuildRequires: perl-generators BuildRequires: perl(ExtUtils::MakeMaker) >= 6.17 BuildRequires: perl(strict) BuildRequires: perl(warnings) @@ -20,11 +23,12 @@ BuildRequires: perl(Carp) BuildRequires: perl(Errno) BuildRequires: perl(Fcntl) BuildRequires: perl(IO::Socket) -# IO::Socket::IP 0.25 is optional +# IO::Socket::IP 0.32 is optional # IO::Socket::SSL 1.56 is optional BuildRequires: perl(MIME::Base64) # Mozilla::CA is optional -# Net::SSLeay 1.49 is optional +# Net::SSLeay 1.49 is an optional fall-back for IO::Socket::SSL +BuildRequires: perl(Socket) BuildRequires: perl(Time::Local) # Tests: # Data::Dumper not used @@ -44,7 +48,10 @@ BuildRequires: perl(Test::More) >= 0.96 Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(bytes) Requires: perl(Fcntl) +Recommends: perl(IO::Socket::IP) >= 0.32 +Recommends: perl(IO::Socket::SSL) >= 1.56 Requires: perl(MIME::Base64) +Recommends: perl(Mozilla::CA) Requires: perl(Time::Local) %description @@ -65,7 +72,7 @@ make %{?_smp_mflags} %install make pure_install DESTDIR='%{buildroot}' -find '%{buildroot}' -type f -name .packlist -exec rm -f {} \; +find '%{buildroot}' -type f -name .packlist -delete %{_fixperms} '%{buildroot}'/* %check @@ -78,6 +85,9 @@ make test %{_mandir}/man3/* %changelog +* Wed May 04 2016 Petr Pisar - 0.058-1 +- 0.058 bump + * Thu Feb 04 2016 Fedora Release Engineering - 0.056-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild diff --git a/sources b/sources index 754a2b2..2854176 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c1a08314c5278e7764bd9b4b95e027bf HTTP-Tiny-0.056.tar.gz +2cef09fbfc897c14547f3774d14824eb HTTP-Tiny-0.058.tar.gz