commit a548548a92270d1fd99aa2fbeed1d27741d67cc4 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:13:14 2019 -0400 Package init diff --git a/Scalar-List-Utils-1.52.tar.gz b/Scalar-List-Utils-1.52.tar.gz new file mode 100644 index 0000000..7a2a193 Binary files /dev/null and b/Scalar-List-Utils-1.52.tar.gz differ diff --git a/perl-Scalar-List-Utils.spec b/perl-Scalar-List-Utils.spec new file mode 100644 index 0000000..54c36fc --- /dev/null +++ b/perl-Scalar-List-Utils.spec @@ -0,0 +1,73 @@ +%define mod_name Scalar-List-Utils + +Name: perl-%{mod_name} +Epoch: 3 +Version: 1.52 +Release: 1 +Summary: Common Scalar and List utility subroutines +License: GPL+ or Artistic +URL: https://metacpan.org/release/Scalar-List-Utils +Source0: https://cpan.metacpan.org/authors/id/P/PE/PEVANS/%{mod_name}-%{version}.tar.gz + +BuildRequires: findutils, gcc, make, perl-interpreter, perl-devel, perl-generators +BuildRequires: perl(Config), perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(File::Spec), perl(strict), perl(warnings) +BuildRequires: perl(Carp), perl(Exporter), perl(XSLoader) +BuildRequires: perl(B::Deparse), perl(base), perl(constant), perl(IO::File) +BuildRequires: perl(IO::Handle), perl(List::Util), perl(Math::BigInt) +BuildRequires: perl(overload), perl(Symbol), perl(Sub::Util), perl(Test::More) +BuildRequires: perl(threads), perl(threads::shared), perl(Tie::Handle) +BuildRequires: perl(Tie::Scalar), perl(Tie::StdScalar), perl(vars) +Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) +Requires: perl(Carp) + +%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. + +%package help +Summary: Help files for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description help +This package contains user documentation for %{name}. + +%prep +%autosetup -n %{mod_name}-%{version} -p1 + +%build +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1 +%make_build + +%install +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name '*.bs' -size 0 | xargs rm -f +%{_fixperms} %{buildroot}/* + +%check +make test + +%pre + +%preun + +%post + +%postun + +%files +%doc Changes README +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/List* +%{perl_vendorarch}/Scalar* +%{perl_vendorarch}/Sub* + +%files help +%{_mandir}/man*/* + +%changelog +* Mon Sep 16 2019 openEuler Buildteam - 3:1.52-1 +- Package init