perl-Scalar-List-Utils/perl-Scalar-List-Utils.spec
const 33a0e690dd add missing Epoch in changelog
Signed-off-by: const <jiangchuangang@huawei.com>
(cherry picked from commit 8bd98e07601c58c196e5c4a870704ce499534a0b)
2022-10-25 19:13:11 +08:00

86 lines
2.5 KiB
RPMSpec

%define mod_name Scalar-List-Utils
Name: perl-%{mod_name}
Epoch: 4
Version: 1.60
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 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
- upgrade version to 1.60
* Mon Jun 28 2021 GuoCe <guoce@kylinos.cn> - 4:1.56-1
- Rebase to upstream version 1.56
* Mon Jul 27 2020 zhanzhimin <zhanzhimin@huawei.com> - 4:1.55-1
- 1823191 - Rebase to upstream version 1.55.
* Fri May 22 2020 openEuler Buildteam <buildteam@openeuler.org> - 4:1.52-3
- Add Epoch for updating
* 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