From 9554a98d173d56187a8dc810c7e66eb184d945de Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jun 09 2014 08:46:20 +0000 Subject: import perl516-perl-Pod-Perldoc-3.20-4.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ffaebf0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/Pod-Perldoc-3.20.tar.gz diff --git a/.perl516-perl-Pod-Perldoc.metadata b/.perl516-perl-Pod-Perldoc.metadata new file mode 100644 index 0000000..56f0898 --- /dev/null +++ b/.perl516-perl-Pod-Perldoc.metadata @@ -0,0 +1 @@ +2a0bad00fe93fba122aee513b68d5ee211af5571 SOURCES/Pod-Perldoc-3.20.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index ce46a88..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -\ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/perl-Pod-Perldoc.spec b/SPECS/perl-Pod-Perldoc.spec new file mode 100644 index 0000000..7806dc8 --- /dev/null +++ b/SPECS/perl-Pod-Perldoc.spec @@ -0,0 +1,146 @@ +%{?scl:%scl_package perl-Pod-Perldoc} +%{!?scl:%global pkg_name %{name}} + +%global cpan_version 3.20 +Name: %{?scl_prefix}perl-Pod-Perldoc +# let's overwrite the module from perl.srpm +Version: %(echo '%{cpan_version}' | sed 's/_/./') +Release: 4%{?dist} +Summary: Look up Perl documentation in Pod format +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Pod-Perldoc/ +Source0: http://www.cpan.org/authors/id/M/MA/MALLEN/Pod-Perldoc-%{cpan_version}.tar.gz +BuildArch: noarch +BuildRequires: %{?scl_prefix}perl +BuildRequires: %{?scl_prefix}perl(ExtUtils::MakeMaker) +BuildRequires: %{?scl_prefix}perl(strict) +BuildRequires: %{?scl_prefix}perl(warnings) +# Run-time: +# Pod::Perldoc::ToMan executes roff +%if ( 0%{?rhel} && 0%{?rhel} < 7 ) +BuildRequires: groff +%else +BuildRequires: groff-base +%endif +BuildRequires: %{?scl_prefix}perl(Carp) +BuildRequires: %{?scl_prefix}perl(Config) +BuildRequires: %{?scl_prefix}perl(Encode) +BuildRequires: %{?scl_prefix}perl(Fcntl) +BuildRequires: %{?scl_prefix}perl(File::Basename) +BuildRequires: %{?scl_prefix}perl(File::Spec::Functions) +BuildRequires: %{?scl_prefix}perl(File::Temp) >= 0.22 +BuildRequires: %{?scl_prefix}perl(HTTP::Tiny) +BuildRequires: %{?scl_prefix}perl(IO::Handle) +BuildRequires: %{?scl_prefix}perl(IO::Select) +BuildRequires: %{?scl_prefix}perl(lib) +BuildRequires: %{?scl_prefix}perl(parent) +BuildRequires: %{?scl_prefix}perl(Pod::Man) >= 2.18 +BuildRequires: %{?scl_prefix}perl(Pod::Simple::Checker) +BuildRequires: %{?scl_prefix}perl(Pod::Simple::RTF) >= 3.16 +BuildRequires: %{?scl_prefix}perl(Pod::Simple::XMLOutStream) >= 3.16 +BuildRequires: %{?scl_prefix}perl(Pod::Text) +BuildRequires: %{?scl_prefix}perl(Pod::Text::Color) +BuildRequires: %{?scl_prefix}perl(Pod::Text::Termcap) +BuildRequires: %{?scl_prefix}perl(Symbol) +BuildRequires: %{?scl_prefix}perl(Text::ParseWords) +BuildRequires: %{?scl_prefix}perl(vars) +# Tests: +BuildRequires: %{?scl_prefix}perl(base) +BuildRequires: %{?scl_prefix}perl(Test::More) +# Optional tests: +%if !%{defined perl_bootstrap} +%if !( 0%{?rhel} >= 7 ) && ! 0%{?scl:1} +BuildRequires: %{?scl_prefix}perl(Tk) +BuildRequires: %{?scl_prefix}perl(Tk::Pod) +%endif +%endif +# Pod::Perldoc::ToMan executes roff +%if ( 0%{?rhel} && 0%{?rhel} < 7 ) +Requires: groff +%else +Requires: groff-base +%endif +%{?scl:%global perl_version %(scl enable %{scl} 'eval "`perl -V:version`"; echo $version')} +%{!?scl:%global perl_version %(eval "`perl -V:version`"; echo $version)} +Requires: %{?scl_prefix}perl(:MODULE_COMPAT_%{perl_version}) +Requires: %{?scl_prefix}perl(Encode) +Requires: %{?scl_prefix}perl(File::Temp) >= 0.22 +Requires: %{?scl_prefix}perl(HTTP::Tiny) +Requires: %{?scl_prefix}perl(IO::Handle) +Requires: %{?scl_prefix}perl(IPC::Open3) +Requires: %{?scl_prefix}perl(lib) +%if ! ( 0%{?rhel} && 0%{?rhel} < 7 ) +Requires: %{?scl_prefix}perl(Pod::Man) >= 2.18 +%endif +Requires: %{?scl_prefix}perl(Pod::Simple::Checker) +Requires: %{?scl_prefix}perl(Pod::Simple::RTF) >= 3.16 +Requires: %{?scl_prefix}perl(Pod::Simple::XMLOutStream) >= 3.16 +Requires: %{?scl_prefix}perl(Text::ParseWords) +# Tk is optional +Requires: %{?scl_prefix}perl(Symbol) + +# Remove underspecified dependencies +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Pod::Man|Pod::Simple::XMLOutStream|Pod::Simple::RTF\\)\\s*$ + +%if ( 0%{?rhel} && 0%{?rhel} < 7 ) +%filter_from_requires /perl(\(Pod::Man\|Pod::Simple::XMLOutStream\|Pod::Simple::RTF\))\s*$/d +%filter_setup +%endif + +%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 +%{?scl:scl enable %{scl} "} +perl Makefile.PL INSTALLDIRS=vendor +%{?scl:"} +%{?scl:scl enable %{scl} "} +make %{?_smp_mflags} +%{?scl:"} + +%install +%{?scl:scl enable %{scl} "} +make pure_install DESTDIR=$RPM_BUILD_ROOT +%{?scl:"} +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +%{_fixperms} $RPM_BUILD_ROOT/* +# Correct perldoc.pod location, bug #1010057, CPAN RT#88898 +mv ${RPM_BUILD_ROOT}%{perl_vendorlib}/{Pod,}/perldoc.pod + +%check +%{?scl:scl enable %{scl} "} +make test +%{?scl:"} + +%files +%doc Changes README +%{_bindir}/perldoc +%{perl_vendorlib}/* +%{_mandir}/man1/* +%{_mandir}/man3/* + +%changelog +* Thu Feb 13 2014 Jitka Plesnikova - 3.20-4 +- Updated conditions to work properly for non-RHEL systems +- Resolves: rhbz#1064855 + +* Mon Dec 09 2013 Jitka Plesnikova - 3.20-3 +- Update filters +- Resolves: rhbz#1038698 + +* Wed Nov 13 2013 Jitka Plesnikova - 3.20-2 +- Update dependencies +- Correct perldoc.pod location (bug #1010057) + +* Tue May 21 2013 Jitka Plesnikova - 3.20-1 +- 3.20 bump + +* Wed Feb 13 2013 Jitka Plesnikova - 3.19.01-1 +- SCL package - initial import