diff --git a/Scalar-List-Utils-1.60.tar.gz b/Scalar-List-Utils-1.60.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..ab39d83e2701ba5deebd547ab45bb7d95ad4833d Binary files /dev/null and b/Scalar-List-Utils-1.60.tar.gz differ diff --git a/perl-Scalar-List-Utils.spec b/perl-Scalar-List-Utils.spec new file mode 100644 index 0000000000000000000000000000000000000000..e39fcdf4a4c541d3a5bdc4b55259c4f13a6ce68d --- /dev/null +++ b/perl-Scalar-List-Utils.spec @@ -0,0 +1,83 @@ +%define anolis_release 1 + +Name: perl-Scalar-List-Utils +Epoch: 5 +Version: 1.60 +Release: %{anolis_release}%{?dist} +Summary: A selection of general-utility scalar and list subroutines +License: GPL+ or Artistic +URL: https://metacpan.org/release/Scalar-List-Utils +Source0: https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Scalar-List-Utils-%{version}.tar.gz +# Build +BuildRequires: findutils +BuildRequires: gcc +BuildRequires: make +BuildRequires: perl-interpreter +BuildRequires: perl-devel +BuildRequires: perl-generators +BuildRequires: perl-srpm-macros +BuildRequires: perl(Config) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(File::Spec) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Runtime +BuildRequires: perl(Carp) +BuildRequires: perl(Exporter) +BuildRequires: perl(XSLoader) +# Tests only +BuildRequires: perl(B::Deparse) +BuildRequires: perl(base) +BuildRequires: perl(constant) +BuildRequires: perl(IO::File) +BuildRequires: perl(IO::Handle) +BuildRequires: perl(List::Util) +BuildRequires: perl(Math::BigInt) +BuildRequires: perl(overload) +BuildRequires: perl(Symbol) +BuildRequires: perl(Sub::Util) +BuildRequires: perl(Test::More) +BuildRequires: perl(threads) +BuildRequires: perl(threads::shared) +BuildRequires: perl(Tie::Handle) +BuildRequires: perl(Tie::Scalar) +BuildRequires: perl(Tie::StdScalar) +BuildRequires: perl(vars) +Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) +Requires: perl(Carp) + +%{?perl_default_filter} + +%description +This package contains a selection of subroutines that people have expressed +would be nice to have in the perl core, but the usage would not really be +high enough to warrant the use of a keyword, and the size so small such +that being individual extensions would be wasteful. + +%prep +%setup -q -n Scalar-List-Utils-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} + +%install +%{make_install} +find %{buildroot} -type f -name '*.bs' -size 0 -delete +%{_fixperms} %{buildroot}/* + +%check +make test + +%files +%doc Changes README +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/List* +%{perl_vendorarch}/Scalar* +%{perl_vendorarch}/Sub* +%{_mandir}/man3/* + +%changelog +* Wed Mar 09 2022 Hongwei Qin - 5:1.60-1 +- Rebase to upstream version 1.60. +- Init for Anolis OS 23