rpms/lsnipes/devel lsnipes-Use-additional-CFLAGS-if-set.patch, NONE, 1.1 lsnipes-man-levels-doc.patch, NONE, 1.1 lsnipes.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Hans Ulrich Niedermann (ndim)
fedora-extras-commits at redhat.com
Mon May 5 08:09:10 UTC 2008
- Previous message (by thread): rpms/uudeview/devel uudeview.spec,1.18,1.19
- Next message (by thread): rpms/lsnipes/F-9 lsnipes-Use-additional-CFLAGS-if-set.patch, NONE, 1.1 lsnipes-man-levels-doc.patch, NONE, 1.1 lsnipes.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: ndim
Update of /cvs/pkgs/rpms/lsnipes/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8803/devel
Modified Files:
.cvsignore sources
Added Files:
lsnipes-Use-additional-CFLAGS-if-set.patch
lsnipes-man-levels-doc.patch lsnipes.spec
Log Message:
lsnipes: initial package import
lsnipes-Use-additional-CFLAGS-if-set.patch:
--- NEW FILE lsnipes-Use-additional-CFLAGS-if-set.patch ---
>From 874a8e5cfd77bef01ad8f0eea2b0fa15d1aa04fb Mon Sep 17 00:00:00 2001
From: Hans Ulrich Niedermann <hun at n-dimensional.de>
Date: Tue, 26 Feb 2008 01:01:04 +0100
Subject: [PATCH] Use additional CFLAGS if set
---
Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile
index 8d0bbfa..9a80168 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ CC = gcc
# USE_XWIN
# DOUBLEWIDE_FONT_HACK ( must run ./convert_font.sh first )
# USE_SVGALIB ( do not use this )
-CFLAGS = -O2 -Wall --pedantic -DVERSION="\"${VERSION}\"" -DUSE_XWIN -DUSE_CURSES -DUSE_SOUND -I/usr/lib/X11
+CFLAGS = $(RPM_CFLAGS) --pedantic -DVERSION="\"${VERSION}\"" -DUSE_XWIN -DUSE_CURSES -DUSE_SOUND -I/usr/lib/X11
OBJS = snipes.o coords.o collision.o player.o mazegen.o walls.o kbd.o \
keys.o hive.o enemies.o weapons.o sound.o screen.o
# LIBS options
--
1.5.4.1
lsnipes-man-levels-doc.patch:
--- NEW FILE lsnipes-man-levels-doc.patch ---
--- lsnipes-0.9.4.orig/snipes.6
+++ lsnipes-0.9.4/snipes.6
@@ -16,7 +16,9 @@
argument is of the form \fI[A-Z][1-9]\fR. The alphabetic character specifies
characteristics of the level, such as whether or not diagonal shots
bounce off the walls. The numeric character specifies the level of
-difficulty.
+difficulty. More details in the
+.B LEVELS
+section below.
.PP
Use the grey arrow keys to move and the keys a, s, d, and w to fire.
(This works best with a QWERTY layout, of course.) You can move
@@ -68,6 +70,25 @@
-v
Display version number and exit.
+.SH LEVELS
+
+There are three hives for levels 1->4, four hives for 5->8 and 5 hives for
+level 9. The maximum number of sprites for each difficulty level is 10, 25,
+40, 55, 70, 90, 110, 130 and 150.
+.PP
+The level letter determines which features are enabled:
+
+.TP -3
+.I ABCDEFGHIJKLMNOPQRSTUVWXYZ
+ **** **** ******
+.B walls deadly
+ ******** **
+.B walls can be destroyed
+ * * * * * * * * * * * ***
+.B ghosts
+ ** ** ** ** ** ****
+.B bouncy shots
+
.SH HISTORY
Novell NetWare 2.x came with a pair of "network testing utility"
--- NEW FILE lsnipes.spec ---
Summary: A text-mode maze game
Name: lsnipes
Version: 0.9.4
Release: 3%{?dist}
License: GPLv2+
Group: Amusements/Games
Source: http://www.ugcs.caltech.edu/~boultonj/snipes/%{name}-%{version}.tgz
URL: http://www.ugcs.caltech.edu/~boultonj/snipes.html
Patch1: lsnipes-Use-additional-CFLAGS-if-set.patch
# Man page update about levels from Debian package
Patch2: lsnipes-man-levels-doc.patch
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
# TODO:
# - Is the X11 version useful at all?
# - ...
BuildRequires: ncurses-devel
BuildRequires: libX11-devel
%description
Linux Snipes is a reimplementation of an old text-mode DOS game. You
are in a maze with a number of enemies (the "snipes") and a few
"hives" which create more of the enemies. Your job is to kill the
snipes and their hives before they get the best of you. 26 "option
levels" let you change characteristics of the game such as whether or
not diagonal shots bounce off the walls. 10 levels of difficulty (only
partially implemented) let you build your skills gradually.
%prep
%setup -q
%patch1 -p1 -b .cflags
%patch2 -p1 -b .man-levels
%build
%{__make} RPM_CFLAGS="%{optflags}"
%install
%{__rm} -rf %{buildroot}
%{__install} -p -m 0755 -d %{buildroot}%{_bindir}
%{__install} -p -m 0755 snipes %{buildroot}%{_bindir}/snipes
%{__install} -p -m 0755 -d %{buildroot}%{_mandir}/man6
%{__install} -p -m 0644 snipes.6 %{buildroot}%{_mandir}/man6/snipes.6
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root, 0755)
%doc README TODO COPYING CHANGELOG
%{_bindir}/snipes
%{_mandir}/man6/snipes.6*
%changelog
* Sun May 04 2008 Hans Ulrich Niedermann <hun at n-dimensional.de> - 0.9.4-3
- Fix typo in Source: file URL
* Sat May 03 2008 Hans Ulrich Niedermann <hun at n-dimensional.de> - 0.9.4-2
- Man page update about levels from Debian package
* Tue Feb 26 2008 Hans Ulrich Niedermann <hun at n-dimensional.de> - 0.9.4-1
- Adapted upstream year 2000 spec file for Fedora.
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/lsnipes/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 5 May 2008 02:21:33 -0000 1.1
+++ .cvsignore 5 May 2008 08:08:33 -0000 1.2
@@ -0,0 +1 @@
+lsnipes-0.9.4.tgz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/lsnipes/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 5 May 2008 02:21:33 -0000 1.1
+++ sources 5 May 2008 08:08:33 -0000 1.2
@@ -0,0 +1 @@
+ea5f41dd7942ec6e0cc1187ba78dfc5a lsnipes-0.9.4.tgz
- Previous message (by thread): rpms/uudeview/devel uudeview.spec,1.18,1.19
- Next message (by thread): rpms/lsnipes/F-9 lsnipes-Use-additional-CFLAGS-if-set.patch, NONE, 1.1 lsnipes-man-levels-doc.patch, NONE, 1.1 lsnipes.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list