forked from pool/perl-Test-Memory-Cycle
75 lines
1.9 KiB
RPMSpec
75 lines
1.9 KiB
RPMSpec
|
# Copyright (c) 2009 Novell
|
||
|
# This file and all modifications and additions to the pristine
|
||
|
# package are under the same license as the package itself.
|
||
|
#
|
||
|
# Please submit bugfixes or comments via http://www.suse.de/feedback/
|
||
|
#
|
||
|
|
||
|
# norootforbuild
|
||
|
|
||
|
Name: perl-Test-Memory-Cycle
|
||
|
Version: 1.04
|
||
|
Release: 1
|
||
|
%define cpan_name Test-Memory-Cycle
|
||
|
Provides: %cpan_name
|
||
|
Requires: perl = %{perl_version}
|
||
|
Requires: perl-Devel-Cycle >= 1.07
|
||
|
Requires: perl-PadWalker
|
||
|
Autoreqprov: on
|
||
|
Group: Development/Libraries/Perl
|
||
|
License: Artistic License, GPL, see package
|
||
|
URL: http://search.cpan.org/~petdance/Test-Memory-Cycle-1.04/Cycle.pm
|
||
|
Summary: Check for memory leaks and circular memory references
|
||
|
Source0: %{cpan_name}-%{version}.tar.gz
|
||
|
BuildRequires: perl-Devel-Cycle >= 1.07
|
||
|
BuildRequires: perl-PadWalker
|
||
|
BuildRequires: perl-Test-Pod >= 1.14
|
||
|
BuildRequires: perl-Test-Pod-Coverage >= 1.04
|
||
|
BuildArch: noarch
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||
|
|
||
|
%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 reference
|
||
|
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.
|
||
|
|
||
|
Authors:
|
||
|
Andy Lester, <andy@petdance.com>.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n %cpan_name-%{version}
|
||
|
|
||
|
%build
|
||
|
perl Makefile.PL
|
||
|
make
|
||
|
|
||
|
%check
|
||
|
make test
|
||
|
|
||
|
%install
|
||
|
%perl_make_install
|
||
|
%perl_process_packlist
|
||
|
%__rm -f %{buildroot}%{perl_vendorarch}/auto/Test/Memory/Cycle/.packlist
|
||
|
|
||
|
%clean
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root,-)
|
||
|
%doc Changes README
|
||
|
%doc %{_mandir}/man3/*
|
||
|
%dir %{perl_vendorlib}/Test
|
||
|
%dir %{perl_vendorlib}/Test/Memory
|
||
|
%{perl_vendorlib}/Test/Memory/Cycle.pm
|
||
|
/var/adm/perl-modules/%{name}
|
||
|
|
||
|
|
||
|
%changelog
|
||
|
* Tue Nov 24 2009 Robert Schweikert <rschweikert@novell.com> - Memory-Cycle
|
||
|
- Initial build.
|
||
|
|