bd480e
%global cpan_version 3.20
bd480e
Name:           perl-Pod-Perldoc
bd480e
# let's overwrite the module from perl.srpm
bd480e
Version:        %(echo '%{cpan_version}' | sed 's/_/./')
612a82
Release:        4%{?dist}
bd480e
Summary:        Look up Perl documentation in Pod format
bd480e
License:        GPL+ or Artistic
bd480e
Group:          Development/Libraries
bd480e
URL:            http://search.cpan.org/dist/Pod-Perldoc/
bd480e
Source0:        http://www.cpan.org/authors/id/M/MA/MALLEN/Pod-Perldoc-%{cpan_version}.tar.gz
bd480e
BuildArch:      noarch
bd480e
BuildRequires:  perl
bd480e
BuildRequires:  perl(ExtUtils::MakeMaker)
bd480e
BuildRequires:  perl(strict)
bd480e
BuildRequires:  perl(warnings)
bd480e
# Run-time:
bd480e
# Pod::Perldoc::ToMan executes roff
bd480e
BuildRequires:  groff-base
bd480e
BuildRequires:  perl(Carp)
bd480e
BuildRequires:  perl(Config)
bd480e
BuildRequires:  perl(Encode)
bd480e
BuildRequires:  perl(Fcntl)
bd480e
BuildRequires:  perl(File::Spec::Functions)
bd480e
BuildRequires:  perl(File::Temp) >= 0.22
bd480e
BuildRequires:  perl(HTTP::Tiny)
bd480e
BuildRequires:  perl(IO::Handle)
bd480e
BuildRequires:  perl(IO::Select)
bd480e
BuildRequires:  perl(lib)
bd480e
BuildRequires:  perl(parent)
bd480e
BuildRequires:  perl(Pod::Man) >= 2.18
bd480e
BuildRequires:  perl(Pod::Simple::Checker)
bd480e
BuildRequires:  perl(Pod::Simple::RTF) >= 3.16
bd480e
BuildRequires:  perl(Pod::Simple::XMLOutStream) >= 3.16
bd480e
BuildRequires:  perl(Pod::Text)
bd480e
BuildRequires:  perl(Pod::Text::Color)
bd480e
BuildRequires:  perl(Pod::Text::Termcap)
bd480e
BuildRequires:  perl(Symbol)
bd480e
BuildRequires:  perl(Text::ParseWords)
bd480e
BuildRequires:  perl(vars)
bd480e
# Tests:
bd480e
BuildRequires:  perl(base)
bd480e
BuildRequires:  perl(Test::More)
bd480e
# Optional tests:
bd480e
%if !%{defined perl_bootstrap}
bd480e
%if !( 0%{?rhel} >= 7 )
bd480e
BuildRequires:  perl(Tk)
bd480e
BuildRequires:  perl(Tk::Pod)
bd480e
%endif
bd480e
%endif
bd480e
# Pod::Perldoc::ToMan executes roff
bd480e
Requires:       groff-base
bd480e
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
bd480e
Requires:       perl(Encode)
bd480e
Requires:       perl(File::Temp) >= 0.22
bd480e
Requires:       perl(HTTP::Tiny)
bd480e
Requires:       perl(IO::Handle)
bd480e
Requires:       perl(IPC::Open3)
bd480e
Requires:       perl(lib)
bd480e
Requires:       perl(Pod::Man) >= 2.18
bd480e
Requires:       perl(Pod::Simple::Checker)
bd480e
Requires:       perl(Pod::Simple::RTF) >= 3.16
bd480e
Requires:       perl(Pod::Simple::XMLOutStream) >= 3.16
bd480e
Requires:       perl(Text::ParseWords)
bd480e
# Tk is optional
bd480e
Requires:       perl(Symbol)
bd480e
bd480e
# Remove underspecified dependencies
bd480e
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Pod::Man|Pod::Simple::XMLOutStream|Pod::Simple::RTF\\)\\s*$
bd480e
bd480e
%description
bd480e
perldoc looks up a piece of documentation in .pod format that is embedded
bd480e
in the perl installation tree or in a perl script, and displays it via
bd480e
"groff -man | $PAGER". This is primarily used for the documentation for
bd480e
the perl library modules.
bd480e
bd480e
%prep
bd480e
%setup -q -n Pod-Perldoc-%{cpan_version}
bd480e
bd480e
%build
bd480e
perl Makefile.PL INSTALLDIRS=vendor
bd480e
make %{?_smp_mflags}
bd480e
bd480e
%install
bd480e
make pure_install DESTDIR=$RPM_BUILD_ROOT
bd480e
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
bd480e
%{_fixperms} $RPM_BUILD_ROOT/*
bd480e
# Correct perldoc.pod location, bug #1015993, CPAN RT#88898
bd480e
mv ${RPM_BUILD_ROOT}%{perl_vendorlib}/{Pod,}/perldoc.pod
bd480e
bd480e
%check
bd480e
make test
bd480e
bd480e
%files
bd480e
%doc Changes README
bd480e
%{_bindir}/perldoc
bd480e
%{perl_vendorlib}/*
bd480e
%{_mandir}/man1/*
bd480e
%{_mandir}/man3/*
bd480e
bd480e
%changelog
612a82
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.20-4
612a82
- Mass rebuild 2013-12-27
612a82
bd480e
* Mon Oct 07 2013 Petr Pisar <ppisar@redhat.com> - 3.20-3
bd480e
- Correct perldoc.pod location (bug #1015993)
bd480e
bd480e
* Thu May 23 2013 Petr Pisar <ppisar@redhat.com> - 3.20-2
bd480e
- Specify all dependencies
bd480e
bd480e
* Mon Apr 29 2013 Petr Pisar <ppisar@redhat.com> - 3.20-1
bd480e
- 3.20 bump
bd480e
bd480e
* Tue Jan 29 2013 Petr Pisar <ppisar@redhat.com> - 3.19.01-1
bd480e
- 3.19_01 bump
bd480e
bd480e
* Mon Jan 28 2013 Petr Pisar <ppisar@redhat.com> - 3.19.00-1
bd480e
- 3.19 bump
bd480e
bd480e
* Wed Aug 15 2012 Petr Pisar <ppisar@redhat.com> - 3.17.00-241
bd480e
- Do not build-require perl(Tk) on RHEL >= 7
bd480e
- Depend on perl(HTTP::Tiny)
bd480e
bd480e
* Mon Aug 13 2012 Marcela Mašláňová <mmaslano@redhat.com> - 3.17.00-240
bd480e
- Bump release to override sub-package from perl.spec
bd480e
bd480e
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.17-9
bd480e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
bd480e
bd480e
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 3.17-8
bd480e
- Perl 5.16 re-rebuild of bootstrapped packages
bd480e
bd480e
* Wed Jun 27 2012 Petr Pisar <ppisar@redhat.com> - 3.17-7
bd480e
- Perl 5.16 rebuild
bd480e
bd480e
* Wed Jun 27 2012 Petr Pisar <ppisar@redhat.com> - 3.17-6
bd480e
- Require groff-base because Pod::Perldoc::ToMan executes roff
bd480e
bd480e
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 3.17-5
bd480e
- Perl 5.16 rebuild
bd480e
bd480e
* Fri Jun 01 2012 Petr Pisar <ppisar@redhat.com> - 3.17-4
bd480e
- Omit optional Tk tests on bootstrap
bd480e
bd480e
* Wed May 30 2012 Marcela Mašláňová <mmaslano@redhat.com> - 3.17-3
bd480e
- conditionalize optional BR tests
bd480e
bd480e
* Tue May 15 2012 Petr Pisar <ppisar@redhat.com> - 3.17-2
bd480e
- Fix perldoc synopsis (bug #821632)
bd480e
bd480e
* Mon Mar 19 2012 Petr Pisar <ppisar@redhat.com> - 3.17-1
bd480e
- 3.17 bump
bd480e
- Fix displaying long POD in groff
bd480e
bd480e
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.15.10-2
bd480e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
bd480e
bd480e
* Mon Nov 21 2011 Petr Pisar <ppisar@redhat.com> 3.15-1
bd480e
- Specfile autogenerated by cpanspec 1.78.
bd480e
- Remove BuildRoot and defattr from spec code.
bd480e
- perl(Config) BR removed
bd480e
- Source URL fixed to point to BDFOY author
bd480e
- Do not require unversioned perl(Pod::Simple::RTF)