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