[dreamchess] add manpage
Raphael Groner
raphgro at fedoraproject.org
Sat Jan 3 18:15:17 UTC 2015
commit 0e2128ff56334559c45217e2085a3b31263d0e3f
Author: Raphael Groner <projects.rg at smart.ms>
Date: Sat Jan 3 19:15:14 2015 +0100
add manpage
dreamchess.spec | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/dreamchess.spec b/dreamchess.spec
index 13dfc8f..c376b5e 100644
--- a/dreamchess.spec
+++ b/dreamchess.spec
@@ -5,7 +5,7 @@
Name: dreamchess
Version: 0.2.1
-Release: 7.%{pre}%{?dist}
+Release: 8.%{pre}%{?dist}
Summary: Portable chess game
##GPLv2+ and v3+ for most of sources, explicitly BSD for src/include/gamegui/queue.h (see file COPYRIGHT)
License: GPLv3+ and BSD
@@ -14,7 +14,7 @@ Source0: http://downloads.sf.net/%{name}/%{name}-%{version}-%{pre}.tar.gz
BuildRequires: mxml-devel
BuildRequires: SDL-devel SDL_image-devel SDL_mixer-devel glew-devel
-BuildRequires: desktop-file-utils
+BuildRequires: help2man desktop-file-utils
# icons get installed into hicolor folders
Requires: hicolor-icon-theme
@@ -74,12 +74,15 @@ rm data/*.icns
%build
%configure LIBS=-lm
make %{?_smp_mflags}
-
+# generate manpage
+help2man -o %{name}.man --version-string='%{version}-%{pre}' %{name}
%install
%make_install
mkdir -p %{buildroot}%{_datadir}/pixmaps
ln -s ../icons/hicolor/256x256/apps/dreamchess.png
+mkdir -p %{buildroot}%{_mandir}/man1
+gzip -c %{name}.man > %{buildroot}%{_mandir}/man1/%{name}.1.gz
%check
@@ -108,6 +111,7 @@ fi
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man6/%{name}.6.gz
%doc README NEWS COPYING COPYRIGHT AUTHORS
+%{_mandir}/man1/%{name}.1*
%files engine
%{_bindir}/%{engine}
@@ -123,6 +127,9 @@ fi
%changelog
+* Sat Jan 03 2015 Raphael Groner <projects.rg [AT] smart.ms> - 0.2.1-8.RC2
+- add manpage
+
* Sat Dec 27 2014 Raphael Groner <projects.rg [AT] smart.ms> - 0.2.1-7.RC2
- add glew as dependency
- add icon cache scriptlets
More information about the scm-commits
mailing list