Name: perl-Hash-StoredIterator Version: 0.008 Release: 26%{?dist} Summary: Functions for accessing a hash's internal iterator License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/Hash-StoredIterator Source0: https://cpan.metacpan.org/modules/by-module/Hash/Hash-StoredIterator-%{version}.tar.gz # Module Build BuildRequires: coreutils BuildRequires: findutils BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter >= 4:5.10.0 BuildRequires: perl(ExtUtils::CBuilder) BuildRequires: perl(ExtUtils::ParseXS) >= 3.15 BuildRequires: perl(Module::Build) >= 0.42 # Module Runtime BuildRequires: perl(B) BuildRequires: perl(base) BuildRequires: perl(Carp) BuildRequires: perl(Exporter) BuildRequires: perl(strict) BuildRequires: perl(warnings) BuildRequires: perl(XSLoader) # Test Suite BuildRequires: perl(Test2::Bundle::Extended) BuildRequires: perl(Test2::Tools::Spec) # Dependencies # (none) # Avoid provides for private shared objects %{?perl_default_filter} %description In perl all hashes have an internal iterator. This iterator is used by the each() function, as well as by keys() and values(). Because these all share use of the same iterator, they tend to interact badly with each other when nested. Hash::StoredIterator gives you access to get, set, and init the iterator inside a hash. This allows you to store the current iterator, use each / keys / values etc., and then restore the iterator, which helps you to ensure you do not interact badly with other users of the iterator. Along with low-level get / set / init functions, there are also 2 variations of each() that let you act upon each key/value pair in a safer way than vanilla each(). This module can also export new implementations of keys() and values() that stash and restore the iterator so that they are safe to use within each(). %prep %setup -q -n Hash-StoredIterator-%{version} %build perl Build.PL --installdirs=vendor --optimize="%{optflags}" ./Build %install ./Build install --destdir=%{buildroot} --create_packlist=0 find %{buildroot} -type f -name '*.bs' -empty -delete %{_fixperms} -c %{buildroot} %check ./Build test %files %license LICENSE %doc Changes README %{perl_vendorarch}/auto/Hash/ %{perl_vendorarch}/Hash/ %{_mandir}/man3/Hash::StoredIterator.3* %changelog * Thu Jan 25 2024 Fedora Release Engineering - 0.008-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 0.008-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 0.008-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 11 2023 Jitka Plesnikova - 0.008-23 - Perl 5.38 rebuild * Fri Jan 20 2023 Fedora Release Engineering - 0.008-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.008-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 01 2022 Jitka Plesnikova - 0.008-20 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.008-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0.008-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 0.008-17 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.008-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.008-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 23 2020 Jitka Plesnikova - 0.008-14 - Perl 5.32 rebuild * Thu Jan 30 2020 Fedora Release Engineering - 0.008-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Nov 7 2019 Paul Howarth - 0.008-12 - Spec tidy-up - Use author-independent source URL - Fix permissions verbosely * Fri Jul 26 2019 Fedora Release Engineering - 0.008-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 31 2019 Jitka Plesnikova - 0.008-10 - Perl 5.30 rebuild * Fri Feb 01 2019 Fedora Release Engineering - 0.008-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.008-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Jun 29 2018 Jitka Plesnikova - 0.008-7 - Perl 5.28 rebuild * Thu Feb 08 2018 Fedora Release Engineering - 0.008-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 0.008-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.008-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Jun 05 2017 Jitka Plesnikova - 0.008-3 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.008-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Aug 11 2016 Paul Howarth - 0.008-1 - Update to 0.008 - Silenced eich deprecation warnings in tests - Typo fixes (GH#3) - Added a license file - Testing using Travis and AppVeyor - No longer depending on Fennec: using Test2 instead, reducing the dependency chain - Added repository metadata (GH#4) - This release by MSCHWERN → update source URL - Classify buildreqs by usage - Simplify find command using -empty and -delete * Sun May 15 2016 Jitka Plesnikova - 0.007-9 - Perl 5.24 rebuild * Thu Feb 04 2016 Fedora Release Engineering - 0.007-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.007-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 06 2015 Jitka Plesnikova - 0.007-6 - Perl 5.22 rebuild * Thu Aug 28 2014 Jitka Plesnikova - 0.007-5 - Perl 5.20 rebuild * Sun Aug 17 2014 Fedora Release Engineering - 0.007-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.007-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 18 2013 Paul Howarth - 0.007-2 - Sanitize for Fedora submission * Thu Aug 15 2013 Paul Howarth - 0.007-1 - Initial RPM version