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..f2b79aef65b67ef3148c9f87321ce3bcbb7efe1e --- /dev/null +++ b/perl-Class-C3-Adopt-NEXT.spec @@ -0,0 +1,89 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-Class-C3-Adopt-NEXT +Version: 0.14 +Release: 1 +Summary: Make NEXT suck less +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Class-C3-Adopt-NEXT/ +Source0: http://www.cpan.org/authors/id/E/ET/ETHER/Class-C3-Adopt-NEXT-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl >= 0:5.006 +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Spec) +BuildRequires: perl(List::Util) >= 1.33 +BuildRequires: perl(Module::Build) +BuildRequires: perl(MRO::Compat) +BuildRequires: perl(strict) +BuildRequires: perl(Test::Exception) >= 0.27 +BuildRequires: perl(Test::More) +BuildRequires: perl(warnings) +Requires: perl(List::Util) >= 1.33 +Requires: perl(MRO::Compat) +Requires: perl(strict) +Requires: perl(warnings) +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 re- +dispatch methods when all you really wanted to do was run some code before +or after a method fired. +%package help +Summary : Make NEXT suck less +Provides: perl-Class-C3-Adopt-NEXT-doc +%description help +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 re- +dispatch methods when all you really wanted to do was run some code before +or after a method fired. +%prep +%setup -q -n Class-C3-Adopt-NEXT-%{version} +%build +export PERL_MM_OPT="" +%{__perl} Build.PL --installdirs=vendor +./Build + +%install +export PERL_MM_OPT="" +rm -rf $RPM_BUILD_ROOT + +./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0 +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +pushd %{buildroot} +touch filelist.lst +if [ -d usr/bin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ];then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib ];then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +popd +mv %{buildroot}/filelist.lst . +%check +./Build test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f filelist.lst +%defattr(-,root,root,-) +%doc Changes CONTRIBUTING dist.ini LICENSE META.json README +%{perl_vendorlib}/* +%files help +%{_mandir}/* + +%changelog +* Thu Jul 01 2021 Perl_Bot 0.14-1 +- Specfile autogenerated by Perl_Bot