-
Notifications
You must be signed in to change notification settings - Fork 0
/
xevil-2.0.spec
84 lines (65 loc) · 2.37 KB
/
xevil-2.0.spec
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
Summary: A fast-action, explicitly violent game for X
Name: xevil
Version: 2.02
Release: 1
Copyright: GPL
Group: X11/Games/Video
Source: ftp://ftp.xevil.com/stable/xevilsrc2.0r2.zip
Patch: xevil2.0-config.patch
Buildroot: /var/tmp/xevilroot
Summary(de): Ein schnelles, extrem gewalttätiges Actionspiel für X
Summary(fr): Un jeu d'action rapide et très violent sous X
Summary(tr): Hýzlý ve þiddet yüklü bir X oyunu
%changelog
* Mon Jan 25 1999 Steve Hardt <[email protected]>
- updated for XEvil 2.0
- more accurate description, need new translations of description
* Thu May 07 1998 Prospector System <[email protected]>
- translations modified for de, fr, tr
* Thu Oct 09 1997 Erik Troan <[email protected]>
- updated to work on non Intel platforms (silly Makefile hack)
- uses a buildroot and %attr tags
* Fri Aug 22 1997 Erik Troan <[email protected]>
- built against glibc
%description
Death, blood, drugs, fire, ninjas, and chainsaws. XEvil is a
side-view, fast-action, single or network-multiplayer, anti-social,
kill-everything game for UNIX and Windows. You have died and gone to
Hell. XEvil is the contest that determines your fate in Hell for all
eternity.
%prep
# Don't use %setup because the source is not a compressed tar file.
rm -rf $RPM_BUILD_DIR/xevil-2.0
mkdir $RPM_BUILD_DIR/xevil-2.0
cd $RPM_BUILD_DIR/xevil-2.0
# Text and binary files, auto-convert CRLF
/usr/bin/unzip -a $RPM_SOURCE_DIR/xevilsrc2.0r2.zip -x win32/res/\*.bmp -x win32/\*.dsp
# Binary files, don't convert CRLF
/usr/bin/unzip -b $RPM_SOURCE_DIR/xevilsrc2.0r2.zip win32/res/\*.bmp win32/\*.dsp
chown -R root.root .
chmod -R a+rX,g-w,o-w .
%patch -p1
%build
cd $RPM_BUILD_DIR/xevil-2.0
make
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/X11R6/bin
mkdir -p $RPM_BUILD_ROOT/etc/X11/wmconfig
cd $RPM_BUILD_DIR/xevil-2.0
install -m 755 x11/REDHAT_LINUX/xevil $RPM_BUILD_ROOT/usr/X11R6/bin
cat > $RPM_BUILD_ROOT/etc/X11/wmconfig/xevil <<EOF
xevil name "xevil"
xevil description "Side-View Action Game"
xevil group Games/Video
xevil exec "xevil &"
EOF
%files
%doc xevil-2.0/instructions/instructions.html
%doc xevil-2.0/instructions/keysdlg.gif
%doc xevil-2.0/instructions/optionsdlg.gif
%doc xevil-2.0/instructions/UNIXmenu.gif
%doc xevil-2.0/instructions/UNIXSetControls.gif
%doc xevil-2.0/instructions/UNIXShowControls.gif
%attr(-,root,root) /usr/X11R6/bin/xevil
%config %attr(-,root,root) /etc/X11/wmconfig/xevil