Name: perl-Class-C3-Adopt-NEXT Version: 0.06 Release: 1%{?dist} # lib/Class/C3/Adopt/NEXT.pm -> GPL+ or Artistic License: GPL+ or Artistic Group: Development/Libraries Summary: Reduce one's dependency on NEXT Source: http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/Class-C3-Adopt-NEXT-%{version}.tar.gz Url: http://search.cpan.org/dist/Class-C3-Adopt-NEXT BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42 BuildRequires: perl(MRO::Compat) BuildRequires: perl(NEXT) # test BuildRequires: perl(Test::More) BuildRequires: perl(Test::Exception) %description NEXT was a good solution a few years ago, but isn't any more. It's slow, and the order in which it re-dispatches methods appears random at times. It also encourages bad programming practices, as you end up with code to redispatch methods when all you really wanted to do was run some code before or after a method fired. However, if you have a large application, then weaning yourself off 'NEXT' isn't easy.This module is intended as a drop-in replacement for NEXT, supporting the same interface, but using Class::C3 to do the hard work. You can then write new code without 'NEXT', and migrate individual source files to use 'Class::C3' or method modifiers as appropriate, at whatever pace you're comfortable with. %prep %setup -q -n Class-C3-Adopt-NEXT-%{version} %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 %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/*.3* %changelog * Tue Feb 10 2009 Chris Weyl 0.06-1 - brush up for submission * Tue Feb 10 2009 Chris Weyl 0.06-0 - initial RPM packaging - generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)