perl-Scalar-List-Utils/perl-Scalar-List-Utils.spec
2020-02-25 14:49:53 +08:00

71 lines
2.0 KiB
RPMSpec

%define mod_name Scalar-List-Utils
Name: perl-%{mod_name}
Epoch: 3
Version: 1.52
Release: 2
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
%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
* Tue Feb 25 2020 openEuler Buildteam <buildteam@openeuler.org> - 3:1.52-2
- Revise help package
* Mon Sep 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 3:1.52-1
- Package init