[perl-Readonly] Update to 1.04

Paul Howarth pghmcfc at fedoraproject.org
Tue Nov 26 13:46:26 UTC 2013


commit a342c6972eeadba1d6800c4c5c35d8bec2ca3f1d
Author: Paul Howarth <paul at city-fan.org>
Date:   Tue Nov 26 13:44:21 2013 +0000

    Update to 1.04
    
    - New upstream release 1.04
      - 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!
    - This release by SANKO -> update source URL
    - Switch to Module::Build flow
    - Update shellbang patch
    - Modernize spec since EPEL < 7 will never have buildreq CPAN::Meta
    - Drop obsoletes/provides for old -tests subpackage

 .gitignore                                         |    2 +-
 ...preter.patch => Readonly-1.04-interpreter.patch |   44 +++++++-------
 perl-Readonly.spec                                 |   59 +++++++++++---------
 sources                                            |    2 +-
 4 files changed, 57 insertions(+), 50 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index a18cd64..197bacb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-Readonly-1.03.tar.gz
+/Readonly-[0-9.]*.tar.gz
diff --git a/Readonly-1.03-interpreter.patch b/Readonly-1.04-interpreter.patch
similarity index 72%
rename from Readonly-1.03-interpreter.patch
rename to Readonly-1.04-interpreter.patch
index ba3a812..98739a2 100644
--- a/Readonly-1.03-interpreter.patch
+++ b/Readonly-1.04-interpreter.patch
@@ -3,86 +3,86 @@
 @@ -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;
diff --git a/perl-Readonly.spec b/perl-Readonly.spec
index 2455776..eb94f00 100644
--- a/perl-Readonly.spec
+++ b/perl-Readonly.spec
@@ -1,29 +1,34 @@
 Name:		perl-Readonly
-Version:	1.03
-Release:	24%{?dist}
+Version:	1.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/R/RO/ROODE/Readonly-%{version}.tar.gz
-Patch0:		Readonly-1.03-interpreter.patch
-BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
+Source0:	http://search.cpan.org/CPAN/authors/id/S/SA/SANKO/Readonly-%{version}.tar.gz
+Patch0:		Readonly-1.04-interpreter.patch
 BuildArch:	noarch
+# Module Build
+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)
+# Module Runtime
 BuildRequires:	perl(Carp)
 BuildRequires:	perl(Exporter)
-BuildRequires:	perl(ExtUtils::MakeMaker)
 BuildRequires:	perl(strict)
-BuildRequires:	perl(Test::More)
 BuildRequires:	perl(vars)
+# Test Suite
+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)
 
-# Obsolete/provide old -tests subpackage (can be removed in F19 development cycle)
-Obsoletes:	perl-Readonly-tests < %{version}-%{release}
-Provides:	perl-Readonly-tests = %{version}-%{release}
-
 %description
 Readonly provides a facility for creating non-modifiable scalars,
 arrays, and hashes. Any attempt to modify a Readonly variable throws
@@ -44,31 +49,33 @@ Readonly:
 %patch0
 
 %build
-perl Makefile.PL INSTALLDIRS=vendor
-make %{?_smp_mflags}
+perl Build.PL installdirs=vendor
+./Build
 
 %install
-rm -rf %{buildroot}
-make pure_install DESTDIR=%{buildroot}
-find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
-%{_fixperms} %{buildroot}
-
-# We're having this as %%doc
-mv %{buildroot}%{perl_vendorlib}/benchmark.pl .
+./Build install destdir=%{buildroot} create_packlist=0
 
 %check
-make test
-
-%clean
-rm -rf %{buildroot}
+./Build test
 
 %files
-%defattr(-,root,root,-)
-%doc Changes README benchmark.pl t/
+%doc Changes LICENSE README.md TODO eg/benchmark.pl t/
 %{perl_vendorlib}/Readonly.pm
+%{perl_vendorlib}/Readonly/
 %{_mandir}/man3/Readonly.3pm*
 
 %changelog
+* Tue Nov 26 2013 Paul Howarth <paul at city-fan.org> - 1.04-1
+- Update to 1.04
+  - 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!
+- This release by SANKO -> update source URL
+- Switch to Module::Build flow
+- Update shellbang patch
+- Modernize spec since EPEL < 7 will never have buildreq CPAN::Meta
+- Drop obsoletes/provides for old -tests subpackage
+
 * Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.03-24
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 
diff --git a/sources b/sources
index 921ae62..1bbadda 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-0acef3a995ac9ecf575f66a726d638f4  Readonly-1.03.tar.gz
+875c911ed43d0ecf2c5abed60ee6ae18  Readonly-1.04.tar.gz


More information about the scm-commits mailing list