[perl-Readonly] Update to v1.5.0

Paul Howarth pghmcfc at fedoraproject.org
Wed Jun 25 15:26:56 UTC 2014


commit 74f86eb7fb429e312e3f872008b2ec7a162090c5
Author: Paul Howarth <paul at city-fan.org>
Date:   Wed Jun 25 16:24:51 2014 +0100

    Update to v1.5.0
    
    - New upstream release v1.5.0
      - Readonly::XS is no longer needed
      - Typo fix (CPAN RT#86350)
      - Array and Hash scalar references were not made deeply readonly
        (CPAN RT#37864)
      - Upstream magic related bugs were reported to p5p and fixed in perl itself
        so we can resolve the following local issues:
        - CPAN RT#24216 ('looks_like_number' doesn't handle Readonly properly)
        - CPAN RT#29487 (magical variable bug in perl 5.8.5)
        - CPAN RT#36653 (Readonly scalar as class name sometimes undefined)
        - CPAN RT#57382 (tie-related bug in perl's core)
        - CPAN RT#70167 (unaccessed read-only variables are undef in select calls)
      - Reported Perl RT#120122 (tie + smartmatch bug) upstream to p5p; will
        eventually resolve local (CPAN RT#59256)
      - Use readonly support exposed in Internals on perl ≥ 5.8.0
      - Checking Readonly::XS::Okay is no longer suggested... never should have
        been
    - Update shellbang patch

 .gitignore                        |    1 +
 Readonly-1.04-interpreter.patch   |   88 ---------------------------
 Readonly-v1.5.0-interpreter.patch |  120 +++++++++++++++++++++++++++++++++++++
 perl-Readonly.spec                |   37 +++++++++---
 sources                           |    2 +-
 5 files changed, 150 insertions(+), 98 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 197bacb..63d6e6d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /Readonly-[0-9.]*.tar.gz
+/Readonly-v[0-9.]*.tar.gz
diff --git a/Readonly-v1.5.0-interpreter.patch b/Readonly-v1.5.0-interpreter.patch
new file mode 100644
index 0000000..7d54854
--- /dev/null
+++ b/Readonly-v1.5.0-interpreter.patch
@@ -0,0 +1,120 @@
+--- 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/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;
+--- t/simple_api/array.t
++++ t/simple_api/array.t
+@@ -1,4 +1,4 @@
+-#!perl -I../../lib
++#!/usr/bin/perl -I../../lib
+ # Readonly array tests
+ use strict;
+ use Test::More tests => 23;
+--- t/simple_api/hash.t
++++ t/simple_api/hash.t
+@@ -1,4 +1,4 @@
+-#!perl -I../../lib
++#!/usr/bin/perl -I../../lib
+ # Readonly hash tests
+ use strict;
+ use Test::More tests => 20;
+--- t/simple_api/readonly.t
++++ t/simple_api/readonly.t
+@@ -1,4 +1,4 @@
+-#!perl -I../../lib
++#!/usr/bin/perl -I../../lib
+ # Test the Readonly function
+ use strict;
+ use Test::More tests => 23;
+--- t/simple_api/reassign.t
++++ t/simple_api/reassign.t
+@@ -1,4 +1,4 @@
+-#!perl -I../../lib
++#!/usr/bin/perl -I../../lib
+ # Readonly reassignment-prevention tests
+ use strict;
+ use Test::More tests => 22;
+--- t/simple_api/scalar.t
++++ t/simple_api/scalar.t
+@@ -1,4 +1,4 @@
+-#!perl -I../../lib
++#!/usr/bin/perl -I../../lib
+ # Readonly scalar tests
+ use strict;
+ use Test::More tests => 11;
+--- t/verbose_api/array.t
++++ t/verbose_api/array.t
+@@ -1,4 +1,4 @@
+-#!perl -I../lib
++#!/usr/bin/perl -I../lib
+ # Readonly array tests
+ use strict;
+ use Test::More tests => 23;
+--- t/verbose_api/deeph.t
++++ t/verbose_api/deeph.t
+@@ -1,4 +1,4 @@
+-#!perl -I../lib
++#!/usr/bin/perl -I../lib
+ # Test Hash vs Hash1 functionality
+ use strict;
+ use Test::More tests => 13;
+--- t/verbose_api/deeps.t
++++ t/verbose_api/deeps.t
+@@ -1,4 +1,4 @@
+-#!perl -I../lib
++#!/usr/bin/perl -I../lib
+ # Test Scalar vs Scalar1 functionality
+ use strict;
+ use Test::More tests => 21;
+--- t/verbose_api/hash.t
++++ t/verbose_api/hash.t
+@@ -1,4 +1,4 @@
+-#!perl -I../lib
++#!/usr/bin/perl -I../lib
+ # Readonly hash tests
+ use strict;
+ use Test::More tests => 20;
+--- t/verbose_api/readonly.t
++++ t/verbose_api/readonly.t
+@@ -1,4 +1,4 @@
+-#!perl -I../lib
++#!/usr/bin/perl -I../lib
+ # Test the Readonly function
+ use strict;
+ use Test::More tests => 23;
+--- t/verbose_api/reassign.t
++++ t/verbose_api/reassign.t
+@@ -1,4 +1,4 @@
+-#!perl -I../lib
++#!/usr/bin/perl -I../lib
+ # Readonly reassignment-prevention tests
+ use strict;
+ use Test::More tests => 22;
+--- t/verbose_api/scalar.t
++++ t/verbose_api/scalar.t
+@@ -1,4 +1,4 @@
+-#!perl -I../lib
++#!/usr/bin/perl -I../lib
+ # Readonly scalar tests
+ use strict;
+ use Test::More tests => 12;
diff --git a/perl-Readonly.spec b/perl-Readonly.spec
index 5a60f99..61e7356 100644
--- a/perl-Readonly.spec
+++ b/perl-Readonly.spec
@@ -1,14 +1,15 @@
 Name:		perl-Readonly
-Version:	1.04
-Release:	2%{?dist}
+Version:	1.5.0
+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-1.04-interpreter.patch
+Source0:	http://search.cpan.org/CPAN/authors/id/S/SA/SANKO/Readonly-v%{version}.tar.gz
+Patch0:		Readonly-v1.5.0-interpreter.patch
 BuildArch:	noarch
 # Module Build
+BuildRequires:	perl
 BuildRequires:	perl(CPAN::Meta)
 BuildRequires:	perl(CPAN::Meta::Prereqs)
 BuildRequires:	perl(File::Basename)
@@ -26,8 +27,6 @@ BuildRequires:	perl(Test::More)
 # Runtime
 Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 Requires:	perl(Carp)
-# Speed it up since we can
-Requires:	perl(Readonly::XS)
 
 %description
 Readonly provides a facility for creating non-modifiable scalars,
@@ -43,7 +42,7 @@ Readonly:
 * Prevents reassignment of Readonly variables
 
 %prep
-%setup -q -n Readonly-%{version}
+%setup -q -n Readonly-v%{version}
 
 # Fix script interpreter for test suite since we're packaging it
 %patch0
@@ -53,7 +52,7 @@ perl Build.PL installdirs=vendor
 ./Build
 
 %install
-./Build install destdir=%{buildroot} create_packlist=0
+./Build install --destdir=%{buildroot} --create_packlist=0
 
 %check
 ./Build test
@@ -61,10 +60,29 @@ perl Build.PL installdirs=vendor
 %files
 %doc Changes LICENSE README.md TODO eg/benchmark.pl t/
 %{perl_vendorlib}/Readonly.pm
-%{perl_vendorlib}/Readonly/
 %{_mandir}/man3/Readonly.3pm*
 
 %changelog
+* Wed Jun 25 2014 Paul Howarth <paul at city-fan.org> - 1.5.0-1
+- Update to v1.5.0
+  - Readonly::XS is no longer needed
+  - Typo fix (CPAN RT#86350)
+  - Array and Hash scalar references were not made deeply readonly
+    (CPAN RT#37864)
+  - Upstream magic related bugs were reported to p5p and fixed in perl itself
+    so we can resolve the following local issues:
+    - CPAN RT#24216 ('looks_like_number' doesn't handle Readonly properly)
+    - CPAN RT#29487 (magical variable bug in perl 5.8.5)
+    - CPAN RT#36653 (Readonly scalar as class name sometimes undefined)
+    - CPAN RT#57382 (tie-related bug in perl's core)
+    - CPAN RT#70167 (unaccessed read-only variables are undef in select calls)
+  - Reported Perl RT#120122 (tie + smartmatch bug) upstream to p5p; will
+    eventually resolve local (CPAN RT#59256)
+  - Use readonly support exposed in Internals on perl ≥ 5.8.0
+  - Checking Readonly::XS::Okay is no longer suggested... never should have
+    been
+- Update shellbang patch
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.04-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
@@ -73,6 +91,7 @@ perl Build.PL installdirs=vendor
   - Module now maintained by Sanko Robinson; please see TODO for a possible set
     of changes to this module that may affect code written for old, pre-perl
     5.14.0 platforms!
+  - Don't install benchmark.pl (CPAN RT#16167)
 - This release by SANKO -> update source URL
 - Switch to Module::Build flow
 - Update shellbang patch
diff --git a/sources b/sources
index 1bbadda..ec63e52 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-875c911ed43d0ecf2c5abed60ee6ae18  Readonly-1.04.tar.gz
+787cfab569c6430c90d0e2dc04ca4588  Readonly-v1.5.0.tar.gz


More information about the scm-commits mailing list