2009-11-28 21:42:24 +00:00
|
|
|
#
|
2010-11-24 21:54:36 +00:00
|
|
|
# spec file for package perl-Test-Memory-Cycle (Version 1.04)
|
|
|
|
#
|
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2009-11-28 21:42:24 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2010-11-24 21:54:36 +00:00
|
|
|
%bcond_with pod
|
|
|
|
|
|
|
|
Name: perl-Test-Memory-Cycle
|
2009-11-28 21:42:24 +00:00
|
|
|
%define cpan_name Test-Memory-Cycle
|
2010-11-24 21:54:36 +00:00
|
|
|
Summary: Check for memory leaks and circular memory references
|
|
|
|
Version: 1.04
|
|
|
|
Release: 1
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Url: http://search.cpan.org/dist/Test-Memory-Cycle/
|
|
|
|
Source: http://www.cpan.org/authors/id/P/PE/PETDANCE/Test-Memory-Cycle-1.04.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-03 14:52:24 +00:00
|
|
|
%{perl_requires}
|
2010-11-24 21:54:36 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
%if %{with pod}
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.14
|
|
|
|
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
|
|
|
|
%endif
|
|
|
|
BuildRequires: perl(Devel::Cycle) >= 1.07
|
|
|
|
BuildRequires: perl(Getopt::Long)
|
|
|
|
BuildRequires: perl(PadWalker)
|
|
|
|
BuildRequires: perl(Test::Simple) >= 0.62
|
|
|
|
Requires: perl(Devel::Cycle) >= 1.07
|
|
|
|
Requires: perl(Getopt::Long)
|
|
|
|
Requires: perl(PadWalker)
|
|
|
|
Requires: perl(Test::Simple) >= 0.62
|
2009-11-28 21:42:24 +00:00
|
|
|
|
|
|
|
%description
|
2010-11-24 21:54:36 +00:00
|
|
|
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.
|
2009-11-28 21:42:24 +00:00
|
|
|
|
2010-11-24 21:54:36 +00:00
|
|
|
Test::Memory::Cycle is built on top of Devel::Cycle to give you an easy
|
|
|
|
way to check for these circular references.
|
2009-11-28 21:42:24 +00:00
|
|
|
|
|
|
|
Authors:
|
2010-11-24 21:54:36 +00:00
|
|
|
--------
|
|
|
|
Written by Andy Lester, '<andy @ petdance.com>'.
|
2009-11-28 21:42:24 +00:00
|
|
|
|
|
|
|
%prep
|
2010-11-24 21:54:36 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2009-11-28 21:42:24 +00:00
|
|
|
|
|
|
|
%build
|
2010-11-24 21:54:36 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
2009-11-28 21:42:24 +00:00
|
|
|
|
|
|
|
%check
|
2010-11-24 21:54:36 +00:00
|
|
|
%{__make} test
|
2009-11-28 21:42:24 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
2010-11-24 21:54:36 +00:00
|
|
|
### since 11.4 perl_process_packlist
|
|
|
|
### removes .packlist, perllocal.pod files
|
|
|
|
%if 0%{?suse_version} > 1130
|
2009-11-28 21:42:24 +00:00
|
|
|
%perl_process_packlist
|
2010-11-24 21:54:36 +00:00
|
|
|
%else
|
|
|
|
# do not perl_process_packlist
|
|
|
|
# remove .packlist file
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
|
|
|
|
# remove perllocal.pod file
|
|
|
|
%{__rm} -f $RPM_BUILD_ROOT%perl_archlib/perllocal.pod
|
|
|
|
%endif
|
|
|
|
%perl_gen_filelist
|
2009-11-28 21:42:24 +00:00
|
|
|
|
|
|
|
%clean
|
2010-11-24 21:54:36 +00:00
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
2009-11-28 21:42:24 +00:00
|
|
|
|
2010-11-24 21:54:36 +00:00
|
|
|
%files -f %{name}.files
|
2009-11-28 21:42:24 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc Changes README
|
|
|
|
|
|
|
|
%changelog
|