Update to 0.10

- New upstream release 0.10
  - Fix test to handle altered Test::Without::Module exception message
epel9
Paul Howarth 8 years ago
parent f38a4086ed
commit 70ab9fca89

@ -1,25 +0,0 @@
From 1f38167de051b0df00ca25ce8f351f9d8f3d21f1 Mon Sep 17 00:00:00 2001
From: Paul Howarth <paul@city-fan.org>
Date: Fri, 7 Apr 2017 11:58:01 +0100
Subject: [PATCH] Fix test for Test::Without::Module 0.19
---
t/012-without-implementation.t | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/012-without-implementation.t b/t/012-without-implementation.t
index 9f47c52..3191b52 100644
--- a/t/012-without-implementation.t
+++ b/t/012-without-implementation.t
@@ -12,7 +12,7 @@ use Test::Without::Module qw( Class::Load::PP Class::Load::XS );
{
like(
exception { require Class::Load },
- qr/Class.Load.PP\.pm did not return a true value/,
+ qr!Can't locate Class/Load/PP\.pm in \@INC|Class.Load.PP\.pm did not return a true value!,
'error when loading Class::Load and no implementation is available includes errors from trying to load modules'
);
}
--
2.9.3

@ -1,11 +1,10 @@
Name: perl-Class-Load-XS
Version: 0.09
Release: 8%{?dist}
Version: 0.10
Release: 1%{?dist}
Summary: XS implementation of parts of Class::Load
License: Artistic 2.0
URL: http://search.cpan.org/dist/Class-Load-XS/
Source0: http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Class-Load-XS-%{version}.tar.gz
Patch0: 0001-Fix-test-for-Test-Without-Module-0.19.patch
# ===================================================================
# Module build requirements
# ===================================================================
@ -35,7 +34,7 @@ BuildRequires: perl(lib)
BuildRequires: perl(Module::Implementation) >= 0.04
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Test::Requires)
BuildRequires: perl(Test::Needs)
BuildRequires: perl(Test::Without::Module)
BuildRequires: perl(version)
# ===================================================================
@ -52,10 +51,6 @@ See Class::Load for API details.
%prep
%setup -q -n Class-Load-XS-%{version}
# Fix test for Test::Without::Module ≥ 0.19
# https://github.com/moose/Class-Load/pull/2
%patch0 -p1
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}
@ -77,6 +72,10 @@ make test
%{_mandir}/man3/Class::Load::XS.3*
%changelog
* Tue Apr 11 2017 Paul Howarth <paul@city-fan.org> - 0.10-1
- Update to 0.10
- Fix test to handle altered Test::Without::Module exception message
* Fri Apr 7 2017 Paul Howarth <paul@city-fan.org> - 0.09-8
- Fix FTBFS with Test::Without::Module ≥ 0.19
(https://github.com/moose/Class-Load/pull/2)

@ -1 +1 @@
98eb8daf7f23c872fc7f503a7e34f598 Class-Load-XS-0.09.tar.gz
SHA512 (Class-Load-XS-0.10.tar.gz) = 16ab845dc393567f0b0e9597eda7d7678b8a41d218823a166bacdfd4dc93e704a6aff98662340b8d7f4d045a60530071bb84ea8da8be5a6930af47722207d126

Loading…
Cancel
Save