rpms/perl-Package-Stash/EL-4 Package-Stash-0.03-EU::MM-version.patch, NONE, 1.1 Package-Stash-0.03-old-Test::More.patch, NONE, 1.1 perl-Package-Stash.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Paul Howarth pghmcfc at fedoraproject.org
Mon Jun 14 07:05:05 UTC 2010


Author: pghmcfc

Update of /cvs/pkgs/rpms/perl-Package-Stash/EL-4
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv2459/EL-4

Modified Files:
	.cvsignore sources 
Added Files:
	Package-Stash-0.03-EU::MM-version.patch 
	Package-Stash-0.03-old-Test::More.patch 
	perl-Package-Stash.spec 
Log Message:
Initial import of perl-Package-Stash-0.03-1

Package-Stash-0.03-EU::MM-version.patch:
 Makefile.PL |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

--- NEW FILE Package-Stash-0.03-EU::MM-version.patch ---
--- Package-Stash-0.03/Makefile.PL	2010-05-14 17:41:34.000000000 +0100
+++ Package-Stash-0.03/Makefile.PL	2010-06-14 07:48:41.809872623 +0100
@@ -4,7 +4,7 @@
 
 
 
-use ExtUtils::MakeMaker 6.31;
+use ExtUtils::MakeMaker;
 
 
 
@@ -13,7 +13,7 @@
   'AUTHOR' => 'Jesse Luehrs <doy at tozt dot net>',
   'BUILD_REQUIRES' => {},
   'CONFIGURE_REQUIRES' => {
-    'ExtUtils::MakeMaker' => '6.31'
+    'ExtUtils::MakeMaker' => '0'
   },
   'DISTNAME' => 'Package-Stash',
   'EXE_FILES' => [],
@@ -46,6 +46,9 @@
 delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
   unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
 
+delete $WriteMakefileArgs{LICENSE}
+  unless eval { ExtUtils::MakeMaker->VERSION(6.31) };
+
 WriteMakefile(%WriteMakefileArgs);
 
 

Package-Stash-0.03-old-Test::More.patch:
 001-basic.t     |    4 +---
 002-extension.t |    4 +---
 003-io.t        |    4 +---
 004-get.t       |    4 +---
 005-isa.t       |    8 +++++---
 010-synopsis.t  |    4 +---
 6 files changed, 10 insertions(+), 18 deletions(-)

--- NEW FILE Package-Stash-0.03-old-Test::More.patch ---
diff -up Package-Stash-0.03/t/001-basic.t.orig Package-Stash-0.03/t/001-basic.t
--- Package-Stash-0.03/t/001-basic.t.orig	2010-05-14 17:41:34.000000000 +0100
+++ Package-Stash-0.03/t/001-basic.t	2010-06-07 09:53:18.570100938 +0100
@@ -1,7 +1,7 @@
 use strict;
 use warnings;
 
-use Test::More;
+use Test::More tests => 93;
 use Test::Exception;
 
 use Package::Stash;
@@ -269,5 +269,3 @@ dies_ok {
     ok(!$stash->has_package_symbol('&foo'), "got \&foo");
     is($stash->get_package_symbol('foo'), *Baz::foo{IO}, "got foo");
 }
-
-done_testing;
diff -up Package-Stash-0.03/t/002-extension.t.orig Package-Stash-0.03/t/002-extension.t
--- Package-Stash-0.03/t/002-extension.t.orig	2010-05-14 17:41:34.000000000 +0100
+++ Package-Stash-0.03/t/002-extension.t	2010-06-07 09:53:18.571099744 +0100
@@ -1,7 +1,7 @@
 use strict;
 use warnings;
 
-use Test::More;
+use Test::More tests => 15;
 use Test::Exception;
 
 {
@@ -66,5 +66,3 @@ lives_ok {
 } '... created %Foo::baz successfully';
 
 ok(!defined($Foo::{baz}), '... the %baz slot has still not been created');
-
-done_testing;
diff -up Package-Stash-0.03/t/003-io.t.orig Package-Stash-0.03/t/003-io.t
--- Package-Stash-0.03/t/003-io.t.orig	2010-05-14 17:41:34.000000000 +0100
+++ Package-Stash-0.03/t/003-io.t	2010-06-07 09:53:18.575099708 +0100
@@ -1,7 +1,7 @@
 #!/usr/bin/env perl
 use strict;
 use warnings;
-use Test::More;
+use Test::More tests => 11;
 use Test::Exception;
 
 {
@@ -46,5 +46,3 @@ use Package::Stash;
     ok($stash->has_package_symbol('baz'), "has baz");
     is($stash->get_package_symbol('baz'), *Foo::foo{IO}, "got the right baz");
 }
-
-done_testing;
diff -up Package-Stash-0.03/t/004-get.t.orig Package-Stash-0.03/t/004-get.t
--- Package-Stash-0.03/t/004-get.t.orig	2010-05-14 17:41:34.000000000 +0100
+++ Package-Stash-0.03/t/004-get.t	2010-06-07 09:53:18.595164511 +0100
@@ -1,7 +1,7 @@
 #!/usr/bin/env perl
 use strict;
 use warnings;
-use Test::More;
+use Test::More tests => 4;
 
 use Package::Stash;
 
@@ -22,5 +22,3 @@ use Package::Stash;
     is_deeply($stash->get_package_symbol('@foo'), [1],
               "got the right variable");
 }
-
-done_testing;
diff -up Package-Stash-0.03/t/005-isa.t.orig Package-Stash-0.03/t/005-isa.t
--- Package-Stash-0.03/t/005-isa.t.orig	2010-05-14 17:41:34.000000000 +0100
+++ Package-Stash-0.03/t/005-isa.t	2010-06-07 09:55:14.591128547 +0100
@@ -1,7 +1,7 @@
 #!/usr/bin/env perl
 use strict;
 use warnings;
-use Test::More;
+use Test::More tests => 1;
 
 use Package::Stash;
 
@@ -16,6 +16,8 @@ use Package::Stash;
 my $stash = Package::Stash->new('Foo');
 my @ISA = ('Bar');
 @{$stash->get_package_symbol('@ISA')} = @ISA;
-isa_ok('Foo', 'Bar');
 
-done_testing;
+SKIP: {
+skip "Test::More >= 0.88 needed for isa_ok() tests on classes", 1 if $Test::More::VERSION < 0.88;
+isa_ok('Foo', 'Bar');
+}
diff -up Package-Stash-0.03/t/010-synopsis.t.orig Package-Stash-0.03/t/010-synopsis.t
--- Package-Stash-0.03/t/010-synopsis.t.orig	2010-05-14 17:41:34.000000000 +0100
+++ Package-Stash-0.03/t/010-synopsis.t	2010-06-07 09:53:18.596164680 +0100
@@ -1,7 +1,7 @@
 #!/usr/bin/env perl
 use strict;
 use warnings;
-use Test::More;
+use Test::More tests => 3;
 
 use Package::Stash;
 
@@ -14,5 +14,3 @@ $stash->add_package_symbol('%foo', {bar 
 ok(!$stash->has_package_symbol('$foo'), "doesn't have anything in scalar slot");
 my $namespace = $stash->namespace;
 is_deeply(*{ $namespace->{foo} }{HASH}, {bar => 1}, "namespace works properly");
-
-done_testing;


--- NEW FILE perl-Package-Stash.spec ---
Name:		perl-Package-Stash
Version:	0.03
Release:	1%{?dist}
Summary:	Routines for manipulating stashes
Group:		Development/Libraries
License:	GPL+ or Artistic
URL:		http://search.cpan.org/dist/Package-Stash/
Source0:	http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Package-Stash-%{version}.tar.gz
Patch0:		Package-Stash-0.03-EU::MM-version.patch
Patch1:		Package-Stash-0.03-old-Test::More.patch
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:	noarch
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
Manipulating stashes (Perl's symbol tables) is occasionally necessary, but
incredibly messy, and easy to get wrong. This module hides all of that behind
a simple API.

%prep
%setup -q -n Package-Stash-%{version}

# Don't really need ExtUtils::MakeMaker >= 6.31
%patch0 -p1

# Compatibility with Test::More < 0.88
%patch1 -p1

%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%install
rm -rf %{buildroot}
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
%{_fixperms} %{buildroot}

%check
make test RELEASE_TESTING=1

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc Changes LICENSE README
%{perl_vendorlib}/Package/
%{_mandir}/man3/Package::Stash.3pm*

%changelog
* Mon Jun  7 2010 Paul Howarth <paul at city-fan.org> - 0.03-1
- Initial RPM version


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Package-Stash/EL-4/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	14 Jun 2010 04:51:25 -0000	1.1
+++ .cvsignore	14 Jun 2010 07:05:05 -0000	1.2
@@ -0,0 +1 @@
+Package-Stash-0.03.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Package-Stash/EL-4/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	14 Jun 2010 04:51:25 -0000	1.1
+++ sources	14 Jun 2010 07:05:05 -0000	1.2
@@ -0,0 +1 @@
+ba2ef213adbab1c82244a170ad9d4475  Package-Stash-0.03.tar.gz




More information about the perl-devel mailing list