From a3208cfc96542f1b29580d3680c528616bec52d7 Mon Sep 17 00:00:00 2001
From: Paul Howarth <p...@city-fan.org>
Date: Sun, 8 May 2016 10:10:12 +0100
Subject: Update to 2.04

- New upstream release 2.04
  - Create mutable clones of readonly structures with Readonly::Clone (GH#13)
  - Minor typo fix (GH#21)
  - Rewording some documentation
  - No longer require an explicit version of perl in META.json or cpanfile
  - Quiet compile time warnings about function prototypes and vars being used
    only once
- Update interpreter patch
---
 Readonly-2.01-interpreter.patch | 104 -------------------------------------
 Readonly-2.04-interpreter.patch | 112 ++++++++++++++++++++++++++++++++++++++++
 perl-Readonly.spec              |  16 +++++-
 sources                         |   2 +-
 4 files changed, 127 insertions(+), 107 deletions(-)
 delete mode 100644 Readonly-2.01-interpreter.patch
 create mode 100644 Readonly-2.04-interpreter.patch

diff --git a/Readonly-2.01-interpreter.patch b/Readonly-2.01-interpreter.patch
deleted file mode 100644
index 52aec37..0000000
--- a/Readonly-2.01-interpreter.patch
+++ /dev/null
@@ -1,104 +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/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.04-interpreter.patch b/Readonly-2.04-interpreter.patch
new file mode 100644
index 0000000..780e29e
--- /dev/null
+++ b/Readonly-2.04-interpreter.patch
@@ -0,0 +1,112 @@
+--- 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/perl-Readonly.spec b/perl-Readonly.spec
index a0ad680..6777054 100644
--- a/perl-Readonly.spec
+++ b/perl-Readonly.spec
@@ -1,12 +1,12 @@
 Name:          perl-Readonly
-Version:       2.01
+Version:       2.04
 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.01-interpreter.patch
+Patch0:                Readonly-2.04-interpreter.patch
 BuildArch:     noarch
 # Module Build
 BuildRequires: coreutils
@@ -15,6 +15,7 @@ BuildRequires:        perl(Module::Build::Tiny) >= 0.035
 # Module Runtime
 BuildRequires: perl(Carp)
 BuildRequires: perl(Exporter)
+BuildRequires: perl(Storable)
 BuildRequires: perl(strict)
 BuildRequires: perl(vars)
 # Test Suite
@@ -23,6 +24,7 @@ BuildRequires:        perl(Test::More)
 # Runtime
 Requires:      perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 Requires:      perl(Carp)
+Requires:      perl(Storable)
 
 %description
 Readonly provides a facility for creating non-modifiable scalars,
@@ -60,6 +62,16 @@ perl Build.PL --installdirs=vendor
 %{_mandir}/man3/Readonly.3pm*
 
 %changelog
+* Sat May  7 2016 Paul Howarth <p...@city-fan.org> - 2.04-1
+- Update to 2.04
+  - Create mutable clones of readonly structures with Readonly::Clone (GH#13)
+  - Minor typo fix (GH#21)
+  - Rewording some documentation
+  - No longer require an explicit version of perl in META.json or cpanfile
+  - Quiet compile time warnings about function prototypes and vars being used
+    only once
+- Update interpreter patch
+
 * Thu Feb 25 2016 Paul Howarth <p...@city-fan.org> - 2.01-1
 - Update to 2.01
   - Disallow initialization of Readonly variables by assignment, allowed by
diff --git a/sources b/sources
index 9ade705..122d5e8 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-952c6af2770ccbabcd01702aa0fada70  Readonly-2.01.tar.gz
+9af69a0c2d64f5bd382d926be837a19d  Readonly-2.04.tar.gz
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-Readonly.git/commit/?h=f24&id=a3208cfc96542f1b29580d3680c528616bec52d7
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org

Reply via email to