109 lines
2.9 KiB
RPMSpec
109 lines
2.9 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
|
|
Name: perl-List-SomeUtils
|
|
Version: 0.59
|
|
Release: 1
|
|
Summary: Provide the stuff missing in List::Util
|
|
License: GPL+ or Artistic
|
|
URL: https://metacpan.org/release/List-SomeUtils
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/List-SomeUtils-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
BuildRequires: coreutils
|
|
BuildRequires: make
|
|
BuildRequires: perl-generators
|
|
BuildRequires: perl-interpreter
|
|
BuildRequires: perl(ExtUtils::HasCompiler) >= 0.014
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
BuildRequires: perl(lib)
|
|
BuildRequires: perl(strict)
|
|
BuildRequires: perl(Text::ParseWords)
|
|
BuildRequires: perl(warnings)
|
|
BuildRequires: sed
|
|
BuildRequires: perl(Carp)
|
|
BuildRequires: perl(Exporter)
|
|
BuildRequires: perl(List::Util)
|
|
BuildRequires: perl(Module::Implementation)
|
|
BuildRequires: perl(vars)
|
|
BuildRequires: perl(base)
|
|
BuildRequires: perl(Config)
|
|
BuildRequires: perl(File::Spec)
|
|
BuildRequires: perl(overload)
|
|
BuildRequires: perl(Scalar::Util)
|
|
BuildRequires: perl(Storable)
|
|
BuildRequires: perl(Test::Builder::Module)
|
|
BuildRequires: perl(Test::LeakTrace)
|
|
BuildRequires: perl(Test::More) >= 0.96
|
|
BuildRequires: perl(Tie::Array)
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
Requires: perl(Carp)
|
|
|
|
%description
|
|
List::SomeUtils provides some trivial but commonly needed functionality on
|
|
lists which is not going to go into List::Util.
|
|
|
|
%package help
|
|
Summary: Provide the stuff missing in List::Util
|
|
Provides: perl-List-SomeUtils-doc
|
|
|
|
%description help
|
|
List::SomeUtils provides some trivial but commonly needed functionality on
|
|
lists which is not going to go into List::Util.
|
|
|
|
%prep
|
|
%setup -q -n List-SomeUtils-%{version}
|
|
|
|
%build
|
|
export PERL_MM_OPT=""
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
export PERL_MM_OPT=""
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
pushd %{buildroot}
|
|
touch filelist.lst
|
|
if [ -d usr/bin ];then
|
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
fi
|
|
if [ -d usr/sbin ];then
|
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
fi
|
|
if [ -d usr/lib64 ];then
|
|
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
|
fi
|
|
if [ -d usr/lib ];then
|
|
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
|
fi
|
|
popd
|
|
mv %{buildroot}/filelist.lst .
|
|
|
|
%check
|
|
make test
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%license LICENSE
|
|
%doc Changes CODE_OF_CONDUCT.md CONTRIBUTING.md cpanfile dist.ini META.json perlcriticrc perltidyrc README.md
|
|
%{perl_vendorlib}/*
|
|
|
|
%files help
|
|
%{_mandir}/*
|
|
|
|
%changelog
|
|
* Sat Sep 09 2023 yaoxin <yao_xin001@hoperun.com> - 0.59-1
|
|
- Update to 0.59
|
|
|
|
* Thu Jun 30 2022 misaka00251 <misaka00251@misakanet.cn> - 0.58-1
|
|
- Init package
|