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