aboutsummaryrefslogtreecommitdiffstats
path: root/code/unix/q3test.spec.sh
blob: ca696365b8f8cd26025490251d70991745977ea3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/sh
# Generate Quake3 test
# $1 is version
# $2 is release
# $3 is arch
# $4 is install dir (assumed to be in /var/tmp)
cat <<EOF
%define name q3test
%define version ${1}
%define release ${2}
%define arch ${3}
%define builddir \$RPM_BUILD_DIR/%{name}-%{version}
Name:		%{name}
Version:	%{version}
Release:	%{release}
Vendor:		id Software
Packager:	Dave "Zoid" Kirsch <zoid@idsoftware.com>
URL:		http://www.idsoftware.com/
Source:		q3test-%{version}.tar.gz
Group:		Games
Copyright:	Restricted
Icon:		quake3.gif
BuildRoot:	/var/tmp/%{name}-%{version}
Summary:	Q3Test for Linux

%description

%install

%files

%attr(644,root,root) $4/README.EULA
%attr(644,root,root) $4/README.Q3Test
%attr(644,root,root) $4/README.Linux
%attr(644,root,root) $4/Quake3.kdelnk
%attr(644,root,root) $4/quake3.xpm
%attr(755,root,root) $4/linuxquake3
%attr(755,root,root) $4/cgamei386.so
%attr(755,root,root) $4/qagamei386.so
%attr(755,root,root) $4/uii386.so
%attr(755,root,root) $4/libMesaVoodooGL.so.3.1
%attr(644,root,root) $4/demoq3/pak0.pk3

%post

if [ -n "\$KDEDIR" ]; then
	ln -sf $4/Quake3.kdelnk \$KDEDIR/share/applnk/Games/Quake3.kdelnk
	ln -sf $4/quake3.xpm \$KDEDIR/share/icons/quake3.xpm
fi

EOF