1#!/bin/sh
2# Generate quake.spec
3# $1 is version
4# $2 is release
5# $3 is install dir (assumed to be in /var/tmp)
6cat <<EOF
7%define name quake
8%define version ${1}
9%define release ${2}
10%define builddir \$RPM_BUILD_DIR/%{name}-%{version}
11Name:		%{name}
12Version:	%{version}
13Release:	%{release}
14Vendor:		id Software
15Packager:	Dave "Zoid" Kirsch <zoid@idsoftware.com>
16URL:		http://www.idsoftware.com/
17Source:		quake-%{version}.tar.gz
18Group:		Games
19Copyright:	Restricted
20Icon:		quake.gif
21BuildRoot:	/var/tmp/%{name}-%{version}
22Summary:	Quake for Linux
23
24%description
25"Quake is the biggest, baddest, and bloodiest 3-D action game ever 
26conceived" - PC GAMER
27
28"The most important PC game ever" - PC ZONE
29
30""Quake": Bloody Amazing" - USA TODAY
31
32"The Vanguard of a terrifying new level of immersive interactivity" - 
33COMPUTER GAMING WORLD
34
35From the creators of DOOM and DOOM II comes the most intense, technologically
36advanced 3-D experience ever captured on CD ROM.  Features free and fluid
37motion, ambient sound and lighting, and unmatched multiplayer capabilities
38(play with up to 15 others).
39
40Included in this archive are several different versions of Quake.
41
42- SQuake for SVGALib Console Graphics
43- GLQuake for 3DFX and other glX based hardware OpenGL
44- Quake.X11 for running Quake under X11
45
46%install
47
48%files
49%attr(644,root,root) $3/README
50%attr(4755,root,root) $3/squake
51%attr(4755,root,root) $3/glquake
52%attr(4755,root,root) $3/glquake.glx
53%attr(4755,root,root) $3/glquake.3dfxgl
54%attr(755,root,root) $3/quake.x11
55%attr(755,root,root) /usr/lib/lib3dfxgl.so
56%attr(755,root,root) /usr/lib/libMesaGL.so.2.6
57
58%post
59/sbin/ldconfig
60EOF
61
62