2009-06-28 01:07:52 +02:00
|
|
|
#
|
2011-03-14 17:23:48 +01:00
|
|
|
# spec file for package perl-Devel-StackTrace
|
2009-06-28 01:07:52 +02:00
|
|
|
#
|
2015-04-16 19:35:05 +02:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2009-06-28 01:07:52 +02: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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-03-14 17:23:48 +01:00
|
|
|
|
2009-06-28 01:07:52 +02:00
|
|
|
Name: perl-Devel-StackTrace
|
2015-04-16 19:35:05 +02:00
|
|
|
Version: 2.00
|
2013-06-04 13:11:18 +02:00
|
|
|
Release: 0
|
2011-02-01 13:47:44 +01:00
|
|
|
%define cpan_name Devel-StackTrace
|
|
|
|
Summary: An object representing a stack trace
|
2013-06-04 13:11:18 +02:00
|
|
|
License: Artistic-2.0
|
2007-11-01 19:14:35 +01:00
|
|
|
Group: Development/Libraries/Perl
|
2013-06-04 13:11:18 +02:00
|
|
|
Url: http://search.cpan.org/dist/Devel-StackTrace/
|
2015-04-16 19:35:05 +02:00
|
|
|
Source0: http://www.cpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
2013-06-04 13:11:18 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-02-01 13:47:44 +01:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2013-06-04 13:11:18 +02:00
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
2011-02-01 13:47:44 +01:00
|
|
|
%{perl_requires}
|
2007-11-01 19:14:35 +01:00
|
|
|
|
|
|
|
%description
|
2014-02-24 07:27:53 +01:00
|
|
|
The 'Devel::StackTrace' module contains two classes, C,Devel::StackTrace>
|
|
|
|
and the Devel::StackTrace::Frame manpage. These objects encapsulate the
|
|
|
|
information that can retrieved via Perl's 'caller()' function, as well as
|
2011-02-01 13:47:44 +01:00
|
|
|
providing a simple interface to this data.
|
2007-11-01 19:14:35 +01:00
|
|
|
|
2014-02-24 07:27:53 +01:00
|
|
|
The 'Devel::StackTrace' object contains a set of 'Devel::StackTrace::Frame'
|
2011-02-01 13:47:44 +01:00
|
|
|
objects, one for each level of the stack. The frames contain all the data
|
|
|
|
available from 'caller()'.
|
2007-11-01 19:14:35 +01:00
|
|
|
|
2011-02-01 13:47:44 +01:00
|
|
|
This code was created to support my the Exception::Class::Base manpage
|
2014-02-24 07:27:53 +01:00
|
|
|
class (part of the Exception::Class manpage) but may be useful in other
|
|
|
|
contexts.
|
2009-06-28 01:07:52 +02:00
|
|
|
|
2007-11-01 19:14:35 +01:00
|
|
|
%prep
|
2009-06-28 01:07:52 +02:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2007-11-01 19:14:35 +01:00
|
|
|
|
|
|
|
%build
|
2011-02-01 13:47:44 +01:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
2009-03-19 15:43:13 +01:00
|
|
|
|
|
|
|
%check
|
2009-06-28 01:07:52 +02:00
|
|
|
%{__make} test
|
2007-11-01 19:14:35 +01:00
|
|
|
|
|
|
|
%install
|
2009-03-19 15:43:13 +01:00
|
|
|
%perl_make_install
|
2007-11-01 19:14:35 +01:00
|
|
|
%perl_process_packlist
|
2009-06-28 01:07:52 +02:00
|
|
|
%perl_gen_filelist
|
2007-11-01 19:14:35 +01:00
|
|
|
|
2009-06-28 01:07:52 +02:00
|
|
|
%files -f %{name}.files
|
2013-06-04 13:11:18 +02:00
|
|
|
%defattr(-,root,root,755)
|
2015-04-16 19:35:05 +02:00
|
|
|
%doc Changes LICENSE README.md
|
2007-11-01 19:14:35 +01:00
|
|
|
|
|
|
|
%changelog
|