From 077c9d67dd68854d531a6487335bd1d996bdcdb9 Mon Sep 17 00:00:00 2001
From: Lukas Nykryn <lnykryn@redhat.com>
Date: Thu, 6 Sep 2012 13:50:37 +0200
Subject: [PATCH] Add -p and -d to manpage (#854900)

---
 pinfo-0.6.10-man.patch | 26 ++++++++++++++++++++++++++
 pinfo.spec             |  7 ++++++-
 2 files changed, 32 insertions(+), 1 deletion(-)
 create mode 100644 pinfo-0.6.10-man.patch

diff --git a/pinfo-0.6.10-man.patch b/pinfo-0.6.10-man.patch
new file mode 100644
index 0000000..bdbfb44
--- /dev/null
+++ b/pinfo-0.6.10-man.patch
@@ -0,0 +1,26 @@
+diff --git a/doc/pinfo.1.in b/doc/pinfo.1.in
+index 1882e7a..1a4da77 100644
+--- a/doc/pinfo.1.in
++++ b/doc/pinfo.1.in
+@@ -72,6 +72,10 @@ synonym for -r.
+ .BR --apropos 
+ \- if this is set, apropos is called when no man or info page could be found.
+ .P
++.BR "-p",
++.BR --plain-apropos
++\- if this is set, call only apropos.
++.P
+ .BR "-c",
+ .BR --cut-man-headers 
+ \- if this is set, man parsing code will try to cut out the repeated man
+@@ -82,6 +86,10 @@ headers. Use with care. ;)
+ cut empty lines from manual pages. This option enables auto cutting of every
+ repeated newline in a manual page.
+ .P
++.BR "-d",
++.BR --dont-handle-without-tag-table
++\- don't display texinfo pages without tag table.
++.P
+ .BR "-t",
+ .BR "--force-manual-tag-table" \-
+ forces manual detection of tag table. This allows you to view info pages,
diff --git a/pinfo.spec b/pinfo.spec
index bc5aaba..67b1314 100644
--- a/pinfo.spec
+++ b/pinfo.spec
@@ -1,7 +1,7 @@
 Summary: An info file viewer
 Name: pinfo
 Version: 0.6.10
-Release: 5%{?dist}
+Release: 6%{?dist}
 Group: System Environment/Base
 License: GPLv2
 URL: http://pinfo.alioth.debian.org
@@ -11,6 +11,7 @@ Patch2: pinfo-0.6.9-infosuff.patch
 Patch3: pinfo-0.6.9-nogroup.patch
 Patch4: pinfo-0.6.9-mansection.patch
 Patch5: pinfo-0.6.9-infopath.patch
+Patch6: pinfo-0.6.10-man.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires: ncurses-devel
@@ -32,6 +33,7 @@ using regular expressions, and is based on the ncurses library.
 %patch3 -p1 -b .nogroup
 %patch4 -p1 -b .mansection
 %patch5 -p1 -b .infopath
+%patch6 -p1 -b .man
 
 %build
 ./autogen.sh
@@ -75,6 +77,9 @@ fi
 rm -rf $RPM_BUILD_ROOT
 
 %changelog
+* Thu Sep 06 2012 Lukáš Nykrýn <lnykryn@redhat.com> - 0.6.10-6
+- Add -p and -d to manpage (#854900)
+
 * Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.10-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild