Name: perl-Perl6-Caller Version: 0.100 Release: 2%{?dist} Summary: OO caller() interface License: GPL+ or Artistic Group: Development/Libraries URL: https://metacpan.org/release/Perl6-Caller Source0: http://cpan.metacpan.org/authors/id/O/OV/OVID/Perl6-Caller-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) BuildArch: noarch BuildRequires: perl(lib) BuildRequires: perl(Module::Build) BuildRequires: perl(overload) BuildRequires: perl(strict) BuildRequires: perl(Test::More) BuildRequires: perl(Test::Pod) >= 1.14 BuildRequires: perl(Test::Pod::Coverage) >= 1.04 BuildRequires: perl(warnings) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description By default, this module exports the caller function. This automatically returns a new caller object. An optional argument specifies how many stack frames back to skip, just like the CORE::caller function. This lets you do things like this: print "In ", caller->subroutine, " called from ", caller->filename, " line ", caller->line; If you do not wish the caller function imported, specify an empty import list and instantiate a new Perl6::Caller object. use Perl6::Caller (); my $caller = Perl6::Caller->new; print $caller->line; Note: if the results from the module seem strange, please read perldoc -s caller carefully. It has stranger behavior than you might be aware. %prep %setup -q -n Perl6-Caller-%{version} %build perl Build.PL installdirs=vendor ./Build %install rm -rf %{buildroot} ./Build install destdir=%{buildroot} create_packlist=0 %{_fixperms} %{buildroot} %check ./Build test ./Build test --test_files="xt/*.t" %clean rm -rf %{buildroot} %files %doc Changes README %{perl_vendorlib}/Perl6/ %{_mandir}/man3/Perl6::Caller.3pm* %changelog * Mon Aug 19 2013 Paul Howarth <paul@city-fan.org> - 0.100-2 - Sanitize for Fedora submission * Fri Aug 16 2013 Paul Howarth <paul@city-fan.org> - 0.100-1 - Initial RPM version