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.
epel9
Petr Písař 9 years ago
parent 4eb207de13
commit 4c651e16eb

@ -1,13 +1,14 @@
Name: perl-Mouse Name: perl-Mouse
Summary: Moose minus the antlers Summary: Moose minus the antlers
Version: 2.4.5 Version: 2.4.5
Release: 5%{?dist} Release: 6%{?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/S/SY/SYOHEX/Mouse-v%{version}.tar.gz 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 # The build of Data::Dump::Streamer fails with 5.21.x and higher
# Disable the optional test to build Mouse with Perl 5.22 # 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 Patch0: Mouse-2.4.2-Disable-using-Data-Dump-Streamer.patch
# Module Build # Module Build
BuildRequires: perl BuildRequires: perl
@ -55,7 +56,7 @@ 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') %if %{with ddstreamer}
BuildRequires: perl(Data::Dump::Streamer) BuildRequires: perl(Data::Dump::Streamer)
%endif %endif
BuildRequires: perl(Declare::Constraints::Simple) BuildRequires: perl(Declare::Constraints::Simple)
@ -110,7 +111,7 @@ an experimental first release, so comments and suggestions are very welcome.
%prep %prep
%setup -q -n Mouse-v%{version} %setup -q -n Mouse-v%{version}
%if 0%(perl -e 'print $] >= 5.022') %if !%{with ddstreamer}
%patch0 -p1 %patch0 -p1
%endif %endif
@ -175,6 +176,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
* Fri Jul 22 2016 Petr Pisar <ppisar@redhat.com> - 2.4.5-6
- Disable Data::Dumper::streamer everywhere
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.4.5-5 * Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.4.5-5
- Perl 5.24 re-rebuild of bootstrapped packages - Perl 5.24 re-rebuild of bootstrapped packages

Loading…
Cancel
Save