2011-12-20 13:41:53 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Devel-Caller
|
|
|
|
#
|
2025-07-11 14:28:07 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2011-12-20 13:41: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.
|
|
|
|
|
2023-04-20 12:45:27 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-12-20 13:41:53 +00:00
|
|
|
#
|
|
|
|
|
2013-06-04 10:54:46 +00:00
|
|
|
|
2023-04-20 12:45:27 +00:00
|
|
|
%define cpan_name Devel-Caller
|
2011-12-20 13:41:53 +00:00
|
|
|
Name: perl-Devel-Caller
|
2025-07-11 14:28:07 +00:00
|
|
|
Version: 2.70.0
|
2011-12-20 13:41:53 +00:00
|
|
|
Release: 0
|
2025-07-11 14:28:07 +00:00
|
|
|
# 2.07 -> normalize -> 2.70.0
|
|
|
|
%define cpan_version 2.07
|
2023-04-20 12:45:27 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
|
|
Summary: Meatier versions of caller
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2025-07-11 14:28:07 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RC/RCLAMP/%{cpan_name}-%{cpan_version}.tar.gz
|
2025-08-12 18:13:26 +02:00
|
|
|
Source100: README.md
|
2011-12-20 13:41:53 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2025-07-11 14:28:07 +00:00
|
|
|
BuildRequires: perl(PadWalker) >= 0.80
|
|
|
|
Requires: perl(PadWalker) >= 0.80
|
|
|
|
Provides: perl(Devel::Caller) = %{version}
|
|
|
|
%undefine __perllib_provides
|
2011-12-20 13:41:53 +00:00
|
|
|
%{perl_requires}
|
2010-05-11 22:23:32 +00:00
|
|
|
|
|
|
|
%description
|
2011-12-20 13:41:53 +00:00
|
|
|
* caller_cv($level)
|
|
|
|
|
2023-04-20 12:45:27 +00:00
|
|
|
'caller_cv' gives you the coderef of the subroutine being invoked at the
|
|
|
|
call frame indicated by the value of $level
|
2011-12-20 13:41:53 +00:00
|
|
|
|
|
|
|
* caller_args($level)
|
|
|
|
|
2023-04-20 12:45:27 +00:00
|
|
|
Returns the arguments passed into the caller at level $level
|
2011-12-20 13:41:53 +00:00
|
|
|
|
|
|
|
* caller_vars( $level, $names )
|
|
|
|
=item called_with($level, $names)
|
|
|
|
|
2023-04-20 12:45:27 +00:00
|
|
|
'called_with' returns a list of references to the original arguments to the
|
|
|
|
subroutine at $level. if $names is true, the names of the variables will be
|
|
|
|
returned instead
|
2011-12-20 13:41:53 +00:00
|
|
|
|
2023-04-20 12:45:27 +00:00
|
|
|
constants are returned as 'undef' in both cases
|
2011-12-20 13:41:53 +00:00
|
|
|
|
|
|
|
* called_as_method($level)
|
|
|
|
|
2023-04-20 12:45:27 +00:00
|
|
|
'called_as_method' returns true if the subroutine at $level was called as a
|
|
|
|
method.
|
2010-05-11 22:23:32 +00:00
|
|
|
|
|
|
|
%prep
|
2025-07-11 14:28:07 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
2010-05-11 22:23:32 +00:00
|
|
|
|
|
|
|
%build
|
2023-04-20 12:45:27 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
%make_build
|
2011-12-20 13:41:53 +00:00
|
|
|
|
|
|
|
%check
|
2023-04-20 12:45:27 +00:00
|
|
|
make test
|
2010-05-11 22:23:32 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2011-12-20 13:41:53 +00:00
|
|
|
%perl_gen_filelist
|
2010-05-11 22:23:32 +00:00
|
|
|
|
2011-12-20 13:41:53 +00:00
|
|
|
%files -f %{name}.files
|
2010-05-11 22:23:32 +00:00
|
|
|
%doc Changes
|
|
|
|
|
|
|
|
%changelog
|