[perl-Perl6-Caller] Initial import (perl-Perl6-Caller-0.100-2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 9588ef99c2505a00c4a56934d92efd58fc416b71
Author: Paul Howarth <paul@xxxxxxxxxxxx>
Date:   Thu Aug 22 14:44:40 2013 +0100

    Initial import (perl-Perl6-Caller-0.100-2)
    
    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.

 .gitignore             |    1 +
 perl-Perl6-Caller.spec |   70 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 3 files changed, 72 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5fa195f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Perl6-Caller-[0-9.]*.tar.gz
diff --git a/perl-Perl6-Caller.spec b/perl-Perl6-Caller.spec
new file mode 100644
index 0000000..70fc926
--- /dev/null
+++ b/perl-Perl6-Caller.spec
@@ -0,0 +1,70 @@
+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@xxxxxxxxxxxx> - 0.100-2
+- Sanitize for Fedora submission
+
+* Fri Aug 16 2013 Paul Howarth <paul@xxxxxxxxxxxx> - 0.100-1
+- Initial RPM version
diff --git a/sources b/sources
index e69de29..14bad16 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d19ce32a9b7f7dfbb59aff7e38d476b9  Perl6-Caller-0.100.tar.gz
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel





[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux