perl-Scalar-List-Utils/perl-Scalar-List-Utils.spec

86 lines
2.5 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:13:14 -04:00
%define mod_name Scalar-List-Utils
Name: perl-%{mod_name}
2020-05-22 20:48:58 +08:00
Epoch: 4
2021-11-18 15:43:55 +08:00
Version: 1.60
Release: 2
2019-09-30 11:13:14 -04:00
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.
2020-02-25 14:49:53 +08:00
%package_help
2019-09-30 11:13:14 -04:00
%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 Oct 25 2022 jiangchuangang <jiangchuangang@huawei.com> - 4:1.60-2
- add missing Epoch in changelog
* Thu Nov 18 2021 liudabo <liudabo1@huawei.com> - 4:1.60-1
2021-11-18 15:43:55 +08:00
- upgrade version to 1.60
* Mon Jun 28 2021 GuoCe <guoce@kylinos.cn> - 4:1.56-1
2021-06-28 16:34:39 +08:00
- Rebase to upstream version 1.56
* Mon Jul 27 2020 zhanzhimin <zhanzhimin@huawei.com> - 4:1.55-1
2020-07-27 10:49:45 +08:00
- 1823191 - Rebase to upstream version 1.55.
2020-05-22 20:48:58 +08:00
* Fri May 22 2020 openEuler Buildteam <buildteam@openeuler.org> - 4:1.52-3
- Add Epoch for updating
2020-02-25 14:49:53 +08:00
* Tue Feb 25 2020 openEuler Buildteam <buildteam@openeuler.org> - 3:1.52-2
- Revise help package
2019-09-30 11:13:14 -04:00
* Mon Sep 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 3:1.52-1
- Package init