%define upstream_name Hash-Merge-Simple %define upstream_version 0.04 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 1 Summary: Recursively merge two or more hashes, simply License: GPL+ or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{upstream_name} Source0: http://www.cpan.org/modules/by-module/Hash/%{upstream_name}-%{upstream_version}.tar.gz BuildRequires: perl(Test::Deep) BuildRequires: perl(Test::Most) BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} %description Hash::Merge::Simple will recursively merge two or more hashes and return the result as a new hash reference. The merge function will descend and merge hashes that exist under the same node in both the left and right hash, but doesn't attempt to combine arrays, objects, scalars, or anything else. The rightmost hash also takes precedence, replacing whatever was in the left hash if a conflict occurs. This code was pretty much taken straight from the Catalyst::Utils manpage, and modified to handle more than 2 hashes at the same time. %prep %setup -q -n %{upstream_name}-%{upstream_version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check make test %install rm -rf %buildroot %makeinstall_std %clean rm -rf %buildroot %files %defattr(-,root,root) %doc Changes README %{_mandir}/man3/* %perl_vendorlib/* %changelog * Fri May 29 2009 Jérôme Quelin <jquelin@mandriva.org> 0.40.0-1mdv2010.0 + Revision: 381004 - adding missing buildrequires: - import perl-Hash-Merge-Simple * Fri May 29 2009 cpan2dist 0.04-1mdv - initial mdv release, generated with cpan2dist