From cfd93623e7d60df7ad5d88a9e9ad4229d8f99004 Mon Sep 17 00:00:00 2001 From: Chris Weyl Date: Mon, 15 Oct 2007 04:47:41 +0000 Subject: [PATCH] - udpate to 0.26 Sat Aug 11 2007 Chris Weyl 0.24-1 - update to 0.24 - license tag: GPL -> GPL+ - patch t/202_...t to write to a tmpdir rather than . --- .cvsignore | 2 +- perl-Moose.spec | 30 ++++++++++++++++++++++-------- sources | 2 +- t202_tmpfile.patch | 38 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 62 insertions(+), 10 deletions(-) create mode 100644 t202_tmpfile.patch diff --git a/.cvsignore b/.cvsignore index 41af0d2..6f6747f 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -Moose-0.22.tar.gz +Moose-0.26.tar.gz diff --git a/perl-Moose.spec b/perl-Moose.spec index 81b304f..1546a29 100644 --- a/perl-Moose.spec +++ b/perl-Moose.spec @@ -1,8 +1,8 @@ Name: perl-Moose -Version: 0.22 +Version: 0.26 Release: 1%{?dist} Summary: Complete modern object system for Perl 5 -License: GPL or Artistic +License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Moose/ Source0: http://www.cpan.org/authors/id/S/ST/STEVAN/Moose-%{version}.tar.gz @@ -10,14 +10,17 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +# write temp db to tmpdir rather than . +Patch: t202_tmpfile.patch + # core -BuildRequires: perl(Test::More) +BuildRequires: perl(Test::More) >= 0.62 +BuildRequires: perl(ExtUtils::MakeMaker) # cpan -BuildRequires: perl(Module::Build) -BuildRequires: perl(Class::MOP) >= 0.36 -BuildRequires: perl(Sub::Exporter) >= 0.954 -BuildRequires: perl(Sub::Install) >= 0.92 -BuildRequires: perl(Test::Exception) >= 0.21 +BuildRequires: perl(Class::MOP) >= 0.39 +BuildRequires: perl(Sub::Exporter) >= 0.954 +BuildRequires: perl(Sub::Install) >= 0.92 +BuildRequires: perl(Test::Exception) >= 0.21 BuildRequires: perl(Test::LongString) BuildRequires: perl(UNIVERSAL::require) >= 0.10 # optional test #1 (in no particular order) @@ -60,6 +63,9 @@ Perl 6 OO. So instead of switching to Ruby, I wrote Moose :) %prep %setup -q -n Moose-%{version} +# test patches +%patch + %build %{__perl} Build.PL installdirs=vendor ./Build @@ -97,6 +103,14 @@ rm -rf %{buildroot} %{_mandir}/man3/* %changelog +* Sun Oct 14 2007 Chris Weyl 0.26-1 +- udpate to 0.26 + +* Sat Aug 11 2007 Chris Weyl 0.24-1 +- update to 0.24 +- license tag: GPL -> GPL+ +- patch t/202_...t to write to a tmpdir rather than . + * Thu May 31 2007 Chris Weyl 0.22-1 - update to 0.22 diff --git a/sources b/sources index 2596837..0cf2d86 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -cc0b951659e9669a81a0e675b5618cb1 Moose-0.22.tar.gz +3356b452daf2ea887b13c0899bbb6fd7 Moose-0.26.tar.gz diff --git a/t202_tmpfile.patch b/t202_tmpfile.patch new file mode 100644 index 0000000..9386dd1 --- /dev/null +++ b/t202_tmpfile.patch @@ -0,0 +1,38 @@ +--- t/200_examples/002_example_Moose_POOP.t.orig 2007-08-11 09:35:55.683687891 -0700 ++++ t/200_examples/002_example_Moose_POOP.t 2007-08-11 09:36:25.010424972 -0700 +@@ -37,14 +37,18 @@ + use Moose; + + use DBM::Deep; ++ use File::Temp qw{ tempfile }; ++ use File::Spec::Functions qw{ tmpdir }; + + extends 'Moose::Meta::Instance'; + + { + my %INSTANCE_COUNTERS; ++ ++ my (undef, $filename) = tempfile 't_202_XXXXXXX', DIR => tmpdir; + + my $db = DBM::Deep->new({ +- file => "newswriter.db", ++ file => $filename, + autobless => 1, + locking => 1, + }); +@@ -54,7 +58,7 @@ + #warn Dumper $db; + $db = undef; + $db = DBM::Deep->new({ +- file => "newswriter.db", ++ file => $filename, + autobless => 1, + locking => 1, + }); +@@ -431,4 +435,4 @@ + + } + +-unlink('newswriter.db') if -e 'newswriter.db'; +\ No newline at end of file ++