%global pkg_name Hash-Merge %global pkg_version 0.300 %global rpm_pkg_version 0.300 %global rpm_pkg_release 1.n0i.8 Summary: Merges arbitrarily deep hashes into a single hash Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: https://cpan.metacpan.org/modules/by-module/Hash/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rpm-build-reb00t-perl # >= 6.64 - but following code seems to workaround older versions too! BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Clone::Choose) >= 0.008 BuildRequires: perl(Clone) >= 0.10 BuildRequires: perl(Scalar::Util) BuildRequires: perl(Test::More) >= 0.90 %description Hash::Merge merges two arbitrarily deep hashes into a single hash. That is, at any level, it will add non-conflicting key-value pairs from one hash to the other, and follows a set of specific rules when there are key value conflicts (as outlined below). The hash is followed recursively, so that deeply nested hashes that are at the same level will be merged when the parent hashes are merged. Please note that self-referencing hashes, or recursive references, are not handled well by this method. %prep %setup -q -n %{pkg_name}-%{pkg_version} %{fix_mod} %build %{perl_build} %install %{perl_install} %files %defattr(-,root,root,-) %{perl_files} %doc Changes README.md %changelog * Mon Oct 08 2018 Marius Feraru - 0.300-1.n0i.8 - version 0.300 - BR update - URL update - drop %%cleanup * Thu May 31 2007 Marius Feraru - 0.10-1.n0i.7 - spec file (re)created using N0i::CPAN::RPMizer/1.14.8 - version 0.10 * Thu Jul 28 2005 Marius Feraru 0.07-2.n0i.6 - spec file (re)created using N0i::CPAN::RPMizer/1.01 - rebuild on perl 5.8.7 * Sun Mar 20 2005 Marius Feraru 0:0.07-1.n0i.5 - automatic rebuild (perl 5.8.6) * Sun Dec 05 2004 Marius Feraru 0:0.07-1.n0i.4 - automatic rebuild (perl 5.8.6) * Tue May 04 2004 Marius Feraru 0:0.07-1.n0i.3 - spec file (re?)created using N0i::CPAN::RPMizer/2004050401 - rebuild (perl 5.8.4) * Thu Jan 29 2004 Marius FERARU 0:0.07-0.n0i.2 - version 0.07 - spec file (re?)created using N0i::CPAN::RPMizer/2004011001 * Mon Jun 30 2003 Marius FERARU 0.07-0.n0i - Initial build.