c8-stream-5.24
imports/c8-stream-5.24/perl-podlators-4.09-4.module+el8.1.0+2926+ce7246ad
commit
98c325b42e
@ -0,0 +1 @@
|
||||
SOURCES/podlators-4.09.tar.gz
|
@ -0,0 +1 @@
|
||||
82b9ef16999957156d4c062b1f6dad0e075307de SOURCES/podlators-4.09.tar.gz
|
@ -0,0 +1,45 @@
|
||||
From 72b821db9a1e5e25febe2f3551dcb1ef273206c9 Mon Sep 17 00:00:00 2001
|
||||
From: Russ Allbery <rra@cpan.org>
|
||||
Date: Sun, 17 Sep 2017 11:38:23 -0700
|
||||
Subject: [PATCH] Coerce file handle to glob for PerlIO::get_layers
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
[Pod::Man] Wrap the output file descriptor in a glob before passing it
|
||||
to PerlIO::get_layers so that the layer check works properly.
|
||||
Previously, this code would throw a warning if given a scalar not
|
||||
wrapped in a glob and not detect layers properly. Patch from Zefram.
|
||||
(#122521)
|
||||
|
||||
Petr Písař: Port to 4.09.
|
||||
|
||||
---
|
||||
lib/Pod/Man.pm | 7 +++++--
|
||||
|
||||
diff --git a/lib/Pod/Man.pm b/lib/Pod/Man.pm
|
||||
index db49bde..a737e5b 100644
|
||||
--- a/lib/Pod/Man.pm
|
||||
+++ b/lib/Pod/Man.pm
|
||||
@@ -800,13 +800,16 @@ sub start_document {
|
||||
# has a PerlIO encoding layer set. If it does not, we'll need to encode
|
||||
# our output before printing it (handled in the output() sub). Wrap the
|
||||
# check in an eval to handle versions of Perl without PerlIO.
|
||||
+ #
|
||||
+ # PerlIO::get_layers still requires its argument be a glob, so coerce the
|
||||
+ # file handle to a glob.
|
||||
$$self{ENCODE} = 0;
|
||||
if ($$self{utf8}) {
|
||||
$$self{ENCODE} = 1;
|
||||
eval {
|
||||
my @options = (output => 1, details => 1);
|
||||
- my $flag = (PerlIO::get_layers ($$self{output_fh}, @options))[-1];
|
||||
- if ($flag & PerlIO::F_UTF8 ()) {
|
||||
+ my @layers = PerlIO::get_layers (*{$$self{output_fh}}, @options);
|
||||
+ if ($layers[-1] & PerlIO::F_UTF8 ()) {
|
||||
$$self{ENCODE} = 0;
|
||||
}
|
||||
}
|
||||
--
|
||||
2.13.6
|
||||
|
@ -0,0 +1,93 @@
|
||||
From 2b37a985ccd71d1a88e23cefd789a54d690d3761 Mon Sep 17 00:00:00 2001
|
||||
From: Russ Allbery <rra@cpan.org>
|
||||
Date: Sat, 27 May 2017 18:44:06 -0700
|
||||
Subject: [PATCH] Properly diagnose empty input to pod2man and pod2text
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Produce a proper diagnostic when given empty input on standard input
|
||||
with no other arguments to pod2man or pod2text. Reported by Guillem
|
||||
Jover.
|
||||
|
||||
Fixes #5
|
||||
|
||||
Petr Písař: Ported to 4.09.
|
||||
|
||||
---
|
||||
scripts/pod2man.PL | 10 +++++++---
|
||||
scripts/pod2text.PL | 10 +++++++---
|
||||
|
||||
diff --git a/scripts/pod2man.PL b/scripts/pod2man.PL
|
||||
index b70057b..3f19b79 100755
|
||||
--- a/scripts/pod2man.PL
|
||||
+++ b/scripts/pod2man.PL
|
||||
@@ -47,7 +47,7 @@ print {$out} <<'SCRIPT_BODY' or die "Cannot write to $file: $!\n";
|
||||
# pod2man -- Convert POD data to formatted *roff input.
|
||||
#
|
||||
# Copyright 1999, 2000, 2001, 2004, 2006, 2008, 2010, 2012, 2013, 2014, 2015,
|
||||
-# 2016 Russ Allbery <rra@cpan.org>
|
||||
+# 2016, 2017 Russ Allbery <rra@cpan.org>
|
||||
#
|
||||
# This program is free software; you may redistribute it and/or modify it
|
||||
# under the same terms as Perl itself.
|
||||
@@ -113,7 +113,11 @@ do {
|
||||
$parser->parse_from_file (@files);
|
||||
if ($parser->{CONTENTLESS}) {
|
||||
$status = 1;
|
||||
- warn "$0: unable to format $files[0]\n";
|
||||
+ if (defined $files[0]) {
|
||||
+ warn "$0: unable to format $files[0]\n";
|
||||
+ } else {
|
||||
+ warn "$0: unable to format standard input\n";
|
||||
+ }
|
||||
if (defined ($files[1]) and $files[1] ne '-') {
|
||||
unlink $files[1] unless (-s $files[1]);
|
||||
}
|
||||
@@ -428,7 +432,7 @@ B<pod2man> by Larry Wall and Tom Christiansen.
|
||||
=head1 COPYRIGHT AND LICENSE
|
||||
|
||||
Copyright 1999, 2000, 2001, 2004, 2006, 2008, 2010, 2012, 2013, 2014,
|
||||
-2015, 2016 Russ Allbery <rra@cpan.org>
|
||||
+2015, 2016, 2017 Russ Allbery <rra@cpan.org>
|
||||
|
||||
This program is free software; you may redistribute it and/or modify it
|
||||
under the same terms as Perl itself.
|
||||
diff --git a/scripts/pod2text.PL b/scripts/pod2text.PL
|
||||
index f6c8071..d1a146e 100755
|
||||
--- a/scripts/pod2text.PL
|
||||
+++ b/scripts/pod2text.PL
|
||||
@@ -47,7 +47,7 @@ print {$out} <<'SCRIPT_BODY' or die "Cannot write to $file: $!\n";
|
||||
# pod2text -- Convert POD data to formatted ASCII text.
|
||||
#
|
||||
# Copyright 1999, 2000, 2001, 2004, 2006, 2008, 2010, 2012, 2013, 2014, 2015,
|
||||
-# 2016 Russ Allbery <rra@cpan.org>
|
||||
+# 2016, 2017 Russ Allbery <rra@cpan.org>
|
||||
#
|
||||
# This program is free software; you may redistribute it and/or modify it
|
||||
# under the same terms as Perl itself.
|
||||
@@ -123,7 +123,11 @@ do {
|
||||
$parser->parse_from_file ($input, $output);
|
||||
if ($parser->{CONTENTLESS}) {
|
||||
$status = 1;
|
||||
- warn "$0: unable to format $input\n";
|
||||
+ if (defined $input) {
|
||||
+ warn "$0: unable to format $input\n";
|
||||
+ } else {
|
||||
+ warn "$0: unable to format standard input\n";
|
||||
+ }
|
||||
if (defined ($output) and $output ne '-') {
|
||||
unlink $output unless (-s $output);
|
||||
}
|
||||
@@ -358,7 +362,7 @@ Russ Allbery <rra@cpan.org>.
|
||||
=head1 COPYRIGHT AND LICENSE
|
||||
|
||||
Copyright 1999, 2000, 2001, 2004, 2006, 2008, 2010, 2012, 2013, 2014, 2015,
|
||||
-2016 Russ Allbery <rra@cpan.org>
|
||||
+2016, 2017 Russ Allbery <rra@cpan.org>
|
||||
|
||||
This program is free software; you may redistribute it and/or modify it
|
||||
under the same terms as Perl itself.
|
||||
--
|
||||
2.13.6
|
||||
|
@ -0,0 +1,207 @@
|
||||
Name: perl-podlators
|
||||
Version: 4.09
|
||||
Release: 4%{?dist}
|
||||
Summary: Format POD source into various output formats
|
||||
# pod/perlpodstyle: MIT
|
||||
# other files: GPL+ or Artistic
|
||||
## Not in the binary package
|
||||
# t/docs/pod.t: MIT
|
||||
# t/docs/pod-spelling.t: MIT
|
||||
# t/docs/synopsis.t: MIT
|
||||
License: (GPL+ or Artistic) and MIT
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/podlators/
|
||||
Source0: http://www.cpan.org/authors/id/R/RR/RRA/podlators-%{version}.tar.gz
|
||||
# Fix pod2man and pod2text error messages when standard input is empty,
|
||||
# <https://github.com/rra/podlators/issues/5>, fixed in 4.10
|
||||
Patch0: podlators-4.09-Properly-diagnose-empty-input-to-pod2man-and-pod2tex.patch
|
||||
# Fix layers detection on output file handle, CPAN RT#122521, fixed in 4.10
|
||||
Patch1: podlators-4.09-Coerce-file-handle-to-glob-for-PerlIO-get_layers.patch
|
||||
BuildArch: noarch
|
||||
BuildRequires: findutils
|
||||
BuildRequires: make
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl(Config)
|
||||
# Cwd run by PL script in scripts directory
|
||||
BuildRequires: perl(Cwd)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
# File::Basename run by PL script in scripts directory
|
||||
BuildRequires: perl(File::Basename)
|
||||
# File::Spec version declared in lib/Pod/Man.pm comment
|
||||
BuildRequires: perl(File::Spec) >= 0.8
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(warnings)
|
||||
# Run-time:
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(Encode)
|
||||
BuildRequires: perl(Exporter)
|
||||
# Getopt::Long not used at tests
|
||||
BuildRequires: perl(Pod::Simple) >= 3.06
|
||||
# Pod::Usage not used at tests
|
||||
BuildRequires: perl(POSIX)
|
||||
BuildRequires: perl(subs)
|
||||
BuildRequires: perl(Term::ANSIColor)
|
||||
BuildRequires: perl(Term::Cap)
|
||||
BuildRequires: perl(vars)
|
||||
# Tests:
|
||||
BuildRequires: perl(File::Find)
|
||||
BuildRequires: perl(Getopt::Long)
|
||||
BuildRequires: perl(IO::File)
|
||||
BuildRequires: perl(lib)
|
||||
BuildRequires: perl(Test::More)
|
||||
# Optional tests:
|
||||
# JSON::PP not used
|
||||
# Perl::Critic::Utils not used
|
||||
# Perl6::Slurp not used
|
||||
BuildRequires: perl(PerlIO::encoding)
|
||||
# Test::MinimumVersion not used
|
||||
# Test::Pod not used
|
||||
# Test::Spelling not used
|
||||
# Test::Strict not used
|
||||
# Test::Synopsis not used
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Requires: perl(File::Basename)
|
||||
# File::Spec version declared in lib/Pod/Man.pm comment
|
||||
Requires: perl(File::Spec) >= 0.8
|
||||
Requires: perl(Pod::Simple) >= 3.06
|
||||
Conflicts: perl < 4:5.16.1-234
|
||||
|
||||
# Filter under-specified dependencies
|
||||
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Pod::Simple\\)$
|
||||
|
||||
%description
|
||||
This package contains Pod::Man and Pod::Text modules which convert POD input
|
||||
to *roff source output, suitable for man pages, or plain text. It also
|
||||
includes several sub-classes of Pod::Text for formatted output to terminals
|
||||
with various capabilities.
|
||||
|
||||
%prep
|
||||
%setup -q -n podlators-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -delete
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc Changes NOTES README THANKS TODO
|
||||
%{_bindir}/*
|
||||
%{perl_vendorlib}/*
|
||||
%{_mandir}/man1/*
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Fri Mar 29 2019 Jitka Plesnikova <jplesnik@redhat.com> - 4.09-4
|
||||
- Rebuild with enable hardening (bug #1636329)
|
||||
|
||||
* Tue Jan 02 2018 Petr Pisar <ppisar@redhat.com> - 4.09-3
|
||||
- Fix pod2man and pod2text error messages when standard input is empty
|
||||
- Fix layers detection on output file handle (CPAN RT#122521)
|
||||
|
||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.09-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Tue Nov 08 2016 Petr Pisar <ppisar@redhat.com> - 4.09-1
|
||||
- 4.09 bump
|
||||
|
||||
* Mon Sep 26 2016 Petr Pisar <ppisar@redhat.com> - 4.08-1
|
||||
- 4.08 bump
|
||||
|
||||
* Tue Sep 20 2016 Petr Pisar <ppisar@redhat.com> - 4.07-366
|
||||
- License declaration corrected to "(GPL+ or Artistic) and MIT"
|
||||
|
||||
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 4.07-365
|
||||
- Increase release to favour standalone package
|
||||
|
||||
* Mon Mar 21 2016 Petr Pisar <ppisar@redhat.com> - 4.07-1
|
||||
- 4.07 bump
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.06-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Mon Feb 01 2016 Petr Pisar <ppisar@redhat.com> - 4.06-1
|
||||
- 4.06 bump
|
||||
|
||||
* Mon Jan 18 2016 Petr Pisar <ppisar@redhat.com> - 4.05-1
|
||||
- 4.05 bump
|
||||
|
||||
* Mon Jan 04 2016 Petr Pisar <ppisar@redhat.com> - 4.04-1
|
||||
- 4.04 bump
|
||||
|
||||
* Mon Dec 07 2015 Petr Pisar <ppisar@redhat.com> - 4.03-1
|
||||
- 4.03 bump
|
||||
|
||||
* Thu Dec 03 2015 Petr Pisar <ppisar@redhat.com> - 4.02-1
|
||||
- 4.02 bump
|
||||
|
||||
* Wed Dec 02 2015 Petr Pisar <ppisar@redhat.com> - 4.01-1
|
||||
- 4.01 bump
|
||||
|
||||
* Tue Dec 01 2015 Petr Pisar <ppisar@redhat.com> - 4.00-1
|
||||
- 4.00 bump
|
||||
|
||||
* Wed Jul 15 2015 Petr Pisar <ppisar@redhat.com> - 2.5.3-347
|
||||
- Adapt tests to Term-Cap-1.16
|
||||
|
||||
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.3-346
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.5.3-345
|
||||
- Increase release to favour standalone package
|
||||
|
||||
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.5.3-4
|
||||
- Perl 5.22 rebuild
|
||||
|
||||
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.5.3-3
|
||||
- Perl 5.20 rebuild
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.3-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Tue Oct 08 2013 Petr Pisar <ppisar@redhat.com> - 2.5.3-1
|
||||
- 2.5.3 bump
|
||||
|
||||
* Mon Sep 23 2013 Petr Pisar <ppisar@redhat.com> - 2.5.2-1
|
||||
- 2.5.2 bump
|
||||
|
||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.1-291
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Mon Jul 15 2013 Petr Pisar <ppisar@redhat.com> - 2.5.1-290
|
||||
- Increase release to favour standalone package
|
||||
|
||||
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 2.5.1-3
|
||||
- Link minimal build-root packages against libperl.so explicitly
|
||||
|
||||
* Tue Jun 25 2013 Petr Pisar <ppisar@redhat.com> - 2.5.1-2
|
||||
- Specify all dependencies
|
||||
|
||||
* Thu Feb 28 2013 Petr Pisar <ppisar@redhat.com> - 2.5.1-1
|
||||
- 2.5.1 bump
|
||||
|
||||
* Thu Feb 07 2013 Petr Pisar <ppisar@redhat.com> - 2.5.0-2
|
||||
- Correct dependencies
|
||||
|
||||
* Fri Jan 04 2013 Petr Pisar <ppisar@redhat.com> - 2.5.0-1
|
||||
- 2.5.0 bump
|
||||
- This version makes pod2* tools failing if POD syntax error is encountered
|
||||
|
||||
* Thu Nov 01 2012 Petr Pisar <ppisar@redhat.com> - 2.4.2-3
|
||||
- Do not export under-specified dependencies
|
||||
|
||||
* Wed Oct 31 2012 Petr Pisar <ppisar@redhat.com> - 2.4.2-2
|
||||
- Conflict perl-podlators with perl before sub-packaging
|
||||
|
||||
* Wed Sep 12 2012 Petr Pisar <ppisar@redhat.com> 2.4.2-1
|
||||
- Specfile autogenerated by cpanspec 1.78.
|
Loading…
Reference in new issue