%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-List-MoreUtils Version: 0.430 Release: 1mamba Summary: List::MoreUtils - Provide the stuff missing in List::Util Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://www.cpan.org/ Source: http://search.cpan.org/CPAN/authors/id/R/RE/REHSACK/List-MoreUtils-%{version}.tar.gz License: GPL, Artistic Requires: perl >= %perl_major_ver ## AUTOBUILDREQ-BEGIN BuildRequires: perl-Exporter-Tiny BuildRequires: perl-devel ## AUTOBUILDREQ-END %description List::MoreUtils provides some trivial but commonly needed functionality on lists which is not going to go into List::Util. %prep %setup -q -n List-MoreUtils-%{version} %build perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor %make %ifarch x86_64 %make test %endif %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall_perl packlist=`find %{buildroot} -name .packlist` [ -z "$packlist" ] && exit 1 || cat $packlist | \ sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ sort -u > .packlist && rm $packlist strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` for dir in `find %{buildroot} -type d | grep $strid`; do echo "%dir ${dir#%buildroot}" >> .packlist done %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" rm -f .packlist %files -f .packlist %defattr(-,root,root) %changelog * Thu Oct 06 2022 Automatic Build System 0.430-1mamba - automatic version update by autodist * Wed Nov 09 2016 Silvan Calarco 0.416-1mamba - update to 0.416 * Wed Nov 09 2016 Silvan Calarco 0.33-2mamba - rebuilt with perl 5.24 * Thu Nov 15 2012 Silvan Calarco 0.33-1mamba - update to 0.33 * Tue Nov 13 2012 Silvan Calarco 0.25_02-2mamba - perl 5.16 mass rebuild * Tue Aug 04 2009 Automatic Build System 0.25_02-1mamba - automatic update by autodist * Mon Jul 27 2009 Automatic Build System 0.24-1mamba - automatic update by autodist * Wed Nov 05 2008 Silvan Calarco 0.22-2mamba - automatic rebuild by autodist * Mon Oct 20 2008 gil 0.22-1mamba - package created by autospec