2009-12-02 11:57:03 +01:00
|
|
|
# Copyright (c) 2009 Novell
|
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://www.suse.de/feedback/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: perl-PadWalker
|
2010-08-05 00:58:52 +02:00
|
|
|
Version: 1.92
|
2009-12-02 11:57:03 +01:00
|
|
|
Release: 1
|
|
|
|
%define cpan_name PadWalker
|
|
|
|
Provides: %cpan_name
|
|
|
|
Requires: perl = %{perl_version}
|
|
|
|
Autoreqprov: on
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
License: Artistic License, GPL, see package
|
|
|
|
URL: http://search.cpan.org/~robin/PadWalker-1.9/PadWalker.pm
|
|
|
|
Summary: Play with other peoples' lexical variables
|
|
|
|
Source0: %{cpan_name}-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
2010-10-19 10:46:54 +02:00
|
|
|
BuildRequires: perl
|
2009-12-02 11:57:03 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
PadWalker is a module which allows you to inspect (and even change!)
|
|
|
|
lexical variables in any subroutine which called you. It will only show
|
|
|
|
those variables which are in scope at the point of the call.
|
|
|
|
|
|
|
|
PadWalker is particularly useful for debugging. It's even used by Perl's
|
|
|
|
built-in debugger. (It can also be used for evil, of course.)
|
|
|
|
|
|
|
|
I wouldn't recommend using PadWalker directly in production code, but it's
|
|
|
|
your call. Some of the modules that use PadWalker internally are certainly
|
|
|
|
safe for and useful in production.
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
Robin Houston <robin@cpan.org>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %cpan_name-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL
|
|
|
|
make
|
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%__rm -f %{buildroot}%{perl_vendorarch}/auto/PadWalker/.packlist
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc Changes README
|
|
|
|
%doc %{_mandir}/man3/*
|
|
|
|
%dir %{perl_vendorarch}/auto/PadWalker/
|
|
|
|
%{perl_vendorarch}/auto/PadWalker/*
|
|
|
|
%{perl_vendorarch}/PadWalker.pm
|
|
|
|
/var/adm/perl-modules/%{name}
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Tue Nov 24 2009 Robert Schweikert <rschweikert@novell.com> - PadWalker-1
|
|
|
|
- Initial build.
|
|
|
|
|