Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37841007
en ru br
ALT Linux repos
S:0.14-alt1.2
5.0: 0.03-alt1.1

Group :: Development/Perl
RPM: perl-Sub-Identify

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

#
#   - Sub::Identify -
#   This spec file was automatically generated by cpan2rpm [ver: 2.027]
#   (ALT Linux revision)
#   The following arguments were used:
#       --debug Sub::Identify
#   For more information on cpan2rpm please visit: http://perl.arix.com/
#

%define module Sub-Identify
%define m_distro Sub-Identify
%define m_name Sub::Identify
%define m_author_id unknown
%define _enable_test 1

Name: perl-Sub-Identify
Version: 0.03
Release: alt1.1

Summary: %m_name - retrieve names of code references

License: Artistic
Group: Development/Perl
Url: http://search.cpan.org/dist/Sub-Identify/

Packager: Michael Bochkaryov <misha at altlinux.ru>

BuildArch: noarch
Source: http://search.cpan.org//CPAN/authors/id/R/RG/RGARCIA/%m_distro-%version.tar.gz

# Automatically added by buildreq on Tue Jul 29 2008 (-bi)

BuildRequires: perl-Test-Pod

%description
"Sub::Identify" allows you to retrieve the real name of code references. For
this, it uses perl's introspection mechanism, provided by the "B" module.

It provides four functions : "sub_name" returns the name of the
subroutine (or "__ANON__" if it's an anonymous code reference),
"stash_name" returns its package, and "sub_fullname" returns the
concatenation of the two.

The fourth function, "get_code_info", returns a list of two elements,
the package and the subroutine name (in case of you want both and are worried
by the speed.)

In case of subroutine aliasing, those functions always return the
original name.

%prep
%setup -q -n %m_distro-%version
%build
%perl_vendor_build

%install
%perl_vendor_install

%files
%perl_vendor_privlib/*
%exclude %perl_vendor_man3dir/*
%doc Changes
%exclude %perl_vendor_archlib

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin