commit 7d2cade59a63a36469f9649d9d0bf818606331a1 Author: Marcela Mašláňová <mmaslano@xxxxxxxxxx> Date: Thu Jan 26 12:54:02 2012 +0100 the correct definition of subtypes was changed in Moose 2.030 clean specfile MooseX-Types-DateTimeX-0.10-fix_subtypes.patch | 19 +++++++++++++++++++ perl-MooseX-Types-DateTimeX.spec | 16 ++++++++-------- 2 files changed, 27 insertions(+), 8 deletions(-) --- diff --git a/MooseX-Types-DateTimeX-0.10-fix_subtypes.patch b/MooseX-Types-DateTimeX-0.10-fix_subtypes.patch new file mode 100644 index 0000000..264f55c --- /dev/null +++ b/MooseX-Types-DateTimeX-0.10-fix_subtypes.patch @@ -0,0 +1,19 @@ +diff -up MooseX-Types-DateTimeX-0.10/lib/MooseX/Types/DateTimeX.pm.old MooseX-Types-DateTimeX-0.10/lib/MooseX/Types/DateTimeX.pm +--- MooseX-Types-DateTimeX-0.10/lib/MooseX/Types/DateTimeX.pm.old 2010-09-21 17:51:35.000000000 +0200 ++++ MooseX-Types-DateTimeX-0.10/lib/MooseX/Types/DateTimeX.pm 2012-01-26 12:01:38.481463296 +0100 +@@ -15,13 +15,13 @@ our $VERSION = '0.10'; + + use MooseX::Types -declare => [qw( DateTime Duration)]; + +-subtype DateTime, as MooseX::Types::DateTime::ButMaintained::DateTime; ++subtype DateTime, as 'MooseX::Types::DateTime::ButMaintained::DateTime'; + coerce( DateTime, + @{ $MooseX::Types::DateTime::ButMaintained::coercions{DateTime} }, + from Str, via { DateTimeX::Easy->new($_) }, + ); + +-subtype Duration, as MooseX::Types::DateTime::ButMaintained::Duration; ++subtype Duration, as 'MooseX::Types::DateTime::ButMaintained::Duration'; + coerce( Duration, + @{ $MooseX::Types::DateTime::ButMaintained::coercions{"DateTime::Duration"} }, + from Str, via { diff --git a/perl-MooseX-Types-DateTimeX.spec b/perl-MooseX-Types-DateTimeX.spec index fafb36c..d6e5d22 100644 --- a/perl-MooseX-Types-DateTimeX.spec +++ b/perl-MooseX-Types-DateTimeX.spec @@ -1,12 +1,13 @@ Name: perl-MooseX-Types-DateTimeX Version: 0.10 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Extensions to MooseX::Types::DateTime::ButMaintained License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/MooseX-Types-DateTimeX/ Source0: http://www.cpan.org/authors/id/E/EC/ECARROLL/MooseX-Types-DateTimeX-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +# https://rt.cpan.org/Public/Bug/Display.html?id=73467 +Patch0: MooseX-Types-DateTimeX-0.10-fix_subtypes.patch BuildArch: noarch BuildRequires: perl(DateTimeX::Easy) >= 0.085 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42 @@ -49,14 +50,13 @@ constraints are inherited. %prep %setup -q -n MooseX-Types-DateTimeX-%{version} +%patch0 -p1 %build PERL5_CPANPLUS_IS_RUNNING=1 %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install -rm -rf $RPM_BUILD_ROOT - make pure_install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; @@ -67,16 +67,16 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %check make test -%clean -rm -rf $RPM_BUILD_ROOT - %files -%defattr(-,root,root,-) %doc Changes %{perl_vendorlib}/* %{_mandir}/man3/* %changelog +* Thu Jan 26 2012 Marcela Mašláňová <mmaslano@xxxxxxxxxx> 0.10-7 +- the correct definition of subtypes was changed in Moose 2.030 +- clean specfile + * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 0.10-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel