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
This commit is contained in:
Paul Howarth 2014-06-25 16:24:51 +01:00
parent 64d5959b38
commit 74f86eb7fb
5 changed files with 150 additions and 98 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/Readonly-[0-9.]*.tar.gz
/Readonly-v[0-9.]*.tar.gz

View File

@ -1,88 +0,0 @@
--- t/array.t
+++ t/array.t
@@ -1,4 +1,4 @@
-#!perl -I..
+#!/usr/bin/perl -I..
# Readonly array tests
use strict;
use Test::More tests => 23;
--- t/deepa.t
+++ t/deepa.t
@@ -1,4 +1,4 @@
-#!perl -I..
+#!/usr/bin/perl -I..
# Test Array vs Array1 functionality
use strict;
use Test::More tests => 13;
--- t/deeph.t
+++ t/deeph.t
@@ -1,4 +1,4 @@
-#!perl -I..
+#!/usr/bin/perl -I..
# Test Hash vs Hash1 functionality
use strict;
use Test::More tests => 13;
--- t/deeps.t
+++ t/deeps.t
@@ -1,4 +1,4 @@
-#!perl -I..
+#!/usr/bin/perl -I..
# Test Scalar vs Scalar1 functionality
use strict;
use Test::More tests => 21;
--- t/docs.t
+++ t/docs.t
@@ -1,4 +1,4 @@
-#!perl -I..
+#!/usr/bin/perl -I..
# Examples from the docs -- make sure they work!
use strict;
use Test::More tests => 22;
--- t/export.t
+++ t/export.t
@@ -1,4 +1,4 @@
-#!perl -I..
+#!/usr/bin/perl -I..
# Readonly hash tests
use strict;
use Test::More tests => 1;
--- t/hash.t
+++ t/hash.t
@@ -1,4 +1,4 @@
-#!perl -I..
+#!/usr/bin/perl -I..
# Readonly hash tests
use strict;
use Test::More tests => 20;
--- t/readonly.t
+++ t/readonly.t
@@ -1,4 +1,4 @@
-#!perl -I..
+#!/usr/bin/perl -I..
# Test the Readonly function
use strict;
use Test::More tests => 19;
--- t/reassign.t
+++ t/reassign.t
@@ -1,4 +1,4 @@
-#!perl -I..
+#!/usr/bin/perl -I..
# Readonly reassignment-prevention tests
use strict;
use Test::More tests => 22;
--- t/scalar.t
+++ t/scalar.t
@@ -1,4 +1,4 @@
-#!perl -I..
+#!/usr/bin/perl -I..
# Readonly scalar tests
use strict;
use Test::More tests => 12;
--- t/tie.t
+++ t/tie.t
@@ -1,4 +1,4 @@
-#!perl -I..
+#!/usr/bin/perl -I..
# Test the Readonly function
use strict;
use Test::More tests => 4;

View File

@ -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;

View File

@ -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@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@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

View File

@ -1 +1 @@
875c911ed43d0ecf2c5abed60ee6ae18 Readonly-1.04.tar.gz
787cfab569c6430c90d0e2dc04ca4588 Readonly-v1.5.0.tar.gz