diff --git a/.cvsignore b/.cvsignore index e69de29..338a568 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Test-Memory-Cycle-1.00.tar.gz diff --git a/perl-Test-Memory-Cycle.spec b/perl-Test-Memory-Cycle.spec new file mode 100644 index 0000000..59f1156 --- /dev/null +++ b/perl-Test-Memory-Cycle.spec @@ -0,0 +1,70 @@ +%{!?perl_vendorlib: %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)} + +Name: perl-Test-Memory-Cycle +Version: 1.00 +Release: 0.fdr.2 +Epoch: 0 +Summary: Check for memory leaks and circular memory references + +Group: Development/Libraries +License: GPL or Artistic +URL: http://search.cpan.org/dist/Test-Memory-Cycle/ +Source0: http://www.cpan.org/authors/id/P/PE/PETDANCE/Test-Memory-Cycle-1.00.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl >= 1:5.6.1 +BuildRequires: perl(CGI), perl(Test::More), perl(Test::Builder::Tester) +BuildRequires: perl(Test::Pod), perl(Test::Pod::Coverage) +BuildRequires: perl-Devel-Cycle >= 0:1.03 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $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 Test-Memory-Cycle-%{version} + + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + + +%check || : +make test + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorlib}/Test/ +%{_mandir}/man3/*.3* + + +%changelog +* Wed Apr 20 2005 Jose Pedro Oliveira - 0:1.00-0.fdr.2 +- RedHat 9.0 (8.0 and 7.3): CGI.pm is shipped as perl-CGI (#1824). + +* Mon Jan 24 2005 Jose Pedro Oliveira - 0:1.00-0.fdr.1 +- Update to 1.00. + +* Sun Jul 04 2004 Jose Pedro Oliveira - 0:0.02-0.fdr.1 +- First build. diff --git a/sources b/sources index e69de29..42f4d59 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +943f56959c00d6ba0dc34df02ca22c2a Test-Memory-Cycle-1.00.tar.gz