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

173 lines
5.6 KiB
RPMSpec
Raw Normal View History

2013-04-29 13:12:06 +00:00
%global cpan_version 3.20
2011-11-30 17:21:11 +00:00
Name: perl-Pod-Perldoc
2012-08-13 13:51:33 +00:00
# let's overwrite the module from perl.srpm
2013-01-29 12:31:47 +00:00
Version: %(echo '%{cpan_version}' | sed 's/_/./')
2013-10-07 08:06:17 +00:00
Release: 7%{?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
2011-11-30 17:21:11 +00:00
BuildArch: noarch
2013-01-28 12:13:23 +00:00
BuildRequires: perl
2011-11-30 17:21:11 +00:00
BuildRequires: perl(ExtUtils::MakeMaker)
2013-05-23 14:20:57 +00:00
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
2012-03-19 11:57:45 +00:00
# Run-time:
2012-06-27 06:51:47 +00:00
# Pod::Perldoc::ToMan executes roff
BuildRequires: groff-base
2011-11-30 17:21:11 +00:00
BuildRequires: perl(Carp)
2013-05-23 14:20:57 +00:00
BuildRequires: perl(Config)
2012-03-19 11:57:45 +00:00
BuildRequires: perl(Encode)
2013-05-23 14:20:57 +00:00
BuildRequires: perl(Fcntl)
2013-07-31 06:49:48 +00:00
BuildRequires: perl(File::Basename)
2012-03-19 11:57:45 +00:00
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp) >= 0.22
2012-08-15 15:56:21 +00:00
BuildRequires: perl(HTTP::Tiny)
2012-03-19 11:57:45 +00:00
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)
2013-05-23 14:20:57 +00:00
BuildRequires: perl(vars)
2012-03-19 11:57:45 +00:00
# Tests:
BuildRequires: perl(base)
2011-11-30 17:21:11 +00:00
BuildRequires: perl(Test::More)
# Optional tests:
2012-06-01 06:26:34 +00:00
%if !%{defined perl_bootstrap}
%if !( 0%{?rhel} >= 7 )
2012-03-19 11:57:45 +00:00
BuildRequires: perl(Tk)
BuildRequires: perl(Tk::Pod)
2012-05-30 07:59:21 +00:00
%endif
2012-06-01 06:26:34 +00:00
%endif
2012-06-27 06:51:47 +00:00
# Pod::Perldoc::ToMan executes roff
Requires: groff-base
2013-01-28 12:13:23 +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-08-15 15:56:21 +00:00
Requires: perl(HTTP::Tiny)
2012-03-19 11:57:45 +00:00
Requires: perl(IO::Handle)
2013-05-23 14:20:57 +00:00
Requires: perl(IPC::Open3)
2012-03-19 11:57:45 +00:00
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}
%build
2013-01-28 12:13:23 +00:00
perl Makefile.PL INSTALLDIRS=vendor
2011-11-30 17:21:11 +00:00
make %{?_smp_mflags}
%install
2013-01-28 12:13:23 +00:00
make pure_install DESTDIR=$RPM_BUILD_ROOT
2011-11-30 17:21:11 +00:00
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
%{_fixperms} $RPM_BUILD_ROOT/*
2013-10-07 08:06:17 +00:00
# Correct perldoc.pod location, bug #1010057, CPAN RT#88898
mv ${RPM_BUILD_ROOT}%{perl_vendorlib}/{Pod,}/perldoc.pod
2011-11-30 17:21:11 +00:00
%check
make test
%files
%doc Changes README
%{_bindir}/perldoc
%{perl_vendorlib}/*
2013-01-28 12:13:23 +00:00
%{_mandir}/man1/*
2011-11-30 17:21:11 +00:00
%{_mandir}/man3/*
%changelog
2013-10-07 08:06:17 +00:00
* Mon Oct 07 2013 Petr Pisar <ppisar@redhat.com> - 3.20-7
- Correct perldoc.pod location (bug #1010057)
* Wed Aug 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 3.20-6
- Perl 5.18 re-rebuild of bootstrapped packages
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.20-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2013-07-31 06:49:48 +00:00
* Wed Jul 31 2013 Petr Pisar <ppisar@redhat.com> - 3.20-4
- Specify all dependencies
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 3.20-3
- Link minimal build-root packages against libperl.so explicitly
2013-05-23 14:20:57 +00:00
* Thu May 23 2013 Petr Pisar <ppisar@redhat.com> - 3.20-2
- Specify all dependencies
2013-04-29 13:12:06 +00:00
* Mon Apr 29 2013 Petr Pisar <ppisar@redhat.com> - 3.20-1
- 3.20 bump
2013-01-29 12:31:47 +00:00
* Tue Jan 29 2013 Petr Pisar <ppisar@redhat.com> - 3.19.01-1
- 3.19_01 bump
2013-01-28 12:13:23 +00:00
* Mon Jan 28 2013 Petr Pisar <ppisar@redhat.com> - 3.19.00-1
- 3.19 bump
* Wed Aug 15 2012 Petr Pisar <ppisar@redhat.com> - 3.17.00-241
- Do not build-require perl(Tk) on RHEL >= 7
2012-08-15 15:56:21 +00:00
- Depend on perl(HTTP::Tiny)
2012-08-13 13:51:33 +00:00
* Mon Aug 13 2012 Marcela Mašláňová <mmaslano@redhat.com> - 3.17.00-240
- Bump release to override sub-package from perl.spec
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.17-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 3.17-8
- Perl 5.16 re-rebuild of bootstrapped packages
2012-06-27 08:21:52 +00:00
* Wed Jun 27 2012 Petr Pisar <ppisar@redhat.com> - 3.17-7
- Perl 5.16 rebuild
2012-06-27 06:51:47 +00:00
* Wed Jun 27 2012 Petr Pisar <ppisar@redhat.com> - 3.17-6
- Require groff-base because Pod::Perldoc::ToMan executes roff
2012-06-06 21:22:42 +00:00
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 3.17-5
- Perl 5.16 rebuild
2012-06-01 06:26:34 +00:00
* Fri Jun 01 2012 Petr Pisar <ppisar@redhat.com> - 3.17-4
- Omit optional Tk tests on bootstrap
2012-05-30 07:59:21 +00:00
* Wed May 30 2012 Marcela Mašláňová <mmaslano@redhat.com> - 3.17-3
- conditionalize optional BR tests
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)