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
|
|
|
#
|
2024-03-01 11:08:53 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
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.
|
|
|
|
|
2019-05-25 15:28:25 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-06-28 01:07:52 +02:00
|
|
|
#
|
|
|
|
|
2011-03-14 17:23:48 +01:00
|
|
|
|
2024-03-01 11:08:53 +01:00
|
|
|
%define cpan_name Devel-StackTrace
|
2009-06-28 01:07:52 +02:00
|
|
|
Name: perl-Devel-StackTrace
|
2024-03-01 11:08:53 +01:00
|
|
|
Version: 2.50.0
|
2013-06-04 13:11:18 +02:00
|
|
|
Release: 0
|
2024-03-01 11:08:53 +01:00
|
|
|
%define cpan_version 2.05
|
2013-06-04 13:11:18 +02:00
|
|
|
License: Artistic-2.0
|
2024-03-01 11:08:53 +01:00
|
|
|
Summary: An object representing a stack trace
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{cpan_version}.tar.gz
|
2015-04-16 19:35:05 +02:00
|
|
|
Source1: cpanspec.yml
|
2013-06-04 13:11:18 +02:00
|
|
|
BuildArch: noarch
|
2011-02-01 13:47:44 +01:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2016-03-09 07:39:08 +01:00
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
2024-03-01 11:08:53 +01:00
|
|
|
Provides: perl(Devel::StackTrace) = %{version}
|
|
|
|
Provides: perl(Devel::StackTrace::Frame) = %{version}
|
2024-03-08 23:17:08 +01:00
|
|
|
%undefine __perllib_provides
|
2011-02-01 13:47:44 +01:00
|
|
|
%{perl_requires}
|
2007-11-01 19:14:35 +01:00
|
|
|
|
|
|
|
%description
|
2016-12-09 14:15:13 +01:00
|
|
|
The 'Devel::StackTrace' module contains two classes, 'Devel::StackTrace'
|
2016-03-09 07:39:08 +01:00
|
|
|
and Devel::StackTrace::Frame. These objects encapsulate the information
|
2016-12-09 14:15:13 +01:00
|
|
|
that can retrieved via Perl's 'caller' function, as well as providing a
|
2016-03-09 07:39:08 +01:00
|
|
|
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
|
2016-12-09 14:15:13 +01:00
|
|
|
available from 'caller'.
|
2007-11-01 19:14:35 +01:00
|
|
|
|
2016-03-09 07:39:08 +01:00
|
|
|
This code was created to support my Exception::Class::Base class (part of
|
|
|
|
Exception::Class) but may be useful in other contexts.
|
2009-06-28 01:07:52 +02:00
|
|
|
|
2007-11-01 19:14:35 +01:00
|
|
|
%prep
|
2024-03-01 11:08:53 +01:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2007-11-01 19:14:35 +01:00
|
|
|
|
|
|
|
%build
|
2019-05-25 15:28:25 +02:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2024-03-01 11:08:53 +01:00
|
|
|
%make_build
|
2009-03-19 15:43:13 +01:00
|
|
|
|
|
|
|
%check
|
2019-05-25 15:28:25 +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
|
2024-03-01 11:08:53 +01:00
|
|
|
%doc Changes CODE_OF_CONDUCT.md CONTRIBUTING.md README.md
|
2017-11-20 11:28:58 +01:00
|
|
|
%license LICENSE
|
2007-11-01 19:14:35 +01:00
|
|
|
|
|
|
|
%changelog
|