e2dcc4
# Optional features
e2dcc4
# Run Tk tests
e2dcc4
%bcond_without perl_Pod_Perldoc_enables_tk_test
e2dcc4
# Support for groff
e2dcc4
%bcond_without perl_enables_groff
e2dcc4
e2dcc4
Name:           perl-Pod-Perldoc
e2dcc4
# let's overwrite the module from perl.srpm
e2dcc4
Version:        3.28
e2dcc4
Release:        397%{?dist}
e2dcc4
Summary:        Look up Perl documentation in Pod format
e2dcc4
License:        GPL+ or Artistic
e2dcc4
Group:          Development/Libraries
e2dcc4
URL:            http://search.cpan.org/dist/Pod-Perldoc/
e2dcc4
Source0:        http://www.cpan.org/authors/id/M/MA/MALLEN/Pod-Perldoc-%{version}.tar.gz
e2dcc4
BuildArch:      noarch
e2dcc4
BuildRequires:  findutils
e2dcc4
BuildRequires:  make
e2dcc4
BuildRequires:  perl-interpreter
e2dcc4
BuildRequires:  perl-generators
e2dcc4
BuildRequires:  perl(ExtUtils::MakeMaker)
e2dcc4
BuildRequires:  perl(strict)
e2dcc4
BuildRequires:  perl(warnings)
e2dcc4
# Run-time:
e2dcc4
%if %{with perl_enables_groff}
e2dcc4
# Pod::Perldoc::ToMan executes roff
e2dcc4
BuildRequires:  groff-base
e2dcc4
%endif
e2dcc4
BuildRequires:  perl(Carp)
e2dcc4
BuildRequires:  perl(Config)
e2dcc4
BuildRequires:  perl(Encode)
e2dcc4
BuildRequires:  perl(Fcntl)
e2dcc4
BuildRequires:  perl(File::Basename)
e2dcc4
BuildRequires:  perl(File::Spec::Functions)
e2dcc4
# File::Temp 0.22 not used by tests
e2dcc4
# HTTP::Tiny not used by tests
e2dcc4
# IO::Handle not used by tests
e2dcc4
BuildRequires:  perl(IO::Select)
e2dcc4
# IPC::Open3 not used by tests
e2dcc4
BuildRequires:  perl(parent)
e2dcc4
# POD2::Base is optional
e2dcc4
# Pod::Checker is not needed if Pod::Simple::Checker is available
e2dcc4
BuildRequires:  perl(Pod::Man) >= 2.18
e2dcc4
BuildRequires:  perl(Pod::Simple::Checker)
e2dcc4
BuildRequires:  perl(Pod::Simple::RTF) >= 3.16
e2dcc4
BuildRequires:  perl(Pod::Simple::XMLOutStream) >= 3.16
e2dcc4
BuildRequires:  perl(Pod::Text)
e2dcc4
BuildRequires:  perl(Pod::Text::Color)
e2dcc4
BuildRequires:  perl(Pod::Text::Termcap)
e2dcc4
# Symbol not used by tests
e2dcc4
# Text::ParseWords not used by tests
e2dcc4
BuildRequires:  perl(vars)
e2dcc4
# Tests:
e2dcc4
BuildRequires:  perl(Test::More)
e2dcc4
# Optional tests:
e2dcc4
%if !%{defined perl_bootstrap}
e2dcc4
%if !( 0%{?rhel} >= 7 )
e2dcc4
%if %{with perl_Pod_Perldoc_enables_tk_test}
e2dcc4
BuildRequires:  perl(Tk)
e2dcc4
# Tk::FcyEntry is optional
e2dcc4
BuildRequires:  perl(Tk::Pod)
e2dcc4
%endif
e2dcc4
%endif
e2dcc4
%endif
e2dcc4
%if %{with perl_enables_groff}
e2dcc4
# Pod::Perldoc::ToMan executes roff
e2dcc4
Requires:       groff-base
e2dcc4
%endif
e2dcc4
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
e2dcc4
Requires:       perl(File::Temp) >= 0.22
e2dcc4
Requires:       perl(HTTP::Tiny)
e2dcc4
Requires:       perl(IO::Handle)
e2dcc4
Requires:       perl(IPC::Open3)
e2dcc4
# POD2::Base is optional
e2dcc4
# Pod::Checker is not needed if Pod::Simple::Checker is available
e2dcc4
Requires:       perl(Pod::Simple::Checker)
e2dcc4
Requires:       perl(Pod::Simple::RTF) >= 3.16
e2dcc4
Requires:       perl(Pod::Simple::XMLOutStream) >= 3.16
e2dcc4
Requires:       perl(Text::ParseWords)
e2dcc4
# Tk is optional
e2dcc4
Requires:       perl(Symbol)
e2dcc4
e2dcc4
# Remove underspecified dependencies
e2dcc4
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((Pod::Man|Pod::Simple::XMLOutStream|Pod::Simple::RTF)\\)$
e2dcc4
e2dcc4
%description
e2dcc4
perldoc looks up a piece of documentation in .pod format that is embedded
e2dcc4
in the perl installation tree or in a perl script, and displays it via
e2dcc4
"groff -man | $PAGER". This is primarily used for the documentation for
e2dcc4
the perl library modules.
e2dcc4
e2dcc4
%prep
e2dcc4
%setup -q -n Pod-Perldoc-%{version}
e2dcc4
e2dcc4
%build
e2dcc4
perl Makefile.PL INSTALLDIRS=vendor
e2dcc4
make %{?_smp_mflags}
e2dcc4
e2dcc4
%install
e2dcc4
make pure_install DESTDIR=$RPM_BUILD_ROOT
e2dcc4
find $RPM_BUILD_ROOT -type f -name .packlist -delete
e2dcc4
%{_fixperms} $RPM_BUILD_ROOT/*
e2dcc4
e2dcc4
%check
e2dcc4
make test
e2dcc4
e2dcc4
%files
e2dcc4
%doc Changes README
e2dcc4
%{_bindir}/perldoc
e2dcc4
%{perl_vendorlib}/*
e2dcc4
%{_mandir}/man1/*
e2dcc4
%{_mandir}/man3/*
e2dcc4
e2dcc4
%changelog
e2dcc4
* Fri Mar 29 2019 Jitka Plesnikova <jplesnik@redhat.com> - 3.28-397
e2dcc4
- Rebuild with enable hardening (bug #1636329)
e2dcc4
e2dcc4
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.28-396
e2dcc4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e2dcc4
e2dcc4
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.28-395
e2dcc4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e2dcc4
e2dcc4
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 3.28-394
e2dcc4
- Perl 5.26 re-rebuild of bootstrapped packages
e2dcc4
e2dcc4
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 3.28-393
e2dcc4
- Perl 5.26 rebuild
e2dcc4
e2dcc4
* Mon Apr 03 2017 Petr Pisar <ppisar@redhat.com> - 3.28-2
e2dcc4
- Introduce a build-condition on groff
e2dcc4
- Rename a _without_tk build-condition to
e2dcc4
  _without_perl_Pod_Perldoc_enables_tk_test
e2dcc4
e2dcc4
* Thu Mar 16 2017 Petr Pisar <ppisar@redhat.com> - 3.28-1
e2dcc4
- 3.28 bump
e2dcc4
e2dcc4
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.27-2
e2dcc4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e2dcc4
e2dcc4
* Tue Aug 09 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.27-1
e2dcc4
- 3.27 bump
e2dcc4
e2dcc4
* Fri Jul 29 2016 Petr Pisar <ppisar@redhat.com> - 3.26-1
e2dcc4
- 3.26 bump
e2dcc4
e2dcc4
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.25-366
e2dcc4
- Perl 5.24 re-rebuild of bootstrapped packages
e2dcc4
e2dcc4
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.25-365
e2dcc4
- Increase release to favour standalone package
e2dcc4
e2dcc4
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.25-349
e2dcc4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e2dcc4
e2dcc4
* Mon Sep 21 2015 Petr Pisar <ppisar@redhat.com> - 3.25-348
e2dcc4
- Current generator detects dependency on Encode and Pod::Man properly
e2dcc4
e2dcc4
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.25-347
e2dcc4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e2dcc4
e2dcc4
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 3.25-346
e2dcc4
- Perl 5.22 re-rebuild of bootstrapped packages
e2dcc4
e2dcc4
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 3.25-345
e2dcc4
- Increase release to favour standalone package
e2dcc4
e2dcc4
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 3.25-2
e2dcc4
- Perl 5.22 rebuild
e2dcc4
e2dcc4
* Fri Feb 13 2015 Petr Pisar <ppisar@redhat.com> - 3.25-1
e2dcc4
- 3.25 bump
e2dcc4
e2dcc4
* Mon Sep 15 2014 Petr Pisar <ppisar@redhat.com> - 3.24-4
e2dcc4
- Enable perl(Tk) tests
e2dcc4
e2dcc4
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 3.24-3
e2dcc4
- Perl 5.20 re-rebuild of bootstrapped packages
e2dcc4
- Disable Perl(Tk) tests temporarily until Perl-Tk works with perl-5.20
e2dcc4
e2dcc4
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 3.24-2
e2dcc4
- Perl 5.20 rebuild
e2dcc4
e2dcc4
* Fri Aug 22 2014 Petr Pisar <ppisar@redhat.com> - 3.24-1
e2dcc4
- 3.24 bump
e2dcc4
e2dcc4
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.23-2
e2dcc4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e2dcc4
e2dcc4
* Tue Feb 25 2014 Petr Pisar <ppisar@redhat.com> - 3.23-1
e2dcc4
- 3.23 bump
e2dcc4
e2dcc4
* Mon Jan 06 2014 Petr Pisar <ppisar@redhat.com> - 3.21-1
e2dcc4
- 3.21 bump
e2dcc4
e2dcc4
* Mon Oct 07 2013 Petr Pisar <ppisar@redhat.com> - 3.20-7
e2dcc4
- Correct perldoc.pod location (bug #1010057)
e2dcc4
e2dcc4
* Wed Aug 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 3.20-6
e2dcc4
- Perl 5.18 re-rebuild of bootstrapped packages
e2dcc4
e2dcc4
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.20-5
e2dcc4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e2dcc4
e2dcc4
* Wed Jul 31 2013 Petr Pisar <ppisar@redhat.com> - 3.20-4
e2dcc4
- Specify all dependencies
e2dcc4
e2dcc4
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 3.20-3
e2dcc4
- Link minimal build-root packages against libperl.so explicitly
e2dcc4
e2dcc4
* Thu May 23 2013 Petr Pisar <ppisar@redhat.com> - 3.20-2
e2dcc4
- Specify all dependencies
e2dcc4
e2dcc4
* Mon Apr 29 2013 Petr Pisar <ppisar@redhat.com> - 3.20-1
e2dcc4
- 3.20 bump
e2dcc4
e2dcc4
* Tue Jan 29 2013 Petr Pisar <ppisar@redhat.com> - 3.19.01-1
e2dcc4
- 3.19_01 bump
e2dcc4
e2dcc4
* Mon Jan 28 2013 Petr Pisar <ppisar@redhat.com> - 3.19.00-1
e2dcc4
- 3.19 bump
e2dcc4
e2dcc4
* Wed Aug 15 2012 Petr Pisar <ppisar@redhat.com> - 3.17.00-241
e2dcc4
- Do not build-require perl(Tk) on RHEL >= 7
e2dcc4
- Depend on perl(HTTP::Tiny)
e2dcc4
e2dcc4
* Mon Aug 13 2012 Marcela Mašláňová <mmaslano@redhat.com> - 3.17.00-240
e2dcc4
- Bump release to override sub-package from perl.spec
e2dcc4
e2dcc4
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.17-9
e2dcc4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e2dcc4
e2dcc4
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 3.17-8
e2dcc4
- Perl 5.16 re-rebuild of bootstrapped packages
e2dcc4
e2dcc4
* Wed Jun 27 2012 Petr Pisar <ppisar@redhat.com> - 3.17-7
e2dcc4
- Perl 5.16 rebuild
e2dcc4
e2dcc4
* Wed Jun 27 2012 Petr Pisar <ppisar@redhat.com> - 3.17-6
e2dcc4
- Require groff-base because Pod::Perldoc::ToMan executes roff
e2dcc4
e2dcc4
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 3.17-5
e2dcc4
- Perl 5.16 rebuild
e2dcc4
e2dcc4
* Fri Jun 01 2012 Petr Pisar <ppisar@redhat.com> - 3.17-4
e2dcc4
- Omit optional Tk tests on bootstrap
e2dcc4
e2dcc4
* Wed May 30 2012 Marcela Mašláňová <mmaslano@redhat.com> - 3.17-3
e2dcc4
- conditionalize optional BR tests
e2dcc4
e2dcc4
* Tue May 15 2012 Petr Pisar <ppisar@redhat.com> - 3.17-2
e2dcc4
- Fix perldoc synopsis (bug #821632)
e2dcc4
e2dcc4
* Mon Mar 19 2012 Petr Pisar <ppisar@redhat.com> - 3.17-1
e2dcc4
- 3.17 bump
e2dcc4
- Fix displaying long POD in groff
e2dcc4
e2dcc4
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.15.10-2
e2dcc4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e2dcc4
e2dcc4
* Mon Nov 21 2011 Petr Pisar <ppisar@redhat.com> 3.15-1
e2dcc4
- Specfile autogenerated by cpanspec 1.78.
e2dcc4
- Remove BuildRoot and defattr from spec code.
e2dcc4
- perl(Config) BR removed
e2dcc4
- Source URL fixed to point to BDFOY author
e2dcc4
- Do not require unversioned perl(Pod::Simple::RTF)