Sisyphus repository
Last update: 24 september 2020 | SRPMs: 17698 | Visits: 19278762
en ru br
ALT Linux repos

Group :: Development/Perl
RPM: perl-Test-Valgrind

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-build-perl
BuildRequires: perl( perl( perl-devel perl-podlators
# END SourceDeps(oneline)
Name: perl-Test-Valgrind
Summary: Generate suppressions, analyze and test any command with valgrind
Version: 1.19
Release: alt1
Group: Development/Perl
License: GPL+ or Artistic
BuildArch: noarch
BuildRequires: perl(
BuildRequires: perl(
BuildRequires: perl(Digest/
BuildRequires: perl(Env/
BuildRequires: perl(ExtUtils/
BuildRequires: perl(ExtUtils/
BuildRequires: perl(
BuildRequires: perl(File/
BuildRequires: perl(File/
BuildRequires: perl(File/
BuildRequires: perl(File/
BuildRequires: perl(Filter/Util/
BuildRequires: perl(
BuildRequires: perl(List/
BuildRequires: perl(
BuildRequires: perl(Perl/Destruct/
BuildRequires: perl(Scalar/
BuildRequires: perl(Test/
BuildRequires: perl(Test/
BuildRequires: perl(XML/
BuildRequires: perl(
BuildRequires: perl(
BuildRequires: valgrind >= 3.1.0
Requires: perl(
Requires: perl(Digest/
Requires: perl(File/ >= 0.86
Requires: perl(File/
Requires: perl(File/ >= 0.14
Requires: perl(Filter/Util/
Requires: perl(List/
Requires: perl(Perl/Destruct/
Requires: perl(XML/
Requires: valgrind >= 3.1.0

# Don't "provide" private Perl libs


The Test::Valgrind::* API lets you run Perl code through the memcheck tool of
the valgrind memory debugger, to test for memory errors and leaks. The
Test::Valgrind module itself is a front-end to this API. If they aren't
available yet, it will first generate suppressions for the current perl
interpreter and store them in the portable flavor of
~/.perl/Test-Valgrind/suppressions/$VERSION. The actual run will then take
place, and tests will be passed or failed according to the result of the

The complete API is much more versatile than this. By declaring an appropriate
Test::Valgrind::Command class, you can run any executable (that is, not only
Perl scripts) under valgrind, generate the corresponding suppressions
on-the-fly and convert the analysis result to TAP output so that it can be
incorporated into your project's test suite. If you're not interested in
producing TAP, you can output the results in whatever format you like (for
example HTML pages) by defining your own Test::Valgrind::Action class.

%setup -q -n Test-Valgrind-%{version}

perl Makefile.PL INSTALLMAN1DIR=%_man1dir INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}

make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
# %{_fixperms} %{buildroot}

# The package is noarch; the XS code included is for testing purposes and is

# not part of the module itself
if [ "%{perl_vendor_archlib}" != "%{perl_vendor_privlib}" ]; then
mkdir -p %{buildroot}%{perl_vendor_privlib}
mv %{buildroot}%{perl_vendor_archlib}/* %{buildroot}%{perl_vendor_privlib}/

# If we have ExtUtils::Install < 1.3702, INSTALL.SKIP will be ignored

# and will have been installed, so remove it
if perl -MExtUtils::Install -e 'exit (($ExtUtils::Install::VERSION < 1.3702) ? 0 : 1);'; then
rm %{buildroot}%{perl_vendor_privlib}/auto/Test/Valgrind/

%doc Changes README samples/


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin