diff --git a/Class-C3-Adopt-NEXT-0.14.tar.gz b/Class-C3-Adopt-NEXT-0.14.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..5827674a95bb360b92c9a134c3cf1ffc364b00f1 Binary files /dev/null and b/Class-C3-Adopt-NEXT-0.14.tar.gz differ diff --git a/perl-Class-C3-Adopt-NEXT.spec b/perl-Class-C3-Adopt-NEXT.spec new file mode 100644 index 0000000000000000000000000000000000000000..729c5a0f41ad1cc158ba0bba3ee207da4ef87ee4 --- /dev/null +++ b/perl-Class-C3-Adopt-NEXT.spec @@ -0,0 +1,63 @@ +Name: perl-Class-C3-Adopt-NEXT +Version: 0.14 +Release: 1 +License: GPL+ or Artistic +Summary: Reduce one's dependency on NEXT +Source: https://cpan.metacpan.org/authors/id/E/ET/ETHER/Class-C3-Adopt-NEXT-%{version}.tar.gz +Url: https://metacpan.org/release/Class-C3-Adopt-NEXT +BuildArch: noarch +# Build +BuildRequires: make +BuildRequires: perl-interpreter +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Runtime +BuildRequires: perl(List::Util) >= 1.33 +BuildRequires: perl(MRO::Compat) +BuildRequires: perl(NEXT) +BuildRequires: perl(warnings::register) +# Tests only +BuildRequires: perl(base) +BuildRequires: perl(File::Spec) +BuildRequires: perl(lib) +BuildRequires: perl(Test::Exception) >= 0.27 +BuildRequires: perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) + +%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 NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} + +%install +%{make_install} +%{_fixperms} %{buildroot}/* + +%check +make test + +%files +%license LICENSE +%doc Changes CONTRIBUTING README +%{perl_vendorlib}/* +%{_mandir}/man3/*.3* + +%changelog +* Mon Jun 28 2021 GuoCe - 0.14-1 +- upload code and spec.