[nsnake] Initial SETUP.

Christopher Meng cicku at fedoraproject.org
Wed May 15 14:29:46 UTC 2013


commit 36efb097f8e029389dbddb60c6f69f88beca05bd
Author: Christopher Meng <rpm at cicku.me>
Date:   Wed May 15 22:29:22 2013 +0800

    Initial SETUP.

 .gitignore  |    1 +
 nsnake.6    |   63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 nsnake.spec |   55 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources     |    1 +
 4 files changed, 120 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..543c6b7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/nsnake-1.7.tar.gz
diff --git a/nsnake.6 b/nsnake.6
new file mode 100644
index 0000000..aaaede2
--- /dev/null
+++ b/nsnake.6
@@ -0,0 +1,63 @@
+.TH nsnake 6 "Tue, 14 May 2013" v1.7 "nSnake v1.7"
+
+.SH NAME
+nsnake \- A snake game clone with nCurses
+
+.SH SYNOPSIS
+nsnake
+.RB [ -h ]
+.RB [ -l ]
+.RB [ -v ]
+.RB [ -r ]
+
+.SH DESCRIPTION
+nSnake is a implementation of the classic snake game with textual interface.
+It is playable at command-line and uses the nCurses C library for graphics.
+The rules are the same of any snake game:
+
+.PP
+You control a hungry snake and the objective is to eat as many fruits you can.
+Each fruit eaten increases it's size by two units.
+.PP
+The game ends when the snake collides with the walls or itself. Currently,
+nSnake has two modes: With Borders and without borders.
+.PP
+The challenge is to earn the biggest score possible by eating as many fruits as
+you can.
+
+.B Controls:
+.RS
+Numbers (1~9)             Changes the game speed at the main menu
+
+Arrow Keys, WASD, hjkl    Moves the snake
+
+q                         Quits the game at any time
+
+p                         Pauses/Unpauses the game
+.RE
+
+.SH OPTIONS
+
+.TP
+.B "-h, --help"
+Displays the quick help text.
+
+.TP
+.B "-l, --license"
+Displays the program license and warranty.
+
+.TP
+.B "-v, --version"
+Displays the version and general information.
+
+.TP
+.B "-r, --reset-scores"
+Resets all the Highscores to default.
+
+.SH BUGS
+If you find a bug, please email me at <alex.dantas92 at gmail.com>.
+
+.SH AUTHOR
+This manual page and nSnake were both written by Alexandre Dantas <alex.dantas92 at gmail.com>.
+
+
diff --git a/nsnake.spec b/nsnake.spec
new file mode 100644
index 0000000..384e575
--- /dev/null
+++ b/nsnake.spec
@@ -0,0 +1,55 @@
+Name:              nsnake
+Version:           1.7
+Release:           2%{?dist}
+Summary:           Classic snake game on console
+URL:               http://www.alexdantas.net/projects/nsnake/
+Source0:           http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+Source1:           %{name}.6
+License:           GPLv3+
+
+BuildRequires:     dos2unix
+BuildRequires:     doxygen
+BuildRequires:     ncurses-devel
+
+%description
+nSnake is a implementation of the classic snake game with textual interface.
+It is playable at command-line and uses the nCurses C library for graphics.
+
+%prep
+%setup -q
+find . -type f -exec dos2unix {} \;
+cp -p %{S:1} doc/man/%{name}.6
+gzip doc/man/%{name}.6
+
+%build
+make CFLAGS="%{optflags}" %{?_smp_mflags}
+make doc
+
+%install
+install -p -D -m 755 bin/%{name} %{buildroot}%{_bindir}/%{name}
+install -d %{buildroot}%{_mandir}/man6
+install -p -D -m 644 doc/man/%{name}.6.gz %{buildroot}%{_mandir}/man6/%{name}.6.gz
+install -d %{buildroot}%{_defaultdocdir}/%{name}-%{version}
+cp -pr doc/html/ %{buildroot}%{_defaultdocdir}/%{name}-%{version}
+cp -pr doc/logo.png %{buildroot}%{_defaultdocdir}/%{name}-%{version}
+
+%files
+%doc BUGS ChangeLog COPYING README TODO
+%attr(-, -, -)%{_bindir}/%{name}
+%{_mandir}/man6/%{name}.6*
+
+%changelog
+* Wed May 15 2013 Christopher Meng <rpm at cicku.me> - 1.7-2
+- Fix upstream messup.
+
+* Wed May 15 2013 Christopher Meng <rpm at cicku.me> - 1.7-1
+- New verson with manpages fix.
+
+* Tue May 14 2013 Christopher Meng <rpm at cicku.me> - 1.5-3
+- Fix debuginfo.
+
+* Sun May 12 2013 Christopher Meng <rpm at cicku.me> - 1.5-2
+- Some fixes.
+
+* Sat Apr 20 2013 Christopher Meng <rpm at cicku.me> - 1.5-1
+- Initial Package.
diff --git a/sources b/sources
index e69de29..6e84b0d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+87fbfc83f7a96607a420c95268b8f425  nsnake-1.7.tar.gz


More information about the scm-commits mailing list