Name: perl-lexical-underscore Version: 0.004 Release: 1%{?dist} Summary: Access your caller's lexical underscore # COPYRIGHT: Public Domain # other files: GPL+ or Artistic License: (GPL+ or Artistic) and Public Domain Group: Development/Libraries URL: http://search.cpan.org/dist/lexical-underscore/ Source0: http://www.cpan.org/authors/id/T/TO/TOBYINK/lexical-underscore-%{version}.tar.gz BuildArch: noarch BuildRequires: findutils BuildRequires: make BuildRequires: perl 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 * 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.