From 67f73ae87f790046169c7ee7228c394719048692 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Jan 23 2014 14:02:09 +0000 Subject: Update to 0.19 - New upstream release 0.19 - Fix an obscure issue with loading modules during global destruction (https://github.com/doy/try-tiny/pull/11) - Documentation updates ((https://github.com/doy/try-tiny/pull/12) - Add patch to support building with Test::More < 0.88 again --- diff --git a/Try-Tiny-0.19-old-Test::More.patch b/Try-Tiny-0.19-old-Test::More.patch new file mode 100644 index 0000000..1f358c5 --- /dev/null +++ b/Try-Tiny-0.19-old-Test::More.patch @@ -0,0 +1,16 @@ +--- t/00-compile.t ++++ t/00-compile.t +@@ -3,7 +3,7 @@ + + # this test was generated with Dist::Zilla::Plugin::Test::Compile 2.021 + +-use Test::More 0.88; ++use Test::More tests => ($ENV{AUTHOR_TESTING} ? 2 : 1); + + + +@@ -45,4 +45,3 @@ + + + +-done_testing; diff --git a/perl-Try-Tiny.spec b/perl-Try-Tiny.spec index 90f8068..640454c 100644 --- a/perl-Try-Tiny.spec +++ b/perl-Try-Tiny.spec @@ -1,25 +1,31 @@ +# 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.18 +Version: 0.19 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.19-old-Test::More.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) BuildArch: noarch # Module Build BuildRequires: perl(ExtUtils::MakeMaker) >= 6.17 # Module -BuildRequires: perl(base) BuildRequires: perl(Carp) BuildRequires: perl(constant) -BuildRequires: perl(Exporter) +BuildRequires: perl(Exporter) >= 5.57 BuildRequires: perl(Sub::Name) # Test Suite -BuildRequires: perl(File::Find) -BuildRequires: perl(File::Temp) +BuildRequires: perl(File::Spec) +BuildRequires: perl(IO::Handle) +BuildRequires: perl(IPC::Open3) BuildRequires: perl(Test::More) +# Optional Tests +BuildRequires: perl(Capture::Tiny) >= 0.12 # Extra Tests BuildRequires: perl(Pod::Coverage::TrustPod) BuildRequires: perl(Test::EOL) @@ -44,6 +50,11 @@ 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} @@ -67,6 +78,13 @@ rm -rf %{buildroot} %{_mandir}/man3/Try::Tiny.3pm* %changelog +* Thu Jan 23 2014 Paul Howarth - 0.19-1 +- Update to 0.19 + - Fix an obscure issue with loading modules during global destruction + (https://github.com/doy/try-tiny/pull/11) + - Documentation updates ((https://github.com/doy/try-tiny/pull/12) +- Add patch to support building with Test::More < 0.88 again + * Sat Aug 17 2013 Paul Howarth - 0.18-1 - Update to 0.18 - Fix tests for pre-Test-More-0.88 (https://github.com/doy/try-tiny/pull/10) diff --git a/sources b/sources index 3e2b520..06b3954 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -86f4586f2f980bb46599ebe3e879303f Try-Tiny-0.18.tar.gz +2a0e2754f7a5961ae1a91d51d08d03ca Try-Tiny-0.19.tar.gz