2009-12-02 10:57:03 +00:00
|
|
|
#
|
2013-06-08 10:42:46 +00:00
|
|
|
# spec file for package perl-PadWalker
|
2010-11-19 15:00:53 +00:00
|
|
|
#
|
2020-09-28 12:43:21 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2010-11-19 15:00:53 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-09-28 12:43:21 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-12-02 10:57:03 +00:00
|
|
|
#
|
|
|
|
|
2010-12-14 10:52:30 +00:00
|
|
|
|
2010-11-19 15:00:53 +00:00
|
|
|
Name: perl-PadWalker
|
2020-09-28 12:43:21 +00:00
|
|
|
Version: 2.5
|
2015-04-15 17:33:46 +00:00
|
|
|
Release: 0
|
2009-12-02 10:57:03 +00:00
|
|
|
%define cpan_name PadWalker
|
2020-09-28 12:43:21 +00:00
|
|
|
Summary: Play with other peoples' lexical variables
|
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2010-11-19 15:00:53 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2020-09-28 12:43:21 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2017-12-06 14:39:51 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RO/ROBIN/%{cpan_name}-%{version}.tar.gz
|
2015-04-15 17:33:46 +00:00
|
|
|
Source1: cpanspec.yml
|
2010-11-19 15:00:53 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-10-19 08:46:54 +00:00
|
|
|
BuildRequires: perl
|
2010-11-19 15:00:53 +00:00
|
|
|
BuildRequires: perl-macros
|
2015-04-15 17:33:46 +00:00
|
|
|
%{perl_requires}
|
2009-12-02 10:57:03 +00:00
|
|
|
|
|
|
|
%description
|
2010-11-19 15:00:53 +00:00
|
|
|
PadWalker is a module which allows you to inspect (and even change!)
|
|
|
|
lexical variables in any subroutine which called you. It will only show
|
2009-12-02 10:57:03 +00:00
|
|
|
those variables which are in scope at the point of the call.
|
|
|
|
|
2010-11-19 15:00:53 +00:00
|
|
|
PadWalker is particularly useful for debugging. It's even used by Perl's
|
2009-12-02 10:57:03 +00:00
|
|
|
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.
|
|
|
|
|
|
|
|
%prep
|
2010-11-19 15:00:53 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2009-12-02 10:57:03 +00:00
|
|
|
|
|
|
|
%build
|
2020-09-28 12:43:21 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
make %{?_smp_mflags}
|
2009-12-02 10:57:03 +00:00
|
|
|
|
|
|
|
%check
|
2020-09-28 12:43:21 +00:00
|
|
|
make test
|
2009-12-02 10:57:03 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
2010-11-24 21:48:34 +00:00
|
|
|
%perl_process_packlist
|
2010-11-19 15:00:53 +00:00
|
|
|
%perl_gen_filelist
|
2009-12-02 10:57:03 +00:00
|
|
|
|
2010-11-19 15:00:53 +00:00
|
|
|
%files -f %{name}.files
|
2015-04-15 17:33:46 +00:00
|
|
|
%defattr(-,root,root,755)
|
2009-12-02 10:57:03 +00:00
|
|
|
%doc Changes README
|
|
|
|
|
|
|
|
%changelog
|