From 4c651e16eb7785ea424296107d135f1abcae6628 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Fri, 22 Jul 2016 08:46:31 +0200 Subject: [PATCH] Disable Data::Dumper::streamer everywhere We cannot use perl to control build-time dependencies because perl is not in the SRPM build root. Becuase Data::Dump::Stream does not work since perl 5.22 that is in all supported Fedoras, I disabled it unconditionally. --- perl-Mouse.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/perl-Mouse.spec b/perl-Mouse.spec index dd59e15..c093a52 100644 --- a/perl-Mouse.spec +++ b/perl-Mouse.spec @@ -1,13 +1,14 @@ Name: perl-Mouse Summary: Moose minus the antlers Version: 2.4.5 -Release: 5%{?dist} +Release: 6%{?dist} License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Mouse Source0: http://search.cpan.org/CPAN/authors/id/S/SY/SYOHEX/Mouse-v%{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 +%bcond_with ddstreamer Patch0: Mouse-2.4.2-Disable-using-Data-Dump-Streamer.patch # Module Build BuildRequires: perl @@ -55,7 +56,7 @@ BuildRequires: perl(Tie::Array) BuildRequires: perl(Tie::Hash) BuildRequires: perl(Tie::Scalar) # Optional Tests -%if ! 0%(perl -e 'print $] >= 5.022') +%if %{with ddstreamer} BuildRequires: perl(Data::Dump::Streamer) %endif BuildRequires: perl(Declare::Constraints::Simple) @@ -110,7 +111,7 @@ an experimental first release, so comments and suggestions are very welcome. %prep %setup -q -n Mouse-v%{version} -%if 0%(perl -e 'print $] >= 5.022') +%if !%{with ddstreamer} %patch0 -p1 %endif @@ -175,6 +176,9 @@ find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' %{_mandir}/man3/Test::Mouse.3* %changelog +* Fri Jul 22 2016 Petr Pisar - 2.4.5-6 +- Disable Data::Dumper::streamer everywhere + * Wed May 18 2016 Jitka Plesnikova - 2.4.5-5 - Perl 5.24 re-rebuild of bootstrapped packages