From 9952d1597ae5b5631d54eb449f9064a749776954 Mon Sep 17 00:00:00 2001
From: Paul Howarth <p...@city-fan.org>
Date: Thu, 28 Jul 2016 14:28:24 +0100
Subject: Package resurrected, version 2.39 from upstream fixes issues
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- Update to 2.39
- Add fix for JSON::XS ≥ 3.02 (CPAN RT#112960)
- Classify buildreqs by usage
- General tidy-up and modernization
- Incorporate package re-review comments (#1359495)
- BR:/R: perl(re)
- Specify version requirement for perl(B::Utils) [≥0.05]
- R: perl(bytes)
---
.gitignore | 1 +
Data-Dump-Streamer-2.39-RT112960.patch | 34 ++++++
dead.package | 1 -
perl-Data-Dump-Streamer.spec | 213 +++++++++++++++++++++++++++++++++
sources | 1 +
5 files changed, 249 insertions(+), 1 deletion(-)
create mode 100644 .gitignore
create mode 100644 Data-Dump-Streamer-2.39-RT112960.patch
delete mode 100644 dead.package
create mode 100644 perl-Data-Dump-Streamer.spec
create mode 100644 sources
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..81faf12
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/Data-Dump-Streamer-[0-9.]*.tar.gz
diff --git a/Data-Dump-Streamer-2.39-RT112960.patch
b/Data-Dump-Streamer-2.39-RT112960.patch
new file mode 100644
index 0000000..d13a47d
--- /dev/null
+++ b/Data-Dump-Streamer-2.39-RT112960.patch
@@ -0,0 +1,34 @@
+From 5b6dfb4787c9e110ba59221c5d257a6b443c7612 Mon Sep 17 00:00:00 2001
+From: Slaven Rezic <cpansand@eserte>
+Date: Sun, 24 Apr 2016 10:24:13 +0000
+Subject: [PATCH] set allow_nonref (RT #112960)
+
+---
+ t/madness_json.t | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/t/madness_json.t b/t/madness_json.t
+index db13def..c99ec59 100644
+--- a/t/madness_json.t
++++ b/t/madness_json.t
+@@ -230,7 +230,7 @@ format STDOUT =
+ else {
+ $expected_dot = 'undef';
+ }
+- my $jstrue= JSON::XS::decode_json("true");
++ my $jstrue= JSON::XS->new->allow_nonref->decode("true");
+ my %hash = (
+ UND => undef,
+ IV => 1,
+@@ -392,7 +392,7 @@ EXPECT
+ }
+ # In JSON::XS < 3, the boolean class is JSON::XS::Boolean
+ # In JSON::XS >= 3, the boolean class is JSON::PP::Boolean
+- my $json_boolean_class = ref JSON::XS::decode_json("true");
++ my $json_boolean_class = ref JSON::XS->new->allow_nonref->decode("true");
+ $expect =~ s{JSON::XS::Boolean}{$json_boolean_class}g;
+ same( $dump= $o->Data(\%hash)->Out, template( $expect, expected_dot =>
$expected_dot ), "", $o);
+ }
+--
+2.1.2
+
diff --git a/dead.package b/dead.package
deleted file mode 100644
index 2f9d68e..0000000
--- a/dead.package
+++ /dev/null
@@ -1 +0,0 @@
-Broken with perl5.22. (#1231204)
diff --git a/perl-Data-Dump-Streamer.spec b/perl-Data-Dump-Streamer.spec
new file mode 100644
index 0000000..296aad2
--- /dev/null
+++ b/perl-Data-Dump-Streamer.spec
@@ -0,0 +1,213 @@
+Name: perl-Data-Dump-Streamer
+Version: 2.39
+Release: 2%{?dist}
+Summary: Accurately serialize a data structure as Perl code
+License: GPL+ or Artistic
+URL: http://search.cpan.org/dist/Data-Dump-Streamer/
+Source0:
http://search.cpan.org/CPAN/authors/id/Y/YV/YVES/Data-Dump-Streamer-%{version}.tar.gz
+Patch0:
http://cpan.cpantesters.org/authors/id/S/SR/SREZIC/patches/Data-Dump-Streamer-2.39-RT112960.patch
+# Build
+BuildRequires: coreutils
+BuildRequires: findutils
+BuildRequires: gcc
+BuildRequires: make
+BuildRequires: perl
+BuildRequires: perl-devel
+BuildRequires: perl-generators
+BuildRequires: perl(ExtUtils::CBuilder)
+BuildRequires: perl(ExtUtils::Depends)
+BuildRequires: perl(Module::Build)
+# Module Runtime
+BuildRequires: perl(B)
+BuildRequires: perl(B::Deparse)
+BuildRequires: perl(B::Utils) >= 0.05
+BuildRequires: perl(bytes)
+BuildRequires: perl(Compress::Zlib)
+BuildRequires: perl(Data::Dumper)
+BuildRequires: perl(DynaLoader)
+BuildRequires: perl(Exporter)
+BuildRequires: perl(IO::File)
+BuildRequires: perl(MIME::Base64)
+BuildRequires: perl(overload)
+BuildRequires: perl(PadWalker) >= 0.99
+BuildRequires: perl(re)
+BuildRequires: perl(strict)
+BuildRequires: perl(Symbol)
+BuildRequires: perl(Text::Abbrev)
+BuildRequires: perl(Text::Balanced)
+BuildRequires: perl(utf8)
+BuildRequires: perl(vars)
+BuildRequires: perl(warnings)
+BuildRequires: perl(warnings::register)
+# Test Suite
+BuildRequires: perl(Algorithm::Diff)
+BuildRequires: perl(base)
+BuildRequires: perl(Carp)
+BuildRequires: perl(Config)
+BuildRequires: perl(constant)
+BuildRequires: perl(Devel::Peek)
+BuildRequires: perl(JSON::XS)
+BuildRequires: perl(Test::More)
+# Dependencies
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires: perl(bytes)
+Requires: perl(Compress::Zlib)
+Requires: perl(MIME::Base64)
+Requires: perl(PadWalker) >= 0.99
+Requires: perl(re)
+
+%global __provides_exclude ::_::|Streamer\\.so
+%global __requires_exclude ::_::
+
+%description
+Given a list of scalars or reference variables, writes out their contents
+in perl syntax. The references can also be objects. The contents of each
+variable is output using the least number of Perl statements as convenient,
+usually only one. Self-referential structures, closures, and objects are
+output correctly.
+
+%prep
+%setup -q -n Data-Dump-Streamer-%{version}
+
+# Fix for JSON::XS ≥ 3.02
(https://rt.cpan.org/Public/Bug/Display.html?id=112960)
+%patch0 -p1 -b .json-xs
+
+%build
+perl Build.PL DDS --installdirs=vendor --optimize="%{optflags}"
+./Build
+
+%install
+./Build install --destdir=%{buildroot} --create_packlist=0
+find %{buildroot} -type f -name '*.bs' -empty -delete
+%{_fixperms} %{buildroot}
+
+%check
+./Build test
+
+%files
+%doc Changes README
+%{perl_vendorarch}/auto/Data/
+%{perl_vendorarch}/Data/
+%{perl_vendorarch}/DDS.pm
+%{_mandir}/man3/Data::Dump::Streamer.3*
+%{_mandir}/man3/DDS.3*
+
+%changelog
+* Thu Jul 28 2016 Paul Howarth <p...@city-fan.org> - 2.39-2
+- Incorporate package re-review comments (#1359495)
+ - BR:/R: perl(re)
+ - Specify version requirement for perl(B::Utils) [≥0.05]
+ - R: perl(bytes)
+
+* Sat Jul 23 2016 Paul Howarth <p...@city-fan.org> - 2.39-1
+- Update to 2.39
+- Add fix for JSON::XS ≥ 3.02 (CPAN RT#112960)
+- Classify buildreqs by usage
+- General tidy-up and modernization
+
+* Thu Aug 28 2014 Jitka Plesnikova <jples...@redhat.com> - 2.38-3
+- Perl 5.20 rebuild
+
+* Sun Aug 17 2014 Fedora Release Engineering <rel-...@lists.fedoraproject.org>
- 2.38-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
+
+* Thu Jul 31 2014 Jitka Plesnikova <jples...@redhat.com> - 2.38-1
+- 2.38 bump
+
+* Sat Jun 07 2014 Fedora Release Engineering <rel-...@lists.fedoraproject.org>
- 2.36-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
+
+* Wed Jan 29 2014 Lubomir Rintel <lkund...@v3.sk> - 2.36-1
+- Update to latest upstream version
+- Fix build with JSON::XS ≥ 3
+
+* Sat Aug 03 2013 Fedora Release Engineering <rel-...@lists.fedoraproject.org>
- 2.34-6
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
+
+* Thu Jul 18 2013 Petr Pisar <ppi...@redhat.com> - 2.34-5
+- Perl 5.18 rebuild
+- Perl 5.18 compatibility (CPAN RT#82958)
+
+* Thu Feb 14 2013 Fedora Release Engineering <rel-...@lists.fedoraproject.org>
- 2.34-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
+
+* Fri Jul 20 2012 Fedora Release Engineering <rel-...@lists.fedoraproject.org>
- 2.34-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
+
+* Wed Jun 13 2012 Petr Pisar <ppi...@redhat.com> - 2.34-2
+- Perl 5.16 rebuild
+
+* Sat Jun 09 2012 Iain Arnell <iarn...@gmail.com> - 2.34-1
+- Update to latest upstream version
+
+* Tue Apr 03 2012 Iain Arnell <iarn...@gmail.com> - 2.33-1
+- Update to latest upstream version
+
+* Fri Jan 13 2012 Fedora Release Engineering <rel-...@lists.fedoraproject.org>
- 2.32-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
+* Thu Jul 21 2011 Iain Arnell <iarn...@gmail.com> - 2.32-4
+- Perl mass rebuild
+
+* Wed Jul 20 2011 Iain Arnell <iarn...@gmail.com> - 2.32-3
+- Update filtering for rpm 4.9
+
+* Tue Jun 21 2011 Marcela Mašláňová <mmasl...@redhat.com> - 2.32-2
+- Perl mass rebuild
+
+* Sun Feb 20 2011 Iain Arnell <iarn...@gmail.com> - 2.32-1
+- Update to latest upstream version
+
+* Tue Feb 08 2011 Fedora Release Engineering <rel-...@lists.fedoraproject.org>
- 2.31-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Fri Feb 04 2011 Iain Arnell <iarn...@gmail.com> - 2.31-1
+- Update to latest upstream version
+
+* Sun Jan 30 2011 Iain Arnell <iarn...@gmail.com> - 2.25-1
+- Update to latest upstream version
+
+* Fri Jan 21 2011 Iain Arnell <iarn...@gmail.com> - 2.23-1
+- Update to latest upstream version
+
+* Thu Dec 16 2010 Marcela Maslanova <mmasl...@redhat.com> - 2.22-2
+- Rebuild to fix problems with vendorarch/lib (#661697)
+
+* Sun Jul 18 2010 Iain Arnell <iarn...@gmail.com> - 2.22-1
+- Update to 2.22
+- Enable DDS shortcut
+- Update spec for modern rpmbuild
+
+* Wed Jun 23 2010 Iain Arnell <iarn...@gmail.com> - 2.21-1
+- Update to latest upstream
+
+* Mon Jun 14 2010 Iain Arnell <iarn...@gmail.com> - 2.18-1
+- Update to latest upstream
+- Convert to Module::Build
+- Use filtering macros
+
+* Tue Apr 06 2010 Iain Arnell <iarn...@gmail.com> - 2.13-1
+- Update to latest upstream
+- Drop madness.t patch
+
+* Mon Apr 05 2010 Iain Arnell <iarn...@gmail.com> - 2.11-1
+- Update to 2.11 (perl 5.12 compatibility tweaks)
+
+* Mon Dec 7 2009 Stepan Kasal <ska...@redhat.com> - 2.09-4
+- Rebuild against perl 5.10.1
+
+* Sat Jul 25 2009 Fedora Release Engineering <rel-...@lists.fedoraproject.org>
- 2.09-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Fri Jun 12 2009 Iain Arnell <iarn...@gmail.com> - 2.09-2
+- Fix FTBFS by patching t/madness.t (due to CPAN RT#44610)
+
+* Sat Apr 04 2009 Iain Arnell <iarn...@gmail.com> - 2.09-1
+- Update to latest upstream
+
+* Thu Feb 26 2009 Fedora Release Engineering <rel-...@lists.fedoraproject.org>
- 2.08-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Fri Dec 05 2008 Iain Arnell <iarn...@gmail.com> - 2.08-1
+- Specfile autogenerated by cpanspec 1.77
+- Strip private provides/requires
diff --git a/sources b/sources
new file mode 100644
index 0000000..29dde3a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+5cd6fe67653c8de544fa41930de157b7 Data-Dump-Streamer-2.39.tar.gz
--
cgit v0.12
http://pkgs.fedoraproject.org/cgit/perl-Data-Dump-Streamer.git/commit/?h=f23&id=9952d1597ae5b5631d54eb449f9064a749776954
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org