59 lines
1.5 KiB
RPMSpec
59 lines
1.5 KiB
RPMSpec
|
|
Name: perl-Test-Harness
|
||
|
|
Epoch: 1
|
||
|
|
Version: 3.43_01
|
||
|
|
Release: 1
|
||
|
|
Summary: Run Perl standard test scripts with statistics
|
||
|
|
License: GPL+ or Artistic
|
||
|
|
URL: https://metacpan.org/release/Test-Harness
|
||
|
|
Source0: https://cpan.metacpan.org/authors/id/L/LE/LEONT/Test-Harness-%{version}.tar.gz
|
||
|
|
BuildArch: noarch
|
||
|
|
|
||
|
|
BuildRequires: make
|
||
|
|
BuildRequires: perl-generators
|
||
|
|
BuildRequires: perl-interpreter
|
||
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||
|
|
BuildRequires: perl(strict)
|
||
|
|
BuildRequires: perl(warnings)
|
||
|
|
BuildRequires: perl(CPAN::Meta::YAML)
|
||
|
|
BuildRequires: perl(File::Temp)
|
||
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||
|
|
Suggests: perl(Term::ANSIColor)
|
||
|
|
Suggests: perl(Time::HiRes)
|
||
|
|
|
||
|
|
# Filter example dependencies
|
||
|
|
%global __requires_exclude_from %{?__requires_exclude_from:%__requires_exclude_from|}^%{_datadir}/doc
|
||
|
|
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_datadir}/doc
|
||
|
|
|
||
|
|
%description
|
||
|
|
This package allows tests to be run and results automatically aggregated and
|
||
|
|
output to STDOUT.
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%autosetup -n Test-Harness-%{version} -p1
|
||
|
|
|
||
|
|
%build
|
||
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
||
|
|
%make_build
|
||
|
|
|
||
|
|
%install
|
||
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||
|
|
|
||
|
|
%check
|
||
|
|
make test
|
||
|
|
|
||
|
|
%files
|
||
|
|
%defattr(-,root,root)
|
||
|
|
%doc Changes Changes-2.64 README
|
||
|
|
%{perl_vendorlib}/*
|
||
|
|
%{_bindir}/*
|
||
|
|
|
||
|
|
%package_help
|
||
|
|
%files help
|
||
|
|
%doc examples
|
||
|
|
%{_mandir}/man1/*
|
||
|
|
%{_mandir}/man3/*
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Thu Aug 29 2019 hexiaowen <hexiaowen@huawei.com> - 3.43_01-1
|
||
|
|
- Package init
|