Fix perldoc synopsis

This commit is contained in:
Petr Písař 2012-05-15 11:19:42 +02:00
parent c516b6cf9a
commit c7af9077c6
2 changed files with 67 additions and 1 deletions

View File

@ -0,0 +1,60 @@
From f5257762b57e644f943f6d8a8da382b62b1585b9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Tue, 15 May 2012 11:11:51 +0200
Subject: [PATCH] Remove POD code from perldoc synopis
<https://rt.cpan.org/Public/Bug/Display.html?id=77209>
---
lib/perldoc.pod | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/lib/perldoc.pod b/lib/perldoc.pod
index 1cb08c6..798db23 100644
--- a/lib/perldoc.pod
+++ b/lib/perldoc.pod
@@ -5,28 +5,28 @@ perldoc - Look up Perl documentation in Pod format.
=head1 SYNOPSIS
- B<perldoc> [B<-h>] [B<-D>] [B<-t>] [B<-u>] [B<-m>] [B<-l>] [B<-F>]
- [B<-i>] [B<-V>] [B<-T>] [B<-r>]
- [B<-dI<destination_file>>]
- [B<-oI<formatname>>]
- [B<-MI<FormatterClassName>>]
- [B<-wI<formatteroption:value>>]
- [B<-n>I<nroff-replacement>]
- [B<-X>]
- [B<-L> I<language_code>]
+ perldoc [-h] [-D] [-t] [-u] [-m] [-l] [-F]
+ [-i] [-V] [-T] [-r]
+ [-dI<destination_file>]
+ [-oI<formatname>]
+ [-MI<FormatterClassName>]
+ [-wI<formatteroption:value>]
+ [-nI<nroff-replacement>]
+ [-X]
+ [-L I<language_code>]
PageName|ModuleName|ProgramName|URL
Examples:
- B<perldoc> B<-f> BuiltinFunction
+ perldoc -f BuiltinFunction
- B<perldoc> B<-L> it B<-f> BuiltinFunction
+ perldoc -L it -f BuiltinFunction
- B<perldoc> B<-q> FAQ Keyword
+ perldoc -q FAQ Keyword
- B<perldoc> B<-L> fr B<-q> FAQ Keyword
+ perldoc -L fr -q FAQ Keyword
- B<perldoc> B<-v> PerlVariable
+ perldoc -v PerlVariable
See below for more description of the switches.
--
1.7.7.6

View File

@ -1,12 +1,14 @@
%global cpan_version 3.17
Name: perl-Pod-Perldoc
Version: %(eval echo '%{cpan_version}' | tr '_' '.')
Release: 1%{?dist}
Release: 2%{?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
# Bug #821632, submitted to upstream as RT#77209
Patch0: Pod-Perldoc-3.17-Remove-POD-code-from-perldoc-synopis.patch
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
# Run-time:
@ -57,6 +59,7 @@ the perl library modules.
%prep
%setup -q -n Pod-Perldoc-%{cpan_version}
%patch0 -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
@ -78,6 +81,9 @@ make test
%{_mandir}/man3/*
%changelog
* Tue May 15 2012 Petr Pisar <ppisar@redhat.com> - 3.17-2
- Fix perldoc synopsis (bug #821632)
* Mon Mar 19 2012 Petr Pisar <ppisar@redhat.com> - 3.17-1
- 3.17 bump
- Fix displaying long POD in groff