diff --git a/.gitignore b/.gitignore index b6ed98c..8061bb1 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /MooX-Struct-0.013.tar.gz +/MooX-Struct-0.014.tar.gz diff --git a/MooX-Struct-0.013-Add-return_value-dump-for-Data-Printer.patch b/MooX-Struct-0.013-Add-return_value-dump-for-Data-Printer.patch deleted file mode 100644 index e56f895..0000000 --- a/MooX-Struct-0.013-Add-return_value-dump-for-Data-Printer.patch +++ /dev/null @@ -1,33 +0,0 @@ -From daea5fa51e652449fd986b8a69c3da952018be6d Mon Sep 17 00:00:00 2001 -From: Andreas Marienborg -Date: Wed, 5 Aug 2015 15:58:29 +0700 -Subject: [PATCH] Add return_value => 'dump' for Data::Printer -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -This is required as of version 0.36 of Data::Printer, where the default for -return_value changed from 'dump' to 'pass'. Since we rely on getting the dump -back, we need to tell Data::Printer that - -Signed-off-by: Petr Písař ---- - t/97dataprinter.t | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/t/97dataprinter.t b/t/97dataprinter.t -index e2dfc69..652e8ba 100644 ---- a/t/97dataprinter.t -+++ b/t/97dataprinter.t -@@ -25,7 +25,7 @@ use if !eval{ require Data::Printer }, - - use Test::More; - --use Data::Printer colored => 0; -+use Data::Printer colored => 0, return_value => 'dump'; - use MooX::Struct Something => [qw( $foo bar )]; - - my $obj = Something->new(foo => 1, bar => 2); --- -2.5.5 - diff --git a/perl-MooX-Struct.spec b/perl-MooX-Struct.spec index 5e386d2..632452c 100644 --- a/perl-MooX-Struct.spec +++ b/perl-MooX-Struct.spec @@ -1,16 +1,13 @@ Name: perl-MooX-Struct -Version: 0.013 +Version: 0.014 Release: 1%{?dist} Summary: Record structure-like Moo classes -# CONTRIBUTING: CC-BY-SA # COPYRIGHT: Public Domain # other files: GPL+ or Artistic -License: (GPL+ or Artistic) and CC-BY-SA and Public Domain +License: (GPL+ or Artistic) and Public Domain Group: Development/Libraries URL: http://search.cpan.org/dist/MooX-Struct/ Source0: http://www.cpan.org/authors/id/T/TO/TOBYINK/MooX-Struct-%{version}.tar.gz -# Adapt tests to Data-Printer-0.36, CPAN RT#104895 -Patch0: MooX-Struct-0.013-Add-return_value-dump-for-Data-Printer.patch BuildArch: noarch BuildRequires: findutils BuildRequires: make @@ -41,10 +38,11 @@ BuildRequires: perl(warnings) BuildRequires: perl(if) BuildRequires: perl(Test::More) >= 0.61 # Optional tests: -BuildRequires: perl(Data::Printer) +BuildRequires: perl(Data::Printer) >= 0.36 Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(B::Deparse) Requires: perl(Data::Dumper) +Requires: perl(Data::Printer) >= 0.36 Requires: perl(Data::Printer::Filter) Requires: perl(IO::Handle) Requires: perl(Moo::Role) @@ -56,7 +54,6 @@ using Moo. %prep %setup -q -n MooX-Struct-%{version} -%patch0 -p1 %build perl Makefile.PL INSTALLDIRS=vendor @@ -72,10 +69,13 @@ make test %files %license LICENSE -%doc Changes CONTRIBUTING COPYRIGHT CREDITS NEWS README +%doc Changes COPYRIGHT CREDITS NEWS README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog +* Wed Feb 01 2017 Jitka Plesnikova - 0.014-1 +- 0.014 bump + * Thu Jun 23 2016 Petr Pisar 0.013-1 - Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index 834cb62..797756f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -593e8c109a177d81569ac83b4954ec11 MooX-Struct-0.013.tar.gz +SHA512 (MooX-Struct-0.014.tar.gz) = 44d477f59ea6c97d4a68793ece33c022a374342e55e072e9e0986d8cdfa4851146ae812ad6363c26284150dca184a9f7ae61b6784858d8e8d1563b80203c348b