1 Summary: Multiplayer roguelike game server.
6 Group: Applications/Games
7 Source0: ftp://ftp.scruz.net/users/mwedel/public/%{name}-%{version}.tar.bz2
9 Source2: %{name}.sysconfig
10 Patch0: %{name}-DESTDIR.patch
11 Patch1: %{name}-crossloop.patch
12 URL: http://crossfire.real-time.com
13 BuildRequires: XFree86-devel
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 %define _prefix /usr/X11R6
17 %define _localstatedir /var/lib
20 This is a multiplayer graphical arcade and adventure game made for the
21 X-Windows environment. There are also Windows and Java clients
24 It has certain flavours from other games, especially Gauntlet (TM) and
27 Any number of players can move around in their own window, finding and
28 sing items and battle monsters. They can choose to cooperate or
29 compete in the same "world".
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT{/var/log/crossfire,/etc/sysconfig,/etc/rc.d/init.d}
43 %{__make} install DESTDIR="$RPM_BUILD_ROOT"
44 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
45 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
48 rm -rf $RPM_BUILD_ROOT
51 /sbin/chkconfig --add crossfire
52 if [ -r /var/lock/subsys/crossfire ]; then
53 /etc/rc.d/init.d/crossfire restart >&2
55 echo "Run \"/etc/rc.d/init.d/crossfire start\" to start Crossfire server."
59 if [ "$1" = "0" ]; then
60 if [ -r /var/lock/subsys/crossfire ]; then
61 /etc/rc.d/init.d/crossfire stop >&2
63 /sbin/chkconfig --del crossfire
70 %defattr(644,root,root,755)
71 %doc CHANGES CREDITS DEVELOPERS DONE README TODO
72 %attr(750,root,games) %{_bindir}/crossfire
73 %attr(750,root,games) %{_bindir}/random_map
74 %attr(750,root,games) %{_bindir}/crossloop
75 %attr(755,root,root) %{_bindir}/crossedit
76 %dir %attr(750,root,games) %{_datadir}/crossfire
77 %{_datadir}/crossfire/*
79 %dir %attr(750,root,games) %{_localstatedir}/crossfire
80 %attr(770,root,games) %{_localstatedir}/crossfire/players
81 %attr(770,root,games) %{_localstatedir}/crossfire/unique-items
82 %attr(660,root,games) %{_localstatedir}/crossfire/bookarch
83 %attr(660,root,games) %{_localstatedir}/crossfire/highscore
84 %attr(660,root,games) %{_localstatedir}/crossfire/temp.maps
85 %attr(770,root,games) /var/log/crossfire
87 %attr(754,root,root) /etc/rc.d/init.d/crossfire
88 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/crossfire