[knapsen/f21] Fix appdata file and add man page

Mario Blättermann mariobl at fedoraproject.org
Fri Jan 16 15:12:40 UTC 2015


commit 93bea46f1ba6e8c2835fa673d6f55316229b3275
Author: Mario Blättermann <mario.blaettermann at gmail.com>
Date:   Fri Jan 16 16:12:57 2015 +0100

    Fix appdata file and add man page

 knapsen.6           |  139 +++++++++++++++++++++++++++++++++++++++++++++++++++
 knapsen.appdata.xml |    2 +-
 knapsen.spec        |   18 +++++--
 3 files changed, 154 insertions(+), 5 deletions(-)
---
diff --git a/knapsen.6 b/knapsen.6
new file mode 100644
index 0000000..aa13b96
--- /dev/null
+++ b/knapsen.6
@@ -0,0 +1,139 @@
+.\" This file is distributed under the same license as the knapsen package.
+.TH KNAPSEN "6" "Januar 2015" "knapsen 1.0.1" "Games"
+.SH NAME
+knapsen \- Schnapsen card game for KDE
+.SH SYNOPSIS
+.B knapsen
+[\fI\,Qt-options\/\fR] [\fI\,KDE-options\/\fR]
+.SH DESCRIPTION
+Knapsen is a Sixty\-six card game for KDE.
+.SS "Generic options:"
+.TP
+\fB\-\-help\fR
+Show help about options
+.TP
+\fB\-\-help\-qt\fR
+Show Qt specific options
+.TP
+\fB\-\-help\-kde\fR
+Show KDE specific options
+.TP
+\fB\-\-help\-all\fR
+Show all options
+.TP
+\fB\-\-author\fR
+Show author information
+.TP
+\fB\-v\fR, \fB\-\-version\fR
+Show version information
+.TP
+\fB\-\-license\fR
+Show license information
+.TP
+\fB\-\-\fR
+End of options
+.SS "Qt options:"
+.TP
+\fB\-\-display\fR <displayname>
+Use the X\-server display 'displayname'
+.TP
+\fB\-\-session\fR <sessionId>
+Restore the application for the given 'sessionId'
+.TP
+\fB\-\-cmap\fR
+Causes the application to install a private color
+map on an 8\-bit display
+.TP
+\fB\-\-ncols\fR <count>
+Limits the number of colors allocated in the color
+cube on an 8\-bit display, if the application is
+using the QApplication::ManyColor color
+specification
+.TP
+\fB\-\-nograb\fR
+tells Qt to never grab the mouse or the keyboard
+.TP
+\fB\-\-dograb\fR
+running under a debugger can cause an implicit
+\fB\-nograb\fR, use \fB\-dograb\fR to override
+.TP
+\fB\-\-sync\fR
+switches to synchronous mode for debugging
+.TP
+\fB\-\-fn\fR, \fB\-\-font\fR <fontname>
+defines the application font
+.TP
+\fB\-\-bg\fR, \fB\-\-background\fR <color> sets the default background color and an
+application palette (light and dark shades are
+calculated)
+.HP
+\fB\-\-fg\fR, \fB\-\-foreground\fR <color> sets the default foreground color
+.TP
+\fB\-\-btn\fR, \fB\-\-button\fR <color>
+sets the default button color
+.TP
+\fB\-\-name\fR <name>
+sets the application name
+.TP
+\fB\-\-title\fR <title>
+sets the application title (caption)
+.TP
+\fB\-\-testability\fR
+load the testability framework
+.TP
+\fB\-\-visual\fR TrueColor
+forces the application to use a TrueColor visual on
+an 8\-bit display
+.TP
+\fB\-\-inputstyle\fR <inputstyle> sets XIM (X Input Method) input style. Possible
+values are onthespot, overthespot, offthespot and
+root
+.TP
+\fB\-\-im\fR <XIM server>
+set XIM server
+.TP
+\fB\-\-noxim\fR
+disable XIM
+.TP
+\fB\-\-reverse\fR
+mirrors the whole layout of widgets
+.TP
+\fB\-\-stylesheet\fR <file.qss>
+applies the Qt stylesheet to the application widgets
+.HP
+\fB\-\-graphicssystem\fR <system> use a different graphics system instead of the default one, options are raster and opengl (experimental)
+.TP
+\fB\-\-qmljsdebugger\fR <port>
+QML JS debugger information. Application must be
+built with \fB\-DQT_DECLARATIVE_DEBUG\fR for the debugger to be
+enabled
+.SS "KDE options:"
+.TP
+\fB\-\-caption\fR <caption>
+Use 'caption' as name in the titlebar
+.TP
+\fB\-\-icon\fR <icon>
+Use 'icon' as the application icon
+.TP
+\fB\-\-config\fR <filename>
+Use alternative configuration file
+.TP
+\fB\-\-nocrashhandler\fR
+Disable crash handler, to get core dumps
+.TP
+\fB\-\-waitforwm\fR
+Waits for a WM_NET compatible windowmanager
+.TP
+\fB\-\-style\fR <style>
+sets the application GUI style
+.TP
+\fB\-\-geometry\fR <geometry>
+sets the client geometry of the main widget \- see man X for the argument format (usually WidthxHeight+XPos+YPos)
+.PP
+.SH SEE ALSO
+Website: http://kde-apps.org/content/show.php/Knapsen?content=158488
+.SH AUTHOR
+Knapsen was written by Tibor Zsuró <zsurotibor at gmail.com>
+.PP
+This manual page was generated with help2man and tweaked by Mario Blättermann
+and may be used by others.
diff --git a/knapsen.appdata.xml b/knapsen.appdata.xml
index f03969e..4d7bb2b 100644
--- a/knapsen.appdata.xml
+++ b/knapsen.appdata.xml
@@ -6,7 +6,7 @@
   <project_license>GPLv3+</project_license>
   <name>Knapsen</name>
   <summary>Schnapsen card game for KDE</summary>
-  <summary xml:lang="de">Schnapsen-Kartenspiel für KDE</fr>
+  <summary xml:lang="de">Schnapsen-Kartenspiel für KDE</summary>
   <description>
     <p>
       Schnapsen is the Austrian variant of the German card game Sixty-Six.
diff --git a/knapsen.spec b/knapsen.spec
index 30458ad..f3e0c34 100644
--- a/knapsen.spec
+++ b/knapsen.spec
@@ -1,6 +1,6 @@
 Name:           knapsen
 Version:        1.0.1
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Schnapsen card game for KDE
 Summary(de):    Schnapsen-Kartenspiel für KDE
 
@@ -10,6 +10,7 @@ Source0:        http://kde-apps.org/CONTENT/content-files/158488-%{name}-1.0.1.t
 # https://raw.githubusercontent.com/Dgzt/knapsen/master/po/de.po
 Source1:        %{name}-de.po
 Source2:        %{name}.appdata.xml
+Source3:        %{name}.6
 Patch0:         %{name}-desktop.patch
 
 BuildRequires:  desktop-file-utils
@@ -17,14 +18,13 @@ BuildRequires:  gettext
 BuildRequires:  kdebase-workspace-devel
 BuildRequires:  libkdegames-devel
 
-Requires:       hicolor-icon-theme
 
 %description
 Schnapsen is the Austrian variant of the German card game Sixty-Six.
 
 %description -l de
 Schnapsen ist die österreichische Variante des deutschen
-Kartenspiels Sechundsechzig.
+Kartenspiels Sechsundsechzig.
 
 %prep
 %setup -q
@@ -43,7 +43,11 @@ make %{?_smp_mflags} -C %{_target_platform}
 %install
 make install DESTDIR=%{buildroot} -C %{_target_platform}
 mkdir -p %{buildroot}%{_kde4_datadir}/appdata/
-install -p -m 644 %{SOURCE2} %{buildroot}%{_kde4_datadir}/appdata/ 
+install -p -m 644 %{SOURCE2} %{buildroot}%{_kde4_datadir}/appdata/
+
+mkdir -p %{buildroot}/%{_mandir}/man6
+install -p %SOURCE3 %{buildroot}/%{_mandir}/man6
+
 %find_lang %{name}
 
 
@@ -72,9 +76,15 @@ fi
 %{_kde4_datadir}/config.kcfg/%{name}.kcfg
 %{_kde4_datadir}/icons/hicolor/*/apps/%{name}.png
 %{_kde4_appsdir}/%{name}/
+%{_mandir}/man6/*.6.*
 
 
 %changelog
+* Fri Jan 16 2015 Mario Blättermann <mario.blaettermann at gmail.com> - 1.0.1-5
+- Fix appdata file
+- Remove redundant hicolor-icon-theme requirement
+- Install man page
+
 * Mon Jan 12 2015 Mario Blättermann <mario.blaettermann at gmail.com> - 1.0.1-4
 - Add German translation, backported from Git
 - German summary and description


More information about the scm-commits mailing list