2009-12-26 21:48:27 +01:00
|
|
|
#
|
2011-11-11 12:23:10 +01:00
|
|
|
# spec file for package perl-Test-LeakTrace
|
2010-11-10 21:34:11 +01:00
|
|
|
#
|
2021-01-06 12:00:21 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2010-11-10 21:34:11 +01: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.
|
|
|
|
|
2021-01-06 12:00:21 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-12-26 21:48:27 +01:00
|
|
|
#
|
|
|
|
|
2011-11-11 12:23:10 +01:00
|
|
|
|
2021-01-06 12:00:21 +01:00
|
|
|
%define cpan_name Test-LeakTrace
|
2010-11-10 21:34:11 +01:00
|
|
|
Name: perl-Test-LeakTrace
|
2021-01-06 12:00:21 +01:00
|
|
|
Version: 0.17
|
2015-04-15 07:02:34 +02:00
|
|
|
Release: 0
|
2011-05-01 13:01:41 +02:00
|
|
|
Summary: Traces memory leaks
|
2021-01-06 12:00:21 +01:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2017-06-20 08:34:24 +02:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/L/LE/LEEJO/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
2011-05-01 13:01:41 +02:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2010-12-03 15:52:16 +01:00
|
|
|
%{perl_requires}
|
2009-12-26 21:48:27 +01:00
|
|
|
|
|
|
|
%description
|
2011-05-01 13:01:41 +02:00
|
|
|
'Test::LeakTrace' provides several functions that trace memory leaks. This
|
|
|
|
module scans arenas, the memory allocation system, so it can detect any
|
|
|
|
leaked SVs in given blocks.
|
2009-12-26 21:48:27 +01:00
|
|
|
|
2011-05-01 13:01:41 +02:00
|
|
|
*Leaked SVs* are SVs which are not released after the end of the scope they
|
|
|
|
have been created. These SVs include global variables and internal caches.
|
|
|
|
For example, if you call a method in a tracing block, perl might prepare a
|
|
|
|
cache for the method. Thus, to trace true leaks, 'no_leaks_ok()' and
|
|
|
|
'leaks_cmp_ok()' executes a block more than once.
|
2009-12-26 21:48:27 +01:00
|
|
|
|
|
|
|
%prep
|
2021-01-06 12:00:21 +01:00
|
|
|
%autosetup -n %{cpan_name}-%{version}
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2009-12-26 21:48:27 +01:00
|
|
|
|
|
|
|
%build
|
2021-01-06 12:00:21 +01:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
%make_build
|
2009-12-26 21:48:27 +01:00
|
|
|
|
|
|
|
%check
|
2021-01-06 12:00:21 +01:00
|
|
|
make test
|
2009-12-26 21:48:27 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
2011-05-01 13:01:41 +02:00
|
|
|
%files -f %{name}.files
|
2015-04-15 07:02:34 +02:00
|
|
|
%doc Changes example README
|
2009-12-26 21:48:27 +01:00
|
|
|
|
2010-11-10 21:34:11 +01:00
|
|
|
%changelog
|