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