diff --git a/README.md b/README.md index 326a69a..1c238a4 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-List-MoreUtils +List::MoreUtils provides some trivial but commonly needed functionality on lists which is not going to go into List::Util. + diff --git a/perl-List-MoreUtils.spec b/perl-List-MoreUtils.spec new file mode 100644 index 0000000..2e97801 --- /dev/null +++ b/perl-List-MoreUtils.spec @@ -0,0 +1,70 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-List-MoreUtils +Version: 0.33 +Release: 1mamba +Summary: List::MoreUtils - Provide the stuff missing in List::Util +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/V/VP/VPARSEVAL/List-MoreUtils-%{version}.tar.gz +License: GPL, Artistic +Requires: perl >= %perl_major_ver +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: perl-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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 +%make test + +%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 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