package init

This commit is contained in:
openeuler-basic 2020-02-29 12:59:16 +08:00
parent ce9e7259d4
commit 92275b8476
2 changed files with 54 additions and 0 deletions

BIN
Test-LeakTrace-0.16.tar.gz Normal file

Binary file not shown.

54
perl-Test-LeakTrace.spec Normal file
View File

@ -0,0 +1,54 @@
Name: perl-Test-LeakTrace
Summary: Trace memory leaks
Version: 0.16
Release: 10
License: GPL+ or Artistic
URL: https://metacpan.org/release/Test-LeakTrace
Source0: https://cpan.metacpan.org/authors/id/L/LE/LEEJO/Test-LeakTrace-%{version}.tar.gz
BuildRequires: coreutils findutils gcc make perl-interpreter perl-devel perl-generators
BuildRequires: perl(ExtUtils::MakeMaker) sed
Requires: perl(:MODULE_COMPAT_%(perl -V:version | cut -d"'" -f 2))
# Don't provide private perl libs
%{?perl_default_filter}
%description
Test::LeakTrace - Traces memory leaks
Test::LeakTrace::Script - A LeakTrace interface for whole scripts
%package_help
%prep
%autosetup -n Test-LeakTrace-%{version}
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
# Fix up shellbangs in doc scripts
sed -i -e 's|^#!perl|#!/usr/bin/perl|' benchmark/*.pl example/*.{pl,t} {t,xt}/*.t
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="%{optflags}"
make %{?_smp_mflags}
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name '*.bs' -empty -delete
%{_fixperms} -c %{buildroot}
%check
make test
%files
%{perl_vendorarch}/auto/Test/
%{perl_vendorarch}/Test/
%files help
%doc Changes README benchmark/ example/
%{_mandir}/man3/Test::LeakTrace.3*
%{_mandir}/man3/Test::LeakTrace::JA.3*
%{_mandir}/man3/Test::LeakTrace::Script.3*
%changelog
* Fri Feb 28 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.16-10
- Package init