perl-Pod-Perldoc/perl-Pod-Perldoc.spec

100 lines
3.3 KiB
RPMSpec
Raw Normal View History

2012-03-19 11:57:45 +00:00
%global cpan_version 3.17
2011-11-30 17:21:11 +00:00
Name: perl-Pod-Perldoc
Version: %(eval echo '%{cpan_version}' | tr '_' '.')
2012-05-15 09:19:42 +00:00
Release: 2%{?dist}
2011-11-30 17:21:11 +00:00
Summary: Look up Perl documentation in Pod format
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Pod-Perldoc/
2012-03-19 11:57:45 +00:00
Source0: http://www.cpan.org/authors/id/M/MA/MALLEN/Pod-Perldoc-%{cpan_version}.tar.gz
2012-05-15 09:19:42 +00:00
# Bug #821632, submitted to upstream as RT#77209
Patch0: Pod-Perldoc-3.17-Remove-POD-code-from-perldoc-synopis.patch
2011-11-30 17:21:11 +00:00
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
2012-03-19 11:57:45 +00:00
# Run-time:
2011-11-30 17:21:11 +00:00
BuildRequires: perl(Carp)
2012-03-19 11:57:45 +00:00
BuildRequires: perl(Encode)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp) >= 0.22
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IO::Select)
BuildRequires: perl(lib)
2011-11-30 17:21:11 +00:00
BuildRequires: perl(parent)
BuildRequires: perl(Pod::Man) >= 2.18
2012-03-19 11:57:45 +00:00
BuildRequires: perl(Pod::Simple::Checker)
2011-11-30 17:21:11 +00:00
BuildRequires: perl(Pod::Simple::RTF) >= 3.16
BuildRequires: perl(Pod::Simple::XMLOutStream) >= 3.16
BuildRequires: perl(Pod::Text)
2012-03-19 11:57:45 +00:00
BuildRequires: perl(Pod::Text::Color)
BuildRequires: perl(Pod::Text::Termcap)
BuildRequires: perl(Symbol)
BuildRequires: perl(Text::ParseWords)
# Tests:
BuildRequires: perl(base)
2011-11-30 17:21:11 +00:00
BuildRequires: perl(Test::More)
# Optional tests:
2012-03-19 11:57:45 +00:00
BuildRequires: perl(Tk)
BuildRequires: perl(Tk::Pod)
2011-11-30 17:21:11 +00:00
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
2012-03-19 11:57:45 +00:00
Requires: perl(Encode)
2011-11-30 17:21:11 +00:00
Requires: perl(File::Temp) >= 0.22
2012-03-19 11:57:45 +00:00
Requires: perl(IO::Handle)
Requires: perl(lib)
Requires: perl(Pod::Man) >= 2.18
Requires: perl(Pod::Simple::Checker)
2011-11-30 17:21:11 +00:00
Requires: perl(Pod::Simple::RTF) >= 3.16
Requires: perl(Pod::Simple::XMLOutStream) >= 3.16
Requires: perl(Text::ParseWords)
2012-03-19 11:57:45 +00:00
# Tk is optional
Requires: perl(Symbol)
2011-11-30 17:21:11 +00:00
# Remove underspecified dependencies
2011-11-30 17:26:11 +00:00
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Pod::Man|Pod::Simple::XMLOutStream|Pod::Simple::RTF\\)\\s*$
2011-11-30 17:21:11 +00:00
%description
perldoc looks up a piece of documentation in .pod format that is embedded
in the perl installation tree or in a perl script, and displays it via
"groff -man | $PAGER". This is primarily used for the documentation for
the perl library modules.
%prep
%setup -q -n Pod-Perldoc-%{cpan_version}
2012-05-15 09:19:42 +00:00
%patch0 -p1
2011-11-30 17:21:11 +00:00
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%doc Changes README
%{_bindir}/perldoc
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
2012-05-15 09:19:42 +00:00
* Tue May 15 2012 Petr Pisar <ppisar@redhat.com> - 3.17-2
- Fix perldoc synopsis (bug #821632)
2012-03-19 11:57:45 +00:00
* Mon Mar 19 2012 Petr Pisar <ppisar@redhat.com> - 3.17-1
- 3.17 bump
- Fix displaying long POD in groff
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.15.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2011-11-30 17:21:11 +00:00
* Mon Nov 21 2011 Petr Pisar <ppisar@redhat.com> 3.15-1
- Specfile autogenerated by cpanspec 1.78.
- Remove BuildRoot and defattr from spec code.
2011-11-30 17:26:11 +00:00
- perl(Config) BR removed
- Source URL fixed to point to BDFOY author
- Do not require unversioned perl(Pod::Simple::RTF)