From a8f7952ff426415f0b076cc620057e5ba76cf580 Mon Sep 17 00:00:00 2001
From: Paul Howarth <p...@city-fan.org>
Date: Mon, 13 Jun 2016 17:03:30 +0100
Subject: Update to 2.05

- New upstream release 2.05
  - Fix deref when using the stupid and utterly unnecessary Readonly::Clone
- BR: perl-generators where available
- Bump Test::More version requirement to 0.88 due to use of done_testing
- Update interpreter patch
---
 Readonly-2.04-interpreter.patch | 112 ----------------------------------------
 Readonly-2.05-interpreter.patch | 104 +++++++++++++++++++++++++++++++++++++
 perl-Readonly.spec              |  23 ++++++---
 sources                         |   2 +-
 4 files changed, 122 insertions(+), 119 deletions(-)
 delete mode 100644 Readonly-2.04-interpreter.patch
 create mode 100644 Readonly-2.05-interpreter.patch

diff --git a/Readonly-2.04-interpreter.patch b/Readonly-2.04-interpreter.patch
deleted file mode 100644
index 780e29e..0000000
--- a/Readonly-2.04-interpreter.patch
+++ /dev/null
@@ -1,112 +0,0 @@
---- t/bugs/001_assign.t
-+++ t/bugs/001_assign.t
-@@ -1,4 +1,4 @@
--#!perl -I../../lib
-+#!/usr/bin/perl -I../../lib
- # Verify the Readonly function rejects initialization by assignment
- use strict;
- use Test::More tests => 9;
---- t/bugs/007_implicit_undef.t
-+++ t/bugs/007_implicit_undef.t
-@@ -1,4 +1,4 @@
--#!perl -I../../lib
-+#!/usr/bin/perl -I../../lib
- # Verify the Readonly function accepts implicit undef values
- use strict;
- use Test::More tests => 3;
---- t/general/array.t
-+++ t/general/array.t
-@@ -1,4 +1,4 @@
--#!perl -I../../lib
-+#!/usr/bin/perl -I../../lib
- 
- # Readonly array tests
- 
---- t/general/clone.t
-+++ t/general/clone.t
-@@ -1,4 +1,4 @@
--#!perl -I../../lib
-+#!/usr/bin/perl -I../../lib
- 
- # Readonly clone tests
- 
---- t/general/deepa.t
-+++ t/general/deepa.t
-@@ -1,4 +1,4 @@
--#!perl -I../../lib
-+#!/usr/bin/perl -I../../lib
- 
- # Test Array vs Array1 functionality
- 
---- t/general/deeph.t
-+++ t/general/deeph.t
-@@ -1,4 +1,4 @@
--#!perl -I../../lib
-+#!/usr/bin/perl -I../../lib
- 
- # Test Hash vs Hash1 functionality
- 
---- t/general/deeps.t
-+++ t/general/deeps.t
-@@ -1,4 +1,4 @@
--#!perl -I../../lib
-+#!/usr/bin/perl -I../../lib
- 
- # Test Scalar vs Scalar1 functionality
- 
---- t/general/docs.t
-+++ t/general/docs.t
-@@ -1,4 +1,4 @@
--#!perl -I../../lib
-+#!/usr/bin/perl -I../../lib
- # Examples from the docs -- make sure they work!
- use strict;
- use Test::More tests => 22;
---- t/general/export.t
-+++ t/general/export.t
-@@ -1,4 +1,4 @@
--#!perl -I../../lib
-+#!/usr/bin/perl -I../../lib
- # Readonly hash tests
- use strict;
- use Test::More tests => 1;
---- t/general/hash.t
-+++ t/general/hash.t
-@@ -1,4 +1,4 @@
--#!perl -I../../lib
-+#!/usr/bin/perl -I../../lib
- 
- # Readonly hash tests
- 
---- t/general/readonly.t
-+++ t/general/readonly.t
-@@ -1,4 +1,4 @@
--#!perl -I../../lib
-+#!/usr/bin/perl -I../../lib
- 
- # Test the Readonly function
- 
---- t/general/reassign.t
-+++ t/general/reassign.t
-@@ -1,4 +1,4 @@
--#!perl -I../../lib
-+#!/usr/bin/perl -I../../lib
- 
- # Readonly reassignment-prevention tests
- 
---- t/general/scalar.t
-+++ t/general/scalar.t
-@@ -1,4 +1,4 @@
--#!perl -I../../lib
-+#!/usr/bin/perl -I../../lib
- 
- # Readonly scalar tests
- 
---- t/general/tie.t
-+++ t/general/tie.t
-@@ -1,4 +1,4 @@
--#!perl -I../../lib
-+#!/usr/bin/perl -I../../lib
- # Test the Readonly function
- use strict;
- use Test::More tests => 4;
diff --git a/Readonly-2.05-interpreter.patch b/Readonly-2.05-interpreter.patch
new file mode 100644
index 0000000..890bf6f
--- /dev/null
+++ b/Readonly-2.05-interpreter.patch
@@ -0,0 +1,104 @@
+--- t/bugs/001_assign.t
++++ t/bugs/001_assign.t
+@@ -1,4 +1,4 @@
+-#!perl -I../../lib
++#!/usr/bin/perl -I../../lib
+ # Verify the Readonly function rejects initialization by assignment
+ use strict;
+ use warnings; no warnings 'misc';
+--- t/bugs/007_implicit_undef.t
++++ t/bugs/007_implicit_undef.t
+@@ -1,4 +1,4 @@
+-#!perl -I../../lib
++#!/usr/bin/perl -I../../lib
+ # Verify the Readonly function accepts implicit undef values
+ use strict;
+ use Test::More;
+--- t/general/array.t
++++ t/general/array.t
+@@ -1,4 +1,4 @@
+-#!perl -I../../lib
++#!/usr/bin/perl -I../../lib
+ 
+ # Readonly array tests
+ 
+--- t/general/deepa.t
++++ t/general/deepa.t
+@@ -1,4 +1,4 @@
+-#!perl -I../../lib
++#!/usr/bin/perl -I../../lib
+ 
+ # Test Array vs Array1 functionality
+ 
+--- t/general/deeph.t
++++ t/general/deeph.t
+@@ -1,4 +1,4 @@
+-#!perl -I../../lib
++#!/usr/bin/perl -I../../lib
+ 
+ # Test Hash vs Hash1 functionality
+ 
+--- t/general/deeps.t
++++ t/general/deeps.t
+@@ -1,4 +1,4 @@
+-#!perl -I../../lib
++#!/usr/bin/perl -I../../lib
+ 
+ # Test Scalar vs Scalar1 functionality
+ 
+--- t/general/docs.t
++++ t/general/docs.t
+@@ -1,4 +1,4 @@
+-#!perl -I../../lib
++#!/usr/bin/perl -I../../lib
+ # Examples from the docs -- make sure they work!
+ use strict;
+ use Test::More tests => 22;
+--- t/general/export.t
++++ t/general/export.t
+@@ -1,4 +1,4 @@
+-#!perl -I../../lib
++#!/usr/bin/perl -I../../lib
+ # Readonly hash tests
+ use strict;
+ use Test::More tests => 1;
+--- t/general/hash.t
++++ t/general/hash.t
+@@ -1,4 +1,4 @@
+-#!perl -I../../lib
++#!/usr/bin/perl -I../../lib
+ 
+ # Readonly hash tests
+ 
+--- t/general/readonly.t
++++ t/general/readonly.t
+@@ -1,4 +1,4 @@
+-#!perl -I../../lib
++#!/usr/bin/perl -I../../lib
+ 
+ # Test the Readonly function
+ 
+--- t/general/reassign.t
++++ t/general/reassign.t
+@@ -1,4 +1,4 @@
+-#!perl -I../../lib
++#!/usr/bin/perl -I../../lib
+ 
+ # Readonly reassignment-prevention tests
+ 
+--- t/general/scalar.t
++++ t/general/scalar.t
+@@ -1,4 +1,4 @@
+-#!perl -I../../lib
++#!/usr/bin/perl -I../../lib
+ 
+ # Readonly scalar tests
+ 
+--- t/general/tie.t
++++ t/general/tie.t
+@@ -1,4 +1,4 @@
+-#!perl -I../../lib
++#!/usr/bin/perl -I../../lib
+ # Test the Readonly function
+ use strict;
+ use Test::More tests => 4;
diff --git a/perl-Readonly.spec b/perl-Readonly.spec
index bb1a7ef..bb2ba1c 100644
--- a/perl-Readonly.spec
+++ b/perl-Readonly.spec
@@ -1,16 +1,19 @@
 Name:          perl-Readonly
-Version:       2.04
-Release:       2%{?dist}
+Version:       2.05
+Release:       1%{?dist}
 Summary:       Facility for creating read-only scalars, arrays, hashes
 Group:         Development/Libraries
 License:       GPL+ or Artistic
 URL:           http://search.cpan.org/dist/Readonly/
 Source0:       
http://search.cpan.org/CPAN/authors/id/S/SA/SANKO/Readonly-%{version}.tar.gz
-Patch0:                Readonly-2.04-interpreter.patch
+Patch0:                Readonly-2.05-interpreter.patch
 BuildArch:     noarch
 # Module Build
 BuildRequires: coreutils
 BuildRequires: perl
+%if 0%{?fedora} > 20 || 0%{?rhel} > 7
+BuildRequires: perl-generators
+%endif
 BuildRequires: perl(Module::Build::Tiny) >= 0.035
 # Module Runtime
 BuildRequires: perl(Carp)
@@ -19,8 +22,9 @@ BuildRequires:        perl(Storable)
 BuildRequires: perl(strict)
 BuildRequires: perl(vars)
 # Test Suite
-BuildRequires: perl(constant)
-BuildRequires: perl(Test::More)
+BuildRequires: perl(lib)
+BuildRequires: perl(Test::More) >= 0.88
+BuildRequires: perl(warnings)
 # Runtime
 Requires:      perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 Requires:      perl(Carp)
@@ -59,9 +63,16 @@ perl Build.PL --installdirs=vendor
 %license LICENSE
 %doc Changes README.md eg/benchmark.pl t/
 %{perl_vendorlib}/Readonly.pm
-%{_mandir}/man3/Readonly.3pm*
+%{_mandir}/man3/Readonly.3*
 
 %changelog
+* Mon Jun 13 2016 Paul Howarth <p...@city-fan.org> - 2.05-1
+- Update to 2.05
+  - Fix deref when using the stupid and utterly unnecessary Readonly::Clone
+- BR: perl-generators where available
+- Bump Test::More version requirement to 0.88 due to use of done_testing
+- Update interpreter patch
+
 * Sun May 15 2016 Jitka Plesnikova <jples...@redhat.com> - 2.04-2
 - Perl 5.24 rebuild
 
diff --git a/sources b/sources
index 122d5e8..615e742 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-9af69a0c2d64f5bd382d926be837a19d  Readonly-2.04.tar.gz
+acae851d7d55c509f5f00a8849597e54  Readonly-2.05.tar.gz
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-Readonly.git/commit/?h=master&id=a8f7952ff426415f0b076cc620057e5ba76cf580
--
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

Reply via email to