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
This commit is contained in:
parent
4b22deea3a
commit
a342c6972e
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
Readonly-1.03.tar.gz
|
||||
/Readonly-[0-9.]*.tar.gz
|
||||
|
||||
@ -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;
|
||||
@ -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@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@lists.fedoraproject.org> - 1.03-24
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user