diff --git a/Hash-Merge-Simple-0.051.tar.gz b/Hash-Merge-Simple-0.051.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..e858dfe315ee26c519f43c876f7992bdce93889c Binary files /dev/null and b/Hash-Merge-Simple-0.051.tar.gz differ diff --git a/perl-Hash-Merge-Simple.spec b/perl-Hash-Merge-Simple.spec new file mode 100644 index 0000000000000000000000000000000000000000..1866843856264b3dba1e0307c3e8d03145d51162 --- /dev/null +++ b/perl-Hash-Merge-Simple.spec @@ -0,0 +1,61 @@ +Name: perl-Hash-Merge-Simple +Version: 0.051 +Release: 15%{?dist} +License: GPL+ or Artistic +Summary: Recursively merge two or more hashes, simply +URL: https://metacpan.org/release/Hash-Merge-Simple +Source: https://cpan.metacpan.org/modules/by-module/Hash/Hash-Merge-Simple-%{version}.tar.gz +BuildArch: noarch +# Build +BuildRequires: coreutils +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Runtime +BuildRequires: perl(Clone) +BuildRequires: perl(Exporter) +BuildRequires: perl(Storable) +BuildRequires: perl(vars) +# Tests only +BuildRequires: perl(Test::Deep) +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Most) +Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) +Requires: perl(Clone) +Requires: perl(Exporter) + +%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} + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} + +%install +%{make_install} +%{_fixperms} -c %{buildroot} + +%check +make test + +%files +%doc Changes README +%{perl_vendorlib}/Hash/ +%{_mandir}/man3/Hash::Merge::Simple.3* + +%changelog +* Thu Mar 27 2025 wangkaiqiang - 0.051-15 +- init to 0.051