Update to 0.18

- New upstream release 0.18
  - Fix tests for pre-Test-More-0.88 (https://github.com/doy/try-tiny/pull/10)
- Drop upstreamed patch for building with Test::More < 0.88
This commit is contained in:
Paul Howarth 2013-08-17 22:10:58 +01:00
parent 2f0c3b16e1
commit c2bcd7dd74
3 changed files with 8 additions and 28 deletions

View File

@ -1,16 +0,0 @@
--- t/global_destruction_forked.t
+++ t/global_destruction_forked.t
@@ -1,6 +1,6 @@
use strict;
use warnings;
-use Test::More;
+use Test::More tests => 3;
use Try::Tiny;
{
@@ -54,4 +54,4 @@
}
finally { exit 1 if $parent != $$ };
-done_testing;
+pass("Didn't just exit");

View File

@ -1,15 +1,11 @@
# We need to patch the test suite if we have Test::More < 0.88
%global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0)
Name: perl-Try-Tiny
Summary: Minimal try/catch with proper localization of $@
Version: 0.17
Version: 0.18
Release: 1%{?dist}
License: MIT
Group: Development/Libraries
URL: http://search.cpan.org/dist/Try-Tiny
Source0: http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Try-Tiny-%{version}.tar.gz
Patch1: Try-Tiny-0.17-old-Test::More.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch
# Module Build
@ -48,11 +44,6 @@ which may not be desirable either.
%prep
%setup -q -n Try-Tiny-%{version}
# We need to patch the test suite if we have Test::More < 0.88
%if %{old_test_more}
%patch1
%endif
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
@ -76,12 +67,17 @@ rm -rf %{buildroot}
%{_mandir}/man3/Try::Tiny.3pm*
%changelog
* Sat Aug 17 2013 Paul Howarth <paul@city-fan.org> - 0.18-1
- Update to 0.18
- Fix tests for pre-Test-More-0.88 (https://github.com/doy/try-tiny/pull/10)
- Drop upstreamed patch for building with Test::More < 0.88
* Sat Aug 17 2013 Paul Howarth <paul@city-fan.org> - 0.17-1
- Update to 0.17
- Work around Perl RT#119311, which was causing incorrect error messages in
some cases during global destruction
(https://github.com/doy/try-tiny/pull/9)
- Add patch to support building with Test::More < 0.88
- Add patch to support building with Test::More < 0.88
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

View File

@ -1 +1 @@
e9dc4bf8b02a1c7b5718d05c2f409b26 Try-Tiny-0.17.tar.gz
86f4586f2f980bb46599ebe3e879303f Try-Tiny-0.18.tar.gz