Name: perl-Hash-Merge-Simple Version: 0.04 Release: 1%{?dist} # lib/Hash/Merge/Simple.pm -> GPL+ or Artistic License: GPL+ or Artistic Group: Development/Libraries Summary: Recursively merge two or more hashes, simply Source: http://search.cpan.org/CPAN/authors/id/R/RK/RKRIMEN/Hash-Merge-Simple-%{version}.tar.gz Url: http://search.cpan.org/dist/Hash-Merge-Simple BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42 BuildRequires: perl(Test::Deep) BuildRequires: perl(Test::More) %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 Catalyst::Utils, and modified to handle more than 2 hashes at the same time. %prep %setup -q -n Hash-Merge-Simple-%{version} perl -pi -e 's/Test::Most/Test::More/g' `find . -type f` %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf %{buildroot} make pure_install PERL_INSTALL_ROOT=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' %{_fixperms} %{buildroot}/* %check make test %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/*.3* %changelog * Thu Mar 05 2009 Chris Weyl 0.04-1 - submission * Thu Mar 05 2009 Chris Weyl 0.04-0 - initial RPM packaging - generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)