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:
parent
0a4b1e1bc1
commit
783577246e
@ -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;
|
|
@ -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
|
Name: perl-Try-Tiny
|
||||||
Summary: Minimal try/catch with proper localization of $@
|
Summary: Minimal try/catch with proper localization of $@
|
||||||
Version: 0.22
|
Version: 0.24
|
||||||
Release: 6%{?dist}
|
Release: 1%{?dist}
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Libraries
|
|
||||||
URL: http://search.cpan.org/dist/Try-Tiny
|
URL: http://search.cpan.org/dist/Try-Tiny
|
||||||
Source0: http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Try-Tiny-%{version}.tar.gz
|
Source0: http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Try-Tiny-%{version}.tar.gz
|
||||||
Patch1: Try-Tiny-0.22-old-Test::More.patch
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# Module Build
|
# Module Build
|
||||||
|
BuildRequires: coreutils
|
||||||
|
BuildRequires: findutils
|
||||||
|
BuildRequires: make
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
BuildRequires: perl(strict)
|
|
||||||
BuildRequires: perl(warnings)
|
|
||||||
# Module
|
# Module
|
||||||
BuildRequires: perl(Carp)
|
BuildRequires: perl(Carp)
|
||||||
BuildRequires: perl(constant)
|
BuildRequires: perl(constant)
|
||||||
BuildRequires: perl(Exporter) >= 5.57
|
BuildRequires: perl(Exporter) >= 5.57
|
||||||
BuildRequires: perl(Sub::Name)
|
BuildRequires: perl(strict)
|
||||||
|
BuildRequires: perl(Sub::Util)
|
||||||
|
BuildRequires: perl(warnings)
|
||||||
# Test Suite
|
# Test Suite
|
||||||
BuildRequires: perl(File::Spec)
|
BuildRequires: perl(File::Spec)
|
||||||
BuildRequires: perl(IO::Handle)
|
|
||||||
BuildRequires: perl(IPC::Open3)
|
|
||||||
BuildRequires: perl(Test::More)
|
BuildRequires: perl(Test::More)
|
||||||
# Optional Tests
|
# Optional Tests
|
||||||
BuildRequires: perl(Capture::Tiny) >= 0.12
|
BuildRequires: perl(Capture::Tiny) >= 0.12
|
||||||
# Extra Tests
|
BuildRequires: perl(CPAN::Meta) >= 2.120900
|
||||||
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
|
|
||||||
# Runtime
|
# Runtime
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
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
|
# Do not provide private modules from tests packaged as a documentation
|
||||||
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_docdir}/
|
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_docdir}/
|
||||||
@ -56,34 +46,35 @@ which may not be desirable either.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n Try-Tiny-%{version}
|
%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
|
%build
|
||||||
perl Makefile.PL INSTALLDIRS=vendor
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
|
||||||
make pure_install DESTDIR=%{buildroot}
|
make pure_install DESTDIR=%{buildroot}
|
||||||
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
||||||
%{_fixperms} %{buildroot}
|
%{_fixperms} %{buildroot}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
make test
|
||||||
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf %{buildroot}
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc Changes LICENSE README t/
|
%license LICENCE
|
||||||
|
%doc Changes CONTRIBUTING README t/
|
||||||
%{perl_vendorlib}/Try/
|
%{perl_vendorlib}/Try/
|
||||||
%{_mandir}/man3/Try::Tiny.3pm*
|
%{_mandir}/man3/Try::Tiny.3*
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user