[perl-Readonly] Update to 1.61

Paul Howarth pghmcfc at fedoraproject.org
Mon Jun 30 13:29:50 UTC 2014


commit 2b8824002c8401b63480af67ba05a7e14ad9a520
Author: Paul Howarth <paul at city-fan.org>
Date:   Mon Jun 30 14:26:45 2014 +0100

    Update to 1.61
    
    - New upstream release 1.61
      - Fix array and hash tie() while in XS mode (exposed by Params::Validate
        tests)
      - Fix implicit undef value regression
        (https://github.com/sanko/readonly/issues/8)
      - Normal constants (strings, numbers) do not appear to be read-only to
        Internals::SvREADONLY($) but perl itself doesn't miss a beat when you
        attempt to assign a value to them; fixing test regression in
        t/general/reassign.t
      - Minor documentation fixes (spell check, etc.)
        (https://github.com/sanko/readonly/issues/7)
    - Update shellbang patch

 Readonly-1.61-interpreter.patch   |   96 +++++++++++++++++++++++++++++
 Readonly-v1.5.0-interpreter.patch |  120 -------------------------------------
 perl-Readonly.spec                |   25 +++++++-
 sources                           |    2 +-
 4 files changed, 118 insertions(+), 125 deletions(-)
---
diff --git a/Readonly-1.61-interpreter.patch b/Readonly-1.61-interpreter.patch
new file mode 100644
index 0000000..7a04332
--- /dev/null
+++ b/Readonly-1.61-interpreter.patch
@@ -0,0 +1,96 @@
+--- 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/perl-Readonly.spec b/perl-Readonly.spec
index d79152f..2031867 100644
--- a/perl-Readonly.spec
+++ b/perl-Readonly.spec
@@ -1,12 +1,15 @@
+%global cpanversion 1.61
+%global extraversion 0
+
 Name:		perl-Readonly
-Version:	1.500.0
+Version:	%{cpanversion}%{?extraversion}
 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-v%{version}.tar.gz
-Patch0:		Readonly-v1.5.0-interpreter.patch
+Source0:	http://search.cpan.org/CPAN/authors/id/S/SA/SANKO/Readonly-%{cpanversion}.tar.gz
+Patch0:		Readonly-1.61-interpreter.patch
 BuildArch:	noarch
 # Module Build
 BuildRequires:	perl
@@ -42,7 +45,7 @@ Readonly:
 * Prevents reassignment of Readonly variables
 
 %prep
-%setup -q -n Readonly-v%{version}
+%setup -q -n Readonly-%{cpanversion}
 
 # Fix script interpreter for test suite since we're packaging it
 %patch0
@@ -63,6 +66,20 @@ perl Build.PL installdirs=vendor
 %{_mandir}/man3/Readonly.3pm*
 
 %changelog
+* Mon Jun 30 2014 Paul Howarth <paul at city-fan.org> - 1.610-1
+- Update to 1.61
+  - Fix array and hash tie() while in XS mode (exposed by Params::Validate
+    tests)
+  - Fix implicit undef value regression
+    (https://github.com/sanko/readonly/issues/8)
+  - Normal constants (strings, numbers) do not appear to be read-only to
+    Internals::SvREADONLY($) but perl itself doesn't miss a beat when you
+    attempt to assign a value to them; fixing test regression in
+    t/general/reassign.t
+  - Minor documentation fixes (spell check, etc.)
+    (https://github.com/sanko/readonly/issues/7)
+- Update shellbang patch
+
 * Thu Jun 26 2014 Paul Howarth <paul at city-fan.org> - 1.500.0-1
 - Update to v1.500.0
   - Re-release with new version number
diff --git a/sources b/sources
index 60b1588..13a2653 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-b0a70a159989e7107eece2911726c342  Readonly-v1.500.0.tar.gz
+13d1817bc7f973a240088eeda7a9efd7  Readonly-1.61.tar.gz


More information about the scm-commits mailing list