0.042 bump

This commit is contained in:
Petr Písař 2014-02-19 15:31:13 +01:00
parent 4c81294b08
commit 9ead9d3ed0
4 changed files with 23 additions and 15 deletions

1
.gitignore vendored
View File

@ -10,3 +10,4 @@
/HTTP-Tiny-0.037.tar.gz
/HTTP-Tiny-0.038.tar.gz
/HTTP-Tiny-0.039.tar.gz
/HTTP-Tiny-0.042.tar.gz

View File

@ -1,4 +1,4 @@
From 2dba24236cf734ce89a058541815eef2eb59475c Mon Sep 17 00:00:00 2001
From 05eae4936960e5c53f3e3287a4260c5ccf0ff6b0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
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ř <ppisar@redhat.com>
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/HTTP/Tiny.pm b/lib/HTTP/Tiny.pm
index bb824c2..9d98e1f 100644
index 6db995c..80a5a08 100644
--- a/lib/HTTP/Tiny.pm
+++ b/lib/HTTP/Tiny.pm
@@ -118,7 +118,10 @@ sub mirror {
@@ -266,7 +266,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 bb824c2..9d98e1f 100644
close $fh
or Carp::croak(qq/Error: Caught error closing temporary file $tempfile: $!\n/);
--
1.8.3.1
1.8.5.3

View File

@ -1,14 +1,14 @@
Name: perl-HTTP-Tiny
Version: 0.039
Version: 0.042
Release: 1%{?dist}
Summary: Small, simple, correct HTTP/1.1 client
License: GPL+ or Artistic
Group: Development/Libraries
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,
# Check for write failure, bug #1031096, refused by upstream,
# <https://github.com/chansen/p5-http-tiny/issues/32>
Patch0: HTTP-Tiny-0.039-Croak-on-failed-write-into-a-file.patch
Patch0: HTTP-Tiny-0.042-Croak-on-failed-write-into-a-file.patch
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.17
@ -20,12 +20,14 @@ BuildRequires: perl(Carp)
BuildRequires: perl(Errno)
BuildRequires: perl(Fcntl)
BuildRequires: perl(IO::Socket)
# IO::Socket::IP 0.25 is optional
# IO::Socket::SSL 1.56 is optional
BuildRequires: perl(MIME::Base64)
# Mozilla::CA is optional
# Net::SSLeay 1.49 is optional
BuildRequires: perl(Time::Local)
# Tests:
# Data::Dumper not used
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Spec)
@ -33,13 +35,15 @@ BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp)
BuildRequires: perl(IO::Dir)
BuildRequires: perl(IO::File)
BuildRequires: perl(IO::Socket::INET)
# IO::Socket::SSL 1.56 not needed
BuildRequires: perl(IPC::Cmd)
BuildRequires: perl(List::Util)
# Mozilla::CA not needed
# Net::SSLeay 1.49 not needed
BuildRequires: perl(open)
BuildRequires: perl(Test::More) >= 0.96
# On-line tests:
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(IO::Socket::INET)
BuildRequires: perl(IPC::Cmd)
BuildRequires: perl(version)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(bytes)
Requires: perl(Fcntl)
@ -63,9 +67,9 @@ perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
%{_fixperms} $RPM_BUILD_ROOT/*
make pure_install DESTDIR='%{buildroot}'
find '%{buildroot}' -type f -name .packlist -exec rm -f {} \;
%{_fixperms} '%{buildroot}'/*
%check
make test
@ -76,6 +80,9 @@ make test
%{_mandir}/man3/*
%changelog
* Wed Feb 19 2014 Petr Pisar <ppisar@redhat.com> - 0.042-1
- 0.042 bump
* Thu Nov 28 2013 Petr Pisar <ppisar@redhat.com> - 0.039-1
- 0.039 bump

View File

@ -1 +1 @@
322bcc9567cc2c8d6202e0cb4a9528cc HTTP-Tiny-0.039.tar.gz
23bcc320c7873fe1d4482eb5e2c41cc5 HTTP-Tiny-0.042.tar.gz