From 6e692987bced38ba8e1d12dca2dfd7a163c4bb03 Mon Sep 17 00:00:00 2001 From: Chris Weyl Date: Fri, 4 May 2007 16:21:07 +0000 Subject: [PATCH] - update to 0.21 Tue May 01 2007 Chris Weyl 0.20-2 - add t/ to %%doc - add br for optional test #7 --- .cvsignore | 2 +- perl-Moose.spec | 34 +++++++++++++++++++++++++++------- sources | 2 +- 3 files changed, 29 insertions(+), 9 deletions(-) diff --git a/.cvsignore b/.cvsignore index abc56e4..77e2b6c 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -Moose-0.20.tar.gz +Moose-0.21.tar.gz diff --git a/perl-Moose.spec b/perl-Moose.spec index 6d1e5fa..4535af7 100644 --- a/perl-Moose.spec +++ b/perl-Moose.spec @@ -1,5 +1,5 @@ Name: perl-Moose -Version: 0.20 +Version: 0.21 Release: 1%{?dist} Summary: Complete modern object system for Perl 5 License: GPL or Artistic @@ -8,8 +8,12 @@ URL: http://search.cpan.org/dist/Moose/ Source0: http://www.cpan.org/authors/id/S/ST/STEVAN/Moose-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) -BuildRequires: perl, perl(Module::Build) +# core +BuildRequires: perl(Test::More) +# cpan +BuildRequires: perl(Module::Build) BuildRequires: perl(Class::MOP) >= 0.36 BuildRequires: perl(Sub::Exporter) >= 0.954 BuildRequires: perl(Sub::Install) >= 0.92 @@ -26,16 +30,15 @@ BuildRequires: perl(HTTP::Headers), perl(Params::Coerce), perl(URI) # commented out as Locale::US's license is ambiguous at the moment, precluding # packaging it. #BuildRequires: perl(Regexp::Common), perl(Locale::US) -# optional test #5 (yes, I know IO::File is core) +# optional test #5 BuildRequires: perl(IO::File), perl(IO::String) # optional test #6 BuildRequires: perl(Test::Deep) -# optional test #7 -- not yet in Fedora -#BuildRequires: perl(Declare::Constraints::Simple) +# optional test #7 +BuildRequires: perl(Declare::Constraints::Simple) # optional test #8 (as of 0.20) BuildRequires: perl(Module::Refresh) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description Moose is an extension of the Perl 5 object system. @@ -61,6 +64,16 @@ Perl 6 OO. So instead of switching to Ruby, I wrote Moose :) %{__perl} Build.PL installdirs=vendor ./Build +# Filter unwanted Provides: +cat << \EOF > %{name}-prov +#!/bin/sh +%{__perl_provides} $* |\ + sed -e '/perl(MyMoose.*)/d; /perl(Bar)/d; /perl(Foo)/d' +EOF + +%define __perl_provides %{_builddir}/Moose-%{version}/%{name}-prov +chmod +x %{__perl_provides} + %install rm -rf %{buildroot} @@ -77,11 +90,18 @@ rm -rf %{buildroot} %files %defattr(-,root,root,-) -%doc Changes README +%doc Changes README t/ %{perl_vendorlib}/* %{_mandir}/man3/* %changelog +* Fri May 04 2007 Chris Weyl 0.21-1 +- update to 0.21 + +* Tue May 01 2007 Chris Weyl 0.20-2 +- add t/ to %%doc +- add br for optional test #7 + * Sat Apr 07 2007 Chris Weyl 0.20-1 - update to 0.20 - add additional BR's for new optional tests diff --git a/sources b/sources index 28597e8..94e6e64 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -6ef1bc5d57103188a3789fbba5bc7b8c Moose-0.20.tar.gz +5934e2fe4a7bb988ea28b083c8a57638 Moose-0.21.tar.gz