jplesnik pushed to perl-Mouse (master). "Disable using of Data::Dump::Streamer with Perl 5.22"

notifications at fedoraproject.org notifications at fedoraproject.org
Wed Jun 3 10:33:56 UTC 2015


From ffc243f23b3533a5ec107a68ba361c69a64467ff Mon Sep 17 00:00:00 2001
From: Jitka Plesnikova <jplesnik at redhat.com>
Date: Wed, 3 Jun 2015 12:33:21 +0200
Subject: Disable using of Data::Dump::Streamer with Perl 5.22


diff --git a/Mouse-2.4.2-Disable-using-Data-Dump-Streamer.patch b/Mouse-2.4.2-Disable-using-Data-Dump-Streamer.patch
new file mode 100644
index 0000000..6a6ade9
--- /dev/null
+++ b/Mouse-2.4.2-Disable-using-Data-Dump-Streamer.patch
@@ -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;
+ 
diff --git a/perl-Mouse.spec b/perl-Mouse.spec
index a40644b..0c1e2f1 100644
--- a/perl-Mouse.spec
+++ b/perl-Mouse.spec
@@ -1,11 +1,14 @@
 Name:           perl-Mouse
 Summary:        Moose minus the antlers
 Version:        2.4.2
-Release:        1%{?dist}
+Release:        2%{?dist}
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Mouse
 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
 BuildRequires:  perl
 BuildRequires:  perl(Devel::PPPort) >= 3.19
@@ -50,7 +53,9 @@ BuildRequires:  perl(Tie::Array)
 BuildRequires:  perl(Tie::Hash)
 BuildRequires:  perl(Tie::Scalar)
 # Optional Tests
+%if ! 0%(perl -e 'print $] >= 5.022')
 BuildRequires:  perl(Data::Dump::Streamer)
+%endif
 BuildRequires:  perl(Declare::Constraints::Simple)
 BuildRequires:  perl(HTTP::Headers)
 BuildRequires:  perl(Locale::US)
@@ -99,6 +104,9 @@ an experimental first release, so comments and suggestions are very welcome.
 
 %prep
 %setup -q -n Mouse-%{version}
+%if 0%(perl -e 'print $] >= 5.022')
+%patch0 -p1
+%endif
 
 # Fix permissions
 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*
 
 %changelog
+* Wed Jun 03 2015 Jitka Plesnikova <jplesnik at redhat.com> - 2.4.2-2
+- Disable using of Data::Dump::Streamer with Perl 5.22
+
 * Sun Apr 12 2015 Emmanuel Seyman <emmanuel at seyman.fr> - 2.4.2-1
 - Update to 2.4.2
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/perl-Mouse.git/commit/?h=master&id=ffc243f23b3533a5ec107a68ba361c69a64467ff


More information about the perl-devel mailing list