From 21b881bc934be216c59b46ae9a46d9636f357621 Mon Sep 17 00:00:00 2001 From: Paul Howarth <p...@city-fan.org> Date: Thu, 25 Feb 2016 14:08:32 +0000 Subject: Update to 2.01
- New upstream release 2.01 - Disallow initialization of Readonly variables by assignment, allowed by Perl prototype changes in v5.16; assignment initialization of scalars sets scalar variables to undef and lists and hashes initialized by assignment are not read only - Use %license - Upstream switched to Module::Build::Tiny flow - Update interpreter patch --- Readonly-1.61-interpreter.patch | 96 ------------------------------------- Readonly-2.01-interpreter.patch | 104 ++++++++++++++++++++++++++++++++++++++++ perl-Readonly.spec | 31 +++++++----- sources | 2 +- 4 files changed, 124 insertions(+), 109 deletions(-) delete mode 100644 Readonly-1.61-interpreter.patch create mode 100644 Readonly-2.01-interpreter.patch diff --git a/Readonly-1.61-interpreter.patch b/Readonly-1.61-interpreter.patch deleted file mode 100644 index 7a04332..0000000 --- a/Readonly-1.61-interpreter.patch +++ /dev/null @@ -1,96 +0,0 @@ ---- 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.01-interpreter.patch b/Readonly-2.01-interpreter.patch new file mode 100644 index 0000000..52aec37 --- /dev/null +++ b/Readonly-2.01-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 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/perl-Readonly.spec b/perl-Readonly.spec index 7893915..a0ad680 100644 --- a/perl-Readonly.spec +++ b/perl-Readonly.spec @@ -1,28 +1,24 @@ Name: perl-Readonly -Version: 2.00 -Release: 5%{?dist} +Version: 2.01 +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.61-interpreter.patch +Patch0: Readonly-2.01-interpreter.patch BuildArch: noarch # Module Build +BuildRequires: coreutils BuildRequires: perl -BuildRequires: perl(CPAN::Meta) -BuildRequires: perl(CPAN::Meta::Prereqs) -BuildRequires: perl(File::Basename) -BuildRequires: perl(File::Spec) -BuildRequires: perl(Module::Build) -BuildRequires: perl(utf8) -BuildRequires: perl(warnings) +BuildRequires: perl(Module::Build::Tiny) >= 0.035 # Module Runtime BuildRequires: perl(Carp) BuildRequires: perl(Exporter) BuildRequires: perl(strict) BuildRequires: perl(vars) # Test Suite +BuildRequires: perl(constant) BuildRequires: perl(Test::More) # Runtime Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) @@ -48,7 +44,7 @@ Readonly: %patch0 %build -perl Build.PL installdirs=vendor +perl Build.PL --installdirs=vendor ./Build %install @@ -58,11 +54,22 @@ perl Build.PL installdirs=vendor ./Build test %files -%doc Changes LICENSE README.md eg/benchmark.pl t/ +%license LICENSE +%doc Changes README.md eg/benchmark.pl t/ %{perl_vendorlib}/Readonly.pm %{_mandir}/man3/Readonly.3pm* %changelog +* 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 + Perl prototype changes in v5.16; assignment initialization of scalars sets + scalar variables to undef and lists and hashes initialized by assignment + are not read only +- Use %%license +- Upstream switched to Module::Build::Tiny flow +- Update interpreter patch + * Thu Feb 04 2016 Fedora Release Engineering <rel...@fedoraproject.org> - 2.00-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild diff --git a/sources b/sources index 03b00f8..9ade705 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -05866426331fd2b8d4feebbba245298d Readonly-2.00.tar.gz +952c6af2770ccbabcd01702aa0fada70 Readonly-2.01.tar.gz -- cgit v0.12 http://pkgs.fedoraproject.org/cgit/perl-Readonly.git/commit/?h=master&id=21b881bc934be216c59b46ae9a46d9636f357621 -- 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