696c23
# Run optional tests
696c23
%if ! (0%{?rhel})
696c23
%bcond_without perl_Test_Harness_enables_optional_test
696c23
%else
696c23
%bcond_with perl_Test_Harness_enables_optional_test
696c23
%endif
696c23
696c23
Name:           perl-Test-Harness
696c23
Epoch:          1
696c23
Version:        3.42
696c23
Release:        2%{?dist}
696c23
Summary:        Run Perl standard test scripts with statistics
696c23
License:        GPL+ or Artistic
696c23
URL:            http://search.cpan.org/dist/Test-Harness/
696c23
Source0:        http://www.cpan.org/authors/id/L/LE/LEONT/Test-Harness-%{version}.tar.gz
696c23
# Remove hard-coded shell bangs
696c23
Patch0:         Test-Harness-3.38-Remove-shell-bangs.patch
696c23
BuildArch:      noarch
696c23
BuildRequires:  make
696c23
BuildRequires:  perl-generators
696c23
BuildRequires:  perl-interpreter
696c23
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
696c23
BuildRequires:  perl(strict)
696c23
BuildRequires:  perl(warnings)
696c23
# Run-time:
696c23
BuildRequires:  perl(base)
696c23
BuildRequires:  perl(Benchmark)
696c23
BuildRequires:  perl(Carp)
696c23
BuildRequires:  perl(Config)
696c23
BuildRequires:  perl(constant)
696c23
BuildRequires:  perl(Exporter)
696c23
BuildRequires:  perl(File::Basename)
696c23
BuildRequires:  perl(File::Find)
696c23
BuildRequires:  perl(File::Path)
696c23
BuildRequires:  perl(File::Spec)
696c23
BuildRequires:  perl(Getopt::Long)
696c23
BuildRequires:  perl(IO::Handle)
696c23
BuildRequires:  perl(IO::Select)
696c23
BuildRequires:  perl(POSIX)
696c23
BuildRequires:  perl(Text::ParseWords)
696c23
# Optional run-time:
696c23
BuildRequires:  perl(Encode)
696c23
# Keep Pod::Usage 1.12 really optional
696c23
BuildRequires:  perl(Term::ANSIColor)
696c23
BuildRequires:  perl(Time::HiRes)
696c23
# Tests:
696c23
BuildRequires:  perl(Data::Dumper)
696c23
# Dev::Null bundled for bootstrap
696c23
BuildRequires:  perl(File::Spec::Functions)
696c23
BuildRequires:  perl(IO::File)
696c23
BuildRequires:  perl(lib)
696c23
BuildRequires:  perl(Symbol)
696c23
BuildRequires:  perl(Test::More)
696c23
# Optional tests:
696c23
%if %{with perl_Test_Harness_enables_optional_test}
696c23
BuildRequires:  perl(CPAN::Meta::YAML)
696c23
BuildRequires:  perl(File::Temp)
696c23
%if !%{defined perl_bootstrap}
696c23
BuildRequires:  perl(TAP::Formatter::HTML) >= 0.10
696c23
BuildRequires:  perl(TAP::Harness::Archive)
696c23
BuildRequires:  perl(YAML)
696c23
%endif
696c23
%endif
696c23
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
696c23
Suggests:       perl(Term::ANSIColor)
696c23
Suggests:       perl(Time::HiRes)
696c23
696c23
# Filter example dependencies
696c23
%global __requires_exclude_from %{?__requires_exclude_from:%__requires_exclude_from|}^%{_datadir}/doc
696c23
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_datadir}/doc
696c23
696c23
%description
696c23
This package allows tests to be run and results automatically aggregated and
696c23
output to STDOUT.
696c23
696c23
Although, for historical reasons, the Test-Harness distribution takes its name
696c23
from this module it now exists only to provide TAP::Harness with an interface
696c23
that is somewhat backwards compatible with Test::Harness 2.xx. If you're
696c23
writing new code consider using TAP::Harness directly instead.
696c23
696c23
%prep
696c23
%setup -q -n Test-Harness-%{version}
696c23
%patch0 -p1
696c23
696c23
%build
696c23
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
696c23
make %{?_smp_mflags}
696c23
696c23
%install
696c23
make pure_install DESTDIR=$RPM_BUILD_ROOT
696c23
%{_fixperms} $RPM_BUILD_ROOT/*
696c23
696c23
%check
696c23
make test
696c23
696c23
%files
696c23
%doc Changes Changes-2.64 examples README
696c23
%{perl_vendorlib}/*
696c23
%{_bindir}/*
696c23
%{_mandir}/man1/*
696c23
%{_mandir}/man3/*
696c23
696c23
%changelog
696c23
* Fri Mar 29 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1:3.42-2
696c23
- Rebuild with enable hardening (bug #1636329)
696c23
696c23
* Tue Mar 20 2018 Petr Pisar <ppisar@redhat.com> - 1:3.42-1
696c23
- 3.42 bump
696c23
696c23
* Wed Feb 28 2018 Petr Pisar <ppisar@redhat.com> - 1:3.41-1
696c23
- 3.41 bump
696c23
696c23
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.39-5
696c23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
696c23
696c23
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.39-4
696c23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
696c23
696c23
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1:3.39-3
696c23
- Perl 5.26 re-rebuild of bootstrapped packages
696c23
696c23
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1:3.39-2
696c23
- Perl 5.26 rebuild
696c23
696c23
* Thu Apr 06 2017 Petr Pisar <ppisar@redhat.com> - 3.39-1
696c23
- 3.39 bump
696c23
696c23
* Tue Mar 14 2017 Petr Pisar <ppisar@redhat.com> - 3.38-1
696c23
- 3.38 bump
696c23
696c23
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.36-369
696c23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
696c23
696c23
* Tue Sep 13 2016 Petr Pisar <ppisar@redhat.com> - 3.36-368
696c23
- Remove old obsoleting perl-TAP-Harness-Env
696c23
696c23
* Wed Aug 03 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.36-367
696c23
- Avoid loading optional modules from default . (CVE-2016-1238)
696c23
696c23
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.36-366
696c23
- Perl 5.24 re-rebuild of bootstrapped packages
696c23
696c23
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.36-365
696c23
- Increase release to favour standalone package
696c23
696c23
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.36-2
696c23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
696c23
696c23
* Wed Jan 06 2016 Petr Pisar <ppisar@redhat.com> - 3.36-1
696c23
- 3.36 bump
696c23
696c23
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.35-347
696c23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
696c23
696c23
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 3.35-346
696c23
- Perl 5.22 re-rebuild of bootstrapped packages
696c23
696c23
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 3.35-345
696c23
- Increase release to favour standalone package
696c23
696c23
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 3.35-2
696c23
- Perl 5.22 rebuild
696c23
696c23
* Mon Feb 02 2015 Petr Pisar <ppisar@redhat.com> - 3.35-1
696c23
- 3.35 bump
696c23
696c23
* Thu Nov 13 2014 Petr Pisar <ppisar@redhat.com> - 3.34-1
696c23
- 3.34 bump
696c23
696c23
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 3.33-3
696c23
- Perl 5.20 re-rebuild of bootstrapped packages
696c23
696c23
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 3.33-2
696c23
- Perl 5.20 rebuild
696c23
696c23
* Mon Aug 18 2014 Petr Pisar <ppisar@redhat.com> - 3.33-1
696c23
- 3.33 bump
696c23
696c23
* Thu Jun 12 2014 Petr Pisar <ppisar@redhat.com> - 3.32-1
696c23
- 3.32 bump
696c23
696c23
* Mon Jun 09 2014 Petr Pisar <ppisar@redhat.com> - 3.31-1
696c23
- 3.31 bump
696c23
696c23
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.30-3
696c23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
696c23
696c23
* Thu Feb 27 2014 Petr Pisar <ppisar@redhat.com> - 3.30-2
696c23
- Obsolete perl-TAP-Harness-Env (bug #1067098)
696c23
696c23
* Mon Nov 18 2013 Petr Pisar <ppisar@redhat.com> - 3.30-1
696c23
- 3.30 bump
696c23
696c23
* Mon Oct 14 2013 Petr Pisar <ppisar@redhat.com> - 3.29-1
696c23
- 3.29 bump
696c23
696c23
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.28-3
696c23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
696c23
696c23
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 3.28-2
696c23
- Perl 5.18 rebuild
696c23
696c23
* Fri May 03 2013 Petr Pisar <ppisar@redhat.com> - 3.28-1
696c23
- 3.28 bump
696c23
696c23
* Thu May 02 2013 Petr Pisar <ppisar@redhat.com> - 3.27-1
696c23
- 3.27 bump
696c23
696c23
* Mon Mar 18 2013 Petr Pisar <ppisar@redhat.com> 3.26-1
696c23
- Specfile autogenerated by cpanspec 1.78.