11 Star 0 Fork 4

src-openEuler / perl-List-MoreUtils

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
perl-List-MoreUtils.spec 2.29 KB
一键复制 编辑 原始数据 按行查看 历史
Name: perl-List-MoreUtils
Version: 0.430
Release: 2
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
* Tue Oct 25 2022 wangjiang <wangjiang37@h-partners.com> - 0.430-2
- Rebuild for next release
* Fri Jan 29 2021 yuanxin <yuanxin24@huawei.com> - 0.430-1
- upgrade version to 0.430
* Wed Sep 11 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.428-5
- Package init
1
https://gitee.com/src-openeuler/perl-List-MoreUtils.git
git@gitee.com:src-openeuler/perl-List-MoreUtils.git
src-openeuler
perl-List-MoreUtils
perl-List-MoreUtils
openEuler-22.03-LTS

搜索帮助