Fix man page

This commit is contained in:
Marek Kasik 2013-04-11 12:24:35 +02:00
parent ea08babd41
commit 698411e5c3
2 changed files with 50 additions and 1 deletions

42
evince-man.patch Normal file
View File

@ -0,0 +1,42 @@
From dfd3442b86d1d08fc92da556bf9e970c77985ba9 Mon Sep 17 00:00:00 2001
From: Marek Kasik <mkasik@redhat.com>
Date: Mon, 8 Apr 2013 15:55:52 +0200
Subject: [PATCH] Update man page
Short form of "--page-index" is "-i" not "-p".
Add description of "--named-dest" to man page.
---
data/evince.1 | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/data/evince.1 b/data/evince.1
index d398b97..9add86a 100644
--- a/data/evince.1
+++ b/data/evince.1
@@ -8,7 +8,8 @@ The Evince Document Viewer application for the GNOME desktop environment
.B evince
.RI [--help]
.RI [--page-label=PAGE\ |
-.RI --page-index=NUMBER]
+.RI --page-index=NUMBER\ |
+.RI --named-dest=DEST]
.RI [--fullscreen]
.RI [--presentation]
.RI [--preview]
@@ -32,9 +33,12 @@ Prints the command line options.
\fB\-p, \-\-page\-label=PAGE\fR
Open the document on the page with the specified page label (or page number).
.TP
-\fB\-p, \-\-page\-index=NUMBER\fR
+\fB\-i, \-\-page\-index=NUMBER\fR
Open the document on the page with the specified page index (this is the exact page number, not a page label).
.TP
+\fB\-n, \-\-named\-dest=DEST\fR
+Open the document on the specified named destination.
+.TP
\fB\-f, \-\-fullscreen\fR
Run evince in fullscreen mode.
.TP
--
1.8.2

View File

@ -6,7 +6,7 @@
Name: evince
Version: 3.8.0
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Document viewer
License: GPLv2+ and GPLv3+ and LGPLv2+ and MIT and Afmparse
@ -14,6 +14,9 @@ Group: Applications/Publishing
URL: http://projects.gnome.org/evince/
Source0: http://download.gnome.org/sources/%{name}/3.8/%{name}-%{version}.tar.xz
# https://bugzilla.gnome.org/show_bug.cgi?id=697559
Patch0: evince-man.patch
BuildRequires: gtk3-devel
BuildRequires: glib2-devel >= %{glib2_version}
BuildRequires: poppler-glib-devel >= %{poppler_version}
@ -106,6 +109,7 @@ It adds an additional tab called "Document" to the file properties dialog.
%prep
%setup -q
%patch0 -p1 -b .man
%build
./autogen.sh
@ -216,6 +220,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null ||:
%{_libdir}/nautilus/extensions-3.0/libevince-properties-page.so
%changelog
* Thu Apr 11 2013 Marek Kasik <mkasik@redhat.com> - 3.8.0-3
- Fix a typo and add a description of an option to man page
* Tue Mar 26 2013 Marek Kasik <mkasik@redhat.com> - 3.8.0-2
- Don't remove the NoDisplay key from evince.desktop because
- it has been already removed