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
This commit is contained in:
parent
c2bcd7dd74
commit
67f73ae87f
16
Try-Tiny-0.19-old-Test::More.patch
Normal file
16
Try-Tiny-0.19-old-Test::More.patch
Normal file
@ -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;
|
@ -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 <paul@city-fan.org> - 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 <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)
|
||||
|
Loading…
Reference in New Issue
Block a user