Name: perl-lexical-underscore Version: 0.004 Release: 7%{?dist} Summary: Access your caller's lexical underscore # COPYRIGHT: Public Domain # other files: GPL+ or Artistic License: (GPL+ or Artistic) and Public Domain URL: https://metacpan.org/release/lexical-underscore Source0: https://cpan.metacpan.org/authors/id/T/TO/TOBYINK/lexical-underscore-%{version}.tar.gz BuildArch: noarch BuildRequires: findutils BuildRequires: make BuildRequires: perl-interpreter BuildRequires: perl-generators BuildRequires: perl(ExtUtils::MakeMaker) >= 6.17 BuildRequires: perl(strict) # Run-time: BuildRequires: perl(:VERSION) >= 5.8 BuildRequires: perl(if) # PadWalker required only for 5.9 <= perl < 5.23.4 BuildRequires: perl(warnings) # Tests: BuildRequires: perl(Test::More) >= 0.61 Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) # PadWalker required only for 5.9 <= perl < 5.23.4 %description Starting with Perl 5.10, it is possible to create a lexical version of the Perl default variable $_. It is occasionally useful for a subroutine to be able to access its caller's $_ variable regardless of whether it was lexical or not. The "(_)" sub prototype is the official way to do so, however there are sometimes disadvantages to this. The "lexical::underscore" function returns a scalar reference to either a lexical $_ variable somewhere up the call stack (using PadWalker magic), or to the global $_ if there was no lexical version. %prep %setup -q -n lexical-underscore-%{version} %build perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install make pure_install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -delete %{_fixperms} $RPM_BUILD_ROOT/* %check make test %files %license LICENSE %doc Changes COPYRIGHT CREDITS README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Sat Feb 02 2019 Fedora Release Engineering - 0.004-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.004-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Jun 28 2018 Jitka Plesnikova - 0.004-5 - Perl 5.28 rebuild * Fri Feb 09 2018 Fedora Release Engineering - 0.004-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.004-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun Jun 04 2017 Jitka Plesnikova - 0.004-2 - Perl 5.26 rebuild * Fri Mar 03 2017 Petr Pisar - 0.004-1 - 0.004 bump - License changed to ((GPL+ or Artistic) and Public Domain) * Sat Feb 11 2017 Fedora Release Engineering - 0.003-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Jun 23 2016 Petr Pisar 0.003-1 - Specfile autogenerated by cpanspec 1.78.