commit 7e671a1b0147d7c7fd3ff7f2e1675ce3011ba0e0 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:12:40 2019 -0400 Package init diff --git a/List-MoreUtils-0.428.tar.gz b/List-MoreUtils-0.428.tar.gz new file mode 100644 index 0000000..f5f371f Binary files /dev/null and b/List-MoreUtils-0.428.tar.gz differ diff --git a/perl-List-MoreUtils.spec b/perl-List-MoreUtils.spec new file mode 100644 index 0000000..4c304a8 --- /dev/null +++ b/perl-List-MoreUtils.spec @@ -0,0 +1,56 @@ +Name: perl-List-MoreUtils +Version: 0.428 +Release: 5 +Summary: Provide the stuff missing in List::Util +License: (GPL+ or Artistic) and ASL 2.0 +URL: https://metacpan.org/release/List-MoreUtils +Source0: https://cpan.metacpan.org/authors/id/R/RE/REHSACK/List-MoreUtils-%{version}.tar.gz +BuildArch: noarch +#For Build +BuildRequires: coreutils findutils make perl-generators perl-interpreter perl(base) perl(Config) +BuildRequires: perl(constant) perl(ExtUtils::MakeMaker) >= 6.75 perl(File::Basename) perl(File::Spec) +BuildRequires: perl(File::Temp) perl(IO::File) perl(IO::Handle) perl(lib) perl(PerlIO) perl(Scalar::Util) perl(Text::ParseWords) +# For Runtime +BuildRequires: perl(Carp) perl(Exporter::Tiny) >= 0.038 perl(List::MoreUtils::XS) >= 0.426 perl(strict) perl(vars) perl(warnings) +#For Test +BuildRequires: perl(Exporter) perl(List::Util) perl(Math::Trig) perl(overload) perl(Storable) perl(Test::Builder::Module) perl(Test::More) >= 0.96 perl(Tie::Array) + +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(Carp) +Requires: perl(List::MoreUtils::XS) >= 0.426 + +%description +List::MoreUtils provides some trivial but commonly needed functionality on lists which is not going to go into List::Util. +All of the below functions are implementable in only a couple of lines of Perl code. +Using the functions from this module however should give slightly better performance as everything is implemented in C. +The pure-Perl implementation of these functions only serves as a fallback in case the C portions of this module couldn't be compiled on this machine. + +%package_help + +%prep +%autosetup -n List-MoreUtils-%{version} -p1 + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1 +%make_build + +%install +make install DESTDIR=%{buildroot} +%{_fixperms} -c %{buildroot} + +%check +make test + +%files +%license ARTISTIC-1.0 GPL-1 LICENSE +%doc Changes README.md +%{perl_vendorlib}/List/ + +%files help +%{_mandir}/man3/List::MoreUtils.3* +%{_mandir}/man3/List::MoreUtils::Contributing.3* +%{_mandir}/man3/List::MoreUtils::PP.3* + +%changelog +* Wed Sep 11 2019 openEuler Buildteam - 0.428-5 +- Package init