|
|
|
Name: perl-Test-MemoryGrowth
|
|
|
|
Version: 0.02
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Summary: Assert that code does not cause growth in memory usage
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
URL: http://search.cpan.org/dist/Test-MemoryGrowth/
|
|
|
|
Source0: http://www.cpan.org/authors/id/P/PE/PEVANS/Test-MemoryGrowth-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
# Build
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
BuildRequires: perl(Module::Build)
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
# Runtime
|
|
|
|
BuildRequires: perl(base)
|
|
|
|
BuildRequires: perl(constant)
|
|
|
|
# Devel::MAT::Dumper is optional
|
|
|
|
# XXX: BuildRequires: perl(Devel::MAT::Dumper)
|
|
|
|
BuildRequires: perl(Test::Builder::Module)
|
|
|
|
# Tests only
|
|
|
|
BuildRequires: perl(Test::Builder::Tester)
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
|
|
|
|
|
|
|
|
%description
|
|
|
|
This module provides a function to check that a given block of code does
|
|
|
|
not result in the process consuming extra memory once it has finished.
|
|
|
|
Despite the name of this module it does not, in the strictest sense of the
|
|
|
|
word, test for a memory leak: that term is specifically applied to cases
|
|
|
|
where memory has been allocated but all record of it has been lost, so it
|
|
|
|
cannot possibly be reclaimed. While the method employed by this module can
|
|
|
|
detect such bugs, it can also detect cases where memory is still referenced
|
|
|
|
and reachable, but the usage has grown more than would be expected or
|
|
|
|
necessary.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Test-MemoryGrowth-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
perl Build.PL installdirs=vendor
|
|
|
|
./Build
|
|
|
|
|
|
|
|
%install
|
|
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
|
|
|
%check
|
|
|
|
./Build test
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%doc Changes README
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.02-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.02-3
|
|
|
|
- Perl 5.24 rebuild
|
|
|
|
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.02-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
|
|
|
* Tue Aug 11 2015 Petr Šabata <contyk@redhat.com> 0.02-1
|
|
|
|
- Initial packaging
|