%define module Test-Memory-Cycle %define name perl-%{module} %define version 1.04 %define release %mkrel 2 Name: %{name} Version: %{version} Release: %{release} Summary: Check for memory leaks and circular memory references License: GPL or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{module}/ Source: http://www.cpan.org/modules/by-module/Test/%{module}-%{version}.tar.bz2 %if %{mdkversion} < 1010 BuildRequires: perl-devel %endif BuildRequires: perl-Devel-Cycle >= 1.03 BuildRequires: perl(Test::Builder::Tester) BuildRequires: perl(CGI) Requires: perl-Devel-Cycle >= 1.03 BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version} %description Perl's garbage collection has one big problem: Circular references can't get cleaned up. A circular reference can be as simple as two objects that refer to each other. Test::Memory::Cycle is built on top of Devel::Cycle to give you an easy way to check for these circular references. %prep %setup -q -n %{module}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor </dev/null %make %check %{__make} test %install rm -rf %{buildroot} %makeinstall_std %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc Changes README %{perl_vendorlib}/Test %{_mandir}/*/* %changelog * Sat Sep 15 2007 Guillaume Rousse <guillomovitch@mandriva.org> 1.04-2mdv2008.0 + Revision: 86968 - rebuild * Fri Aug 25 2006 Guillaume Rousse <guillomovitch@mandriva.org> 1.04-1mdv2007.0 - New version 1.04 * Fri Apr 28 2006 Nicolas Lécureuil <neoclust@mandriva.org> 1.02-4mdk - Fix Requires and BuildRequires * Fri Apr 28 2006 Nicolas Lécureuil <neoclust@mandriva.org> 1.02-3mdk - Fix SPEC according to Perl Policy - BuildRequires - Requires - Source URL * Thu Sep 29 2005 Nicolas Lécureuil <neoclust@mandriva.org> 1.02-2mdk - Fix BuildRequires * Wed Jun 01 2005 Guillaume Rousse <guillomovitch@mandriva.org> 1.02-1mdk - new version - rpmbuildupdate aware - spec cleanup - make test in %%check * Wed Feb 02 2005 Rafael Garcia-Suarez <rgarciasuarez@mandrakesoft.com> 1.00-1mdk - 1.00 - make test belongs to build, not install - requires, buildrequires * Mon Dec 20 2004 Guillaume Rousse <guillomovitch@mandrake.org> 0.02-3mdk - fix buildrequires in a backward compatible way * Sat Aug 28 2004 Guillaume Rousse <guillomovitch@mandrake.org> 0.02-2mdk - fix directory ownership (distlint) * Mon Mar 29 2004 Guillaume Rousse <guillomovitch@mandrake.org> 0.02-1mdk - first mdk release