- updated to 0.13
- Fix tests for older perls - Use ">= 0", instead of "== 0" for no_leaks_ok() - Add count_sv() to count all the SVs in a perl interpreter - Resolve RT #58133: "False-positive related to XS code" OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-LeakTrace?expand=0&rev=10
This commit is contained in:
parent
49adab7455
commit
9e254f3ea1
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:c466004f8271941c631e6013cd6f751a74de826cd90291932ceff4b5cb089163
|
|
||||||
size 41576
|
|
3
Test-LeakTrace-0.13.tar.gz
Normal file
3
Test-LeakTrace-0.13.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:5dfd39d409c8fe872d1b17005e3a8e048d5d9bb91201643d0c57285785c9ab4f
|
||||||
|
size 49022
|
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun May 1 10:39:25 UTC 2011 - coolo@opensuse.org
|
||||||
|
|
||||||
|
- updated to 0.13
|
||||||
|
- Fix tests for older perls
|
||||||
|
|
||||||
|
- Use ">= 0", instead of "== 0" for no_leaks_ok()
|
||||||
|
- Add count_sv() to count all the SVs in a perl interpreter
|
||||||
|
|
||||||
|
- Resolve RT #58133: "False-positive related to XS code"
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Mar 15 09:55:14 UTC 2011 - cfarrell@novell.com
|
Tue Mar 15 09:55:14 UTC 2011 - cfarrell@novell.com
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-Test-LeakTrace
|
# spec file for package perl-Test-LeakTrace (Version 0.13)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -15,47 +15,41 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
|
|
||||||
Name: perl-Test-LeakTrace
|
Name: perl-Test-LeakTrace
|
||||||
%define real_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
|
Version: 0.13
|
||||||
Summary: Traces memory leaks
|
Release: 1
|
||||||
Url: http://search.cpan.org/perldoc?Test::LeakTrace
|
|
||||||
Group: Development/Libraries/Perl
|
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
Version: 0.10
|
%define cpan_name Test-LeakTrace
|
||||||
Release: 8
|
Summary: Traces memory leaks
|
||||||
Source: %{real_name}-%{version}.tar.bz2
|
Url: http://search.cpan.org/dist/Test-LeakTrace/
|
||||||
BuildRequires: perl-macros
|
Group: Development/Libraries/Perl
|
||||||
|
Source: http://www.cpan.org/authors/id/G/GF/GFUJI/%{cpan_name}-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: perl
|
||||||
|
BuildRequires: perl-macros
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Test::LeakTrace provides several functions that trace memory leaks. This module
|
'Test::LeakTrace' provides several functions that trace memory leaks. This
|
||||||
scans arenas, the memory allocation system, so it can detect any leaked SVs in
|
module scans arenas, the memory allocation system, so it can detect any
|
||||||
given blocks.
|
leaked SVs in given blocks.
|
||||||
|
|
||||||
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.e
|
|
||||||
|
|
||||||
Author:
|
|
||||||
-------
|
|
||||||
Goro Fuji(gfx) <gfuji(at)cpan.org>.
|
|
||||||
|
|
||||||
|
*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.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{real_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
find . -type f -print0 | xargs -0 chmod 644
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||||
make %{?jobs:-j%jobs}
|
%{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
%{__make} test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
%perl_make_install
|
||||||
@ -63,10 +57,10 @@ make test
|
|||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
%{__rm} -rf %{buildroot}
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(0644, root, root, 0755)
|
%defattr(-,root,root,755)
|
||||||
%doc Changes README MANIFEST
|
%doc Changes README
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user