Update to 0.24

- New upstream release 0.24
  - Fix syntax of example code (PR#22)
  - 'perl' removed from prerequisite recommendations, to avoid tripping up CPAN
    clients
  - Sub::Util is used preferentially to Sub::Name in most cases (PR#27)
- This release by ETHER → update source URL
- Modernize spec
- Don't run the extra tests
This commit is contained in:
Paul Howarth 2015-12-11 10:30:48 +00:00
parent 0a4b1e1bc1
commit 783577246e
3 changed files with 26 additions and 54 deletions

View File

@ -1,19 +0,0 @@
--- xt/release/no-tabs.t
+++ xt/release/no-tabs.t
@@ -3,7 +3,7 @@ use warnings;
# this test was generated with Dist::Zilla::Plugin::NoTabsTests 0.07
-use Test::More 0.88;
+use Test::More;
use Test::NoTabs;
my @files = (
@@ -21,5 +21,6 @@ my @files = (
't/when.t'
);
+plan tests => scalar @files;
+
notabs_ok($_) foreach @files;
-done_testing;

View File

@ -1,43 +1,33 @@
# 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.22
Release: 6%{?dist}
Version: 0.24
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.22-old-Test::More.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
Source0: http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Try-Tiny-%{version}.tar.gz
BuildArch: noarch
# Module Build
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(ExtUtils::MakeMaker)
# Module
BuildRequires: perl(Carp)
BuildRequires: perl(constant)
BuildRequires: perl(Exporter) >= 5.57
BuildRequires: perl(Sub::Name)
BuildRequires: perl(strict)
BuildRequires: perl(Sub::Util)
BuildRequires: perl(warnings)
# Test Suite
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)
BuildRequires: perl(Test::NoTabs)
BuildRequires: perl(Test::Pod) >= 1.41
BuildRequires: perl(Test::Pod::Coverage) >= 1.08
BuildRequires: perl(CPAN::Meta) >= 2.120900
# Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Sub::Name)
Requires: perl(Sub::Util)
# Do not provide private modules from tests packaged as a documentation
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_docdir}/
@ -56,34 +46,35 @@ 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}
%install
rm -rf %{buildroot}
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
%{_fixperms} %{buildroot}
%check
make test
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
%clean
rm -rf %{buildroot}
%files
%doc Changes LICENSE README t/
%license LICENCE
%doc Changes CONTRIBUTING README t/
%{perl_vendorlib}/Try/
%{_mandir}/man3/Try::Tiny.3pm*
%{_mandir}/man3/Try::Tiny.3*
%changelog
* Fri Dec 11 2015 Paul Howarth <paul@city-fan.org> - 0.24-1
- Update to 0.24
- Fix syntax of example code (PR#22)
- 'perl' removed from prerequisite recommendations, to avoid tripping up CPAN
clients
- Sub::Util is used preferentially to Sub::Name in most cases (PR#27)
- This release by ETHER update source URL
- Modernize spec
- Don't run the extra tests
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

View File

@ -1 +1 @@
6769658bfbca241a470206c9a8819ff2 Try-Tiny-0.22.tar.gz
1a12a51cfeb7e2c301e4ae093c7ecdfb Try-Tiny-0.24.tar.gz