psabata pushed to perl-Test-MemoryGrowth (f23). "Initial import (#1252529)"
notifications at fedoraproject.org
notifications at fedoraproject.org
Mon Aug 17 14:15:42 UTC 2015
From d9c43cdef2118df5188adc6095a4e55a45ee963a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20=C5=A0abata?= <contyk at redhat.com>
Date: Mon, 17 Aug 2015 16:15:05 +0200
Subject: Initial import (#1252529)
diff --git a/.gitignore b/.gitignore
index e69de29..c61a359 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Test-MemoryGrowth-0.02.tar.gz
diff --git a/perl-Test-MemoryGrowth.spec b/perl-Test-MemoryGrowth.spec
new file mode 100644
index 0000000..b16ba6b
--- /dev/null
+++ b/perl-Test-MemoryGrowth.spec
@@ -0,0 +1,58 @@
+Name: perl-Test-MemoryGrowth
+Version: 0.02
+Release: 1%{?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(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
+* Tue Aug 11 2015 Petr Ĺ abata <contyk at redhat.com> 0.02-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..52b0dbc 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+2aee28d018508f9d22df5027568e2c98 Test-MemoryGrowth-0.02.tar.gz
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/perl-Test-MemoryGrowth.git/commit/?h=f23&id=d9c43cdef2118df5188adc6095a4e55a45ee963a
More information about the perl-devel
mailing list