Initial SETUP.
This commit is contained in:
parent
ad1d01bfb6
commit
36efb097f8
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/nsnake-1.7.tar.gz
|
63
nsnake.6
Normal file
63
nsnake.6
Normal file
@ -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@gmail.com>.
|
||||
|
||||
.SH AUTHOR
|
||||
This manual page and nSnake were both written by Alexandre Dantas <alex.dantas92@gmail.com>.
|
||||
|
||||
|
55
nsnake.spec
Normal file
55
nsnake.spec
Normal file
@ -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@cicku.me> - 1.7-2
|
||||
- Fix upstream messup.
|
||||
|
||||
* Wed May 15 2013 Christopher Meng <rpm@cicku.me> - 1.7-1
|
||||
- New verson with manpages fix.
|
||||
|
||||
* Tue May 14 2013 Christopher Meng <rpm@cicku.me> - 1.5-3
|
||||
- Fix debuginfo.
|
||||
|
||||
* Sun May 12 2013 Christopher Meng <rpm@cicku.me> - 1.5-2
|
||||
- Some fixes.
|
||||
|
||||
* Sat Apr 20 2013 Christopher Meng <rpm@cicku.me> - 1.5-1
|
||||
- Initial Package.
|
Loading…
Reference in New Issue
Block a user