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