Name: perl-autovivification Version: 0.18 Release: 18%{?dist} Summary: Lexically disable autovivification License: GPL+ or Artistic URL: https://metacpan.org/release/autovivification Source0: https://cpan.metacpan.org/authors/id/V/VP/VPIT/autovivification-%{version}.tar.gz # Build BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc BuildRequires: make BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(Config) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(strict) BuildRequires: perl(warnings) # Runtime BuildRequires: perl(XSLoader) # Tests only # Scalar::Util is preferred over B # XXX: BuildRequires: perl(B) BuildRequires: perl(Exporter) BuildRequires: perl(File::Spec) BuildRequires: perl(lib) BuildRequires: perl(POSIX) BuildRequires: perl(Scalar::Util) BuildRequires: perl(Test::More) BuildRequires: perl(threads) BuildRequires: perl(threads::shared) BuildRequires: perl(Time::HiRes) # Runtime dependencies Requires: perl(XSLoader) # Avoid provides from perl shared objects %{?perl_default_filter} %description When an undefined variable is dereferenced, it gets silently upgraded to an array or hash reference (depending of the type of the dereferencing). This behavior is called autovivification and usually does what you mean (e.g. when you store a value) but it's sometimes unnatural or surprising because your variables gets populated behind your back. This is especially true when several levels of dereferencing are involved, in which case all levels are vivified up to the last, or when it happens in intuitively read-only constructs like exists. %prep %setup -q -n autovivification-%{version} %build perl Makefile.PL \ INSTALLDIRS=vendor \ OPTIMIZE="%{optflags}" \ NO_PACKLIST=1 \ NO_PERLLOCAL=1 %{make_build} %install %{make_install} find %{buildroot} -type f -name '*.bs' -empty -delete %{_fixperms} -c %{buildroot} %check make test %files %doc Changes README %{perl_vendorarch}/autovivification.pm %{perl_vendorarch}/auto/autovivification/ %{_mandir}/man3/autovivification.3* %changelog * Fri Jan 20 2023 Fedora Release Engineering - 0.18-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.18-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon May 30 2022 Jitka Plesnikova - 0.18-16 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.18-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.18-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 0.18-13 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.18-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.18-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jun 22 2020 Jitka Plesnikova - 0.18-10 - Perl 5.32 rebuild * Thu Jan 30 2020 Fedora Release Engineering - 0.18-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Nov 7 2019 Paul Howarth - 0.18-8 - Use %%{make_build} and %%{make_install} * Fri Jul 26 2019 Fedora Release Engineering - 0.18-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu May 30 2019 Jitka Plesnikova - 0.18-6 - Perl 5.30 rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.18-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.18-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Jun 28 2018 Jitka Plesnikova - 0.18-3 - Perl 5.28 rebuild * Fri Feb 09 2018 Fedora Release Engineering - 0.18-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Nov 6 2017 Paul Howarth - 0.18-1 - Update to 0.18 - Fix compatibility with CV-in-stash optimization (CPAN RT#123411) - Fix strict/warn flags seeming to do nothing (CPAN RT#122956); the documentation has been amended to clarify how these two options are supposed to be used * Tue Aug 1 2017 Paul Howarth - 0.17-1 - Update to 0.17 - A large chunk of boilerplate XS code, which is also used in other XS modules, has been factored out of the main .xs file to a collection of .h files in the xsh subdirectory - The new optimization in perl 5.27.3 for scalar(keys(%%$hashref)) is now correctly supported * Thu Jul 27 2017 Fedora Release Engineering - 0.16-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun Jun 04 2017 Jitka Plesnikova - 0.16-6 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.16-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun May 15 2016 Jitka Plesnikova - 0.16-4 - Perl 5.24 rebuild * Thu Apr 21 2016 Paul Howarth - 0.16-3 - Fix FTBFS due to missing buildreq perl-devel - Simplify find command using -empty and -delete - Drop redundant Group: tag - Make %%files list more explicit * Thu Feb 04 2016 Fedora Release Engineering - 0.16-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jul 09 2015 Petr Šabata - 0.16-1 - 0.16 bump * Thu Jun 18 2015 Fedora Release Engineering - 0.15-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Jun 05 2015 Jitka Plesnikova - 0.15-2 - Perl 5.22 rebuild * Fri May 15 2015 Jitka Plesnikova - 0.15-1 - 0.15 bump * Wed Nov 12 2014 Petr Šabata - 0.14-1 - 0.14 bump * Fri Aug 29 2014 Jitka Plesnikova - 0.11-6 - Perl 5.20 rebuild * Sun Aug 17 2014 Fedora Release Engineering - 0.11-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.11-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 0.11-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Tue Jul 30 2013 Petr Pisar - 0.11-2 - Perl 5.18 rebuild * Fri Feb 15 2013 Iain Arnell 0.11-1 - update to latest upstream version * Thu Feb 14 2013 Fedora Release Engineering - 0.10-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Fedora Release Engineering - 0.10-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jun 23 2012 Petr Pisar - 0.10-3 - Perl 5.16 rebuild * Sat Jan 14 2012 Fedora Release Engineering - 0.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Sun Aug 28 2011 Iain Arnell 0.10-1 - update to latest upstream version * Thu Aug 11 2011 Iain Arnell 0.09-1 - Specfile autogenerated by cpanspec 1.78.