From 9e254f3ea1779cd39336024ebad50b5ce363970bf3d544bebaf854489c9e93cc Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Sun, 1 May 2011 11:01:41 +0000 Subject: [PATCH] - 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 --- Test-LeakTrace-0.10.tar.bz2 | 3 -- Test-LeakTrace-0.13.tar.gz | 3 ++ perl-Test-LeakTrace.changes | 11 +++++++ perl-Test-LeakTrace.spec | 60 +++++++++++++++++-------------------- 4 files changed, 41 insertions(+), 36 deletions(-) delete mode 100644 Test-LeakTrace-0.10.tar.bz2 create mode 100644 Test-LeakTrace-0.13.tar.gz diff --git a/Test-LeakTrace-0.10.tar.bz2 b/Test-LeakTrace-0.10.tar.bz2 deleted file mode 100644 index 05a577f..0000000 --- a/Test-LeakTrace-0.10.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c466004f8271941c631e6013cd6f751a74de826cd90291932ceff4b5cb089163 -size 41576 diff --git a/Test-LeakTrace-0.13.tar.gz b/Test-LeakTrace-0.13.tar.gz new file mode 100644 index 0000000..22dcbd0 --- /dev/null +++ b/Test-LeakTrace-0.13.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5dfd39d409c8fe872d1b17005e3a8e048d5d9bb91201643d0c57285785c9ab4f +size 49022 diff --git a/perl-Test-LeakTrace.changes b/perl-Test-LeakTrace.changes index 21d55b2..15685c7 100644 --- a/perl-Test-LeakTrace.changes +++ b/perl-Test-LeakTrace.changes @@ -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 diff --git a/perl-Test-LeakTrace.spec b/perl-Test-LeakTrace.spec index 3f084b5..4c7bf05 100644 --- a/perl-Test-LeakTrace.spec +++ b/perl-Test-LeakTrace.spec @@ -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. # @@ -15,47 +15,41 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild - - Name: perl-Test-LeakTrace -%define real_name %( echo %{name} | %{__sed} -e 's,perl-,,' ) -Summary: Traces memory leaks -Url: http://search.cpan.org/perldoc?Test::LeakTrace -Group: Development/Libraries/Perl +Version: 0.13 +Release: 1 License: GPL+ or Artistic -Version: 0.10 -Release: 8 -Source: %{real_name}-%{version}.tar.bz2 -BuildRequires: perl-macros +%define cpan_name Test-LeakTrace +Summary: Traces memory leaks +Url: http://search.cpan.org/dist/Test-LeakTrace/ +Group: Development/Libraries/Perl +Source: http://www.cpan.org/authors/id/G/GF/GFUJI/%{cpan_name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +BuildRequires: perl-macros %{perl_requires} %description -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. - -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) . +'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. +*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 -%setup -q -n %{real_name}-%{version} +%setup -q -n %{cpan_name}-%{version} +find . -type f -print0 | xargs -0 chmod 644 %build -perl Makefile.PL -make %{?jobs:-j%jobs} +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +%{__make} %{?_smp_mflags} %check -make test +%{__make} test %install %perl_make_install @@ -63,10 +57,10 @@ make test %perl_gen_filelist %clean -rm -rf %{buildroot} +%{__rm} -rf %{buildroot} -%files -f %{name}.files -%defattr(0644, root, root, 0755) -%doc Changes README MANIFEST +%files -f %{name}.files +%defattr(-,root,root,755) +%doc Changes README %changelog