diff --git a/.cvsignore b/.cvsignore index e69de29..ae8e438 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Class-C3-Adopt-NEXT-0.06.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..b3e7a01 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +perl-Class-C3-Adopt-NEXT-0_06-1_fc10:HEAD:perl-Class-C3-Adopt-NEXT-0.06-1.fc10.src.rpm:1234556559 diff --git a/perl-Class-C3-Adopt-NEXT.spec b/perl-Class-C3-Adopt-NEXT.spec new file mode 100644 index 0000000..b8426e0 --- /dev/null +++ b/perl-Class-C3-Adopt-NEXT.spec @@ -0,0 +1,71 @@ +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) + diff --git a/sources b/sources index e69de29..8eb5de2 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +bff4d7a48dd6ee28f182c7ac2095d6d5 Class-C3-Adopt-NEXT-0.06.tar.gz