Disable using of Data::Dump::Streamer with Perl 5.22

epel9
Jitka Plesnikova 10 years ago
parent 7755986094
commit ffc243f23b

@ -0,0 +1,15 @@
diff -up Mouse-2.4.2/t/001_mouse/043-parameterized-type.t.orig Mouse-2.4.2/t/001_mouse/043-parameterized-type.t
--- Mouse-2.4.2/t/001_mouse/043-parameterized-type.t.orig 2015-05-15 14:49:16.746036154 +0200
+++ Mouse-2.4.2/t/001_mouse/043-parameterized-type.t 2015-05-15 14:54:29.215872213 +0200
@@ -249,7 +249,10 @@ for my $i(1 .. 2) {
ok $myhashref->check({ a => 43, b => 100, c => 0 });
ok !$myhashref->check({}), 'empty hash';
ok !$myhashref->check({ foo => 42 });
- {
+ SKIP: {
+ skip 'Data::Dump::Streamer; module is not available', 1 unless
+ eval 'use Data::Dump::Streamer; 1';
+
local $TODO = 'See https://rt.cpan.org/Ticket/Display.html?id=71211'
if $Config{archname} =~ /\A ia64 /xmsi;

@ -1,11 +1,14 @@
Name: perl-Mouse Name: perl-Mouse
Summary: Moose minus the antlers Summary: Moose minus the antlers
Version: 2.4.2 Version: 2.4.2
Release: 1%{?dist} Release: 2%{?dist}
License: GPL+ or Artistic License: GPL+ or Artistic
Group: Development/Libraries Group: Development/Libraries
URL: http://search.cpan.org/dist/Mouse URL: http://search.cpan.org/dist/Mouse
Source0: http://search.cpan.org/CPAN/authors/id/G/GF/GFUJI/Mouse-%{version}.tar.gz Source0: http://search.cpan.org/CPAN/authors/id/G/GF/GFUJI/Mouse-%{version}.tar.gz
# The build of Data::Dump::Streamer fails with 5.21.x and higher
# Disable the optional test to build Mouse with Perl 5.22
Patch0: Mouse-2.4.2-Disable-using-Data-Dump-Streamer.patch
# Module Build # Module Build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl(Devel::PPPort) >= 3.19 BuildRequires: perl(Devel::PPPort) >= 3.19
@ -50,7 +53,9 @@ BuildRequires: perl(Tie::Array)
BuildRequires: perl(Tie::Hash) BuildRequires: perl(Tie::Hash)
BuildRequires: perl(Tie::Scalar) BuildRequires: perl(Tie::Scalar)
# Optional Tests # Optional Tests
%if ! 0%(perl -e 'print $] >= 5.022')
BuildRequires: perl(Data::Dump::Streamer) BuildRequires: perl(Data::Dump::Streamer)
%endif
BuildRequires: perl(Declare::Constraints::Simple) BuildRequires: perl(Declare::Constraints::Simple)
BuildRequires: perl(HTTP::Headers) BuildRequires: perl(HTTP::Headers)
BuildRequires: perl(Locale::US) BuildRequires: perl(Locale::US)
@ -99,6 +104,9 @@ an experimental first release, so comments and suggestions are very welcome.
%prep %prep
%setup -q -n Mouse-%{version} %setup -q -n Mouse-%{version}
%if 0%(perl -e 'print $] >= 5.022')
%patch0 -p1
%endif
# Fix permissions # Fix permissions
find . -type f -exec chmod -c -x {} ';' find . -type f -exec chmod -c -x {} ';'
@ -161,6 +169,9 @@ find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
%{_mandir}/man3/Test::Mouse.3* %{_mandir}/man3/Test::Mouse.3*
%changelog %changelog
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.4.2-2
- Disable using of Data::Dump::Streamer with Perl 5.22
* Sun Apr 12 2015 Emmanuel Seyman <emmanuel@seyman.fr> - 2.4.2-1 * Sun Apr 12 2015 Emmanuel Seyman <emmanuel@seyman.fr> - 2.4.2-1
- Update to 2.4.2 - Update to 2.4.2

Loading…
Cancel
Save