Blame SPECS/perl-Pod-Perldoc.spec

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