1 Summary: Multiplayer roguelike game server
2 Summary(pl): Serwer gry roguelike dla wielu graczy
7 Group: Applications/Games
8 Source0: ftp://ftp.scruz.net/users/mwedel/public/%{name}-%{version}.tar.bz2
10 Source2: %{name}.sysconfig
11 Source3: %{name}.logrotate
12 Patch0: %{name}-DESTDIR.patch
13 Patch1: %{name}-directories.patch
14 Patch2: %{name}-tmp_maps.patch
15 URL: http://crossfire.real-time.com/
16 BuildRequires: XFree86-devel
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 Prereq: /sbin/chkconfig
20 %define _prefix /usr/X11R6
21 %define _localstatedir /var/lib
24 This is a multiplayer graphical arcade and adventure game made for the
25 X-Window environment. There are also Windows and Java clients
28 It has certain flavours from other games, especially Gauntlet (TM) and
31 Any number of players can move around in their own window, finding and
32 sing items and battle monsters. They can choose to cooperate or
33 compete in the same "world".
36 To jest graficzna gra przygodowa dla ¶rodowiska X-Window. S± tak¿e
37 dostêpni klienci pod Windows i w Javie.
40 Summary: Crossfire map editor
41 Summary(pl): Edytor map crossfire
42 Group: Applications/Games
47 %description editor -l pl
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT{/var/log,/etc/{sysconfig,%{name},logrotate.d},/etc/rc.d/init.d}
63 install -d $RPM_BUILD_ROOT%{_localstatedir}/%{name}/tmp
64 %{__make} install DESTDIR="$RPM_BUILD_ROOT"
65 mv -f $RPM_BUILD_ROOT%{_datadir}/%{name}/{ban_file,settings,dm_file,motd,forbid} \
66 $RPM_BUILD_ROOT/etc/%{name}
67 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
68 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
69 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
70 touch $RPM_BUILD_ROOT/var/log/crossfire
73 rm -rf $RPM_BUILD_ROOT
76 /sbin/chkconfig --add crossfire
77 if [ -r /var/lock/subsys/crossfire ]; then
78 /etc/rc.d/init.d/crossfire restart >&2
80 echo "Run \"/etc/rc.d/init.d/crossfire start\" to start Crossfire server."
84 if [ "$1" = "0" ]; then
85 if [ -r /var/lock/subsys/crossfire ]; then
86 /etc/rc.d/init.d/crossfire stop >&2
88 /sbin/chkconfig --del crossfire
92 %defattr(644,root,root,755)
93 %doc CHANGES CREDITS DEVELOPERS DONE README TODO
94 %doc doc/{PlayerStats,RunTimeCommands,SurvivalGuide,alchemy.doc,experience,multigod}
95 %doc doc/{skills.doc,spell-paths,spellcasters_guide_to_runes,spells}
96 %attr(750,root,games) %{_bindir}/crossfire
97 %attr(750,root,games) %{_bindir}/random_map
98 %dir %attr(750,root,games) %{_datadir}/crossfire
99 %{_datadir}/crossfire/*
100 %{_mandir}/man?/crossfire*
101 %dir %attr(750,root,games) %{_localstatedir}/crossfire
102 %dir %attr(770,root,games) %{_localstatedir}/crossfire/players
103 %dir %attr(770,root,games) %{_localstatedir}/crossfire/unique-items
104 %dir %attr(770,root,games) %{_localstatedir}/crossfire/tmp
105 %attr(660,root,games) %config(noreplace) %verify(not size mtime md5) %{_localstatedir}/crossfire/bookarch
106 %attr(660,root,games) %config(noreplace) %verify(not size mtime md5) %{_localstatedir}/crossfire/highscore
107 %attr(660,root,games) %config(noreplace) %verify(not size mtime md5) %{_localstatedir}/crossfire/temp.maps
109 %config(noreplace) %verify(not size mtime md5) /etc/crossfire/*
110 %attr(754,root,root) /etc/rc.d/init.d/crossfire
111 %attr(660,root,root) /etc/logrotate.d/crossfire
112 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/crossfire
113 %attr(660,root,games) %config(noreplace) %verify(not size mtime md5) /var/log/crossfire
116 %defattr(644,root,root,755)
117 %doc doc/{Crossedit.doc,RandomMaps.doc,Styles.doc,mapguide,mapmakers_guide_to_runes,teleporter.doc}
118 %attr(755,root,root) %{_bindir}/crossedit
119 %{_mandir}/man?/crossedit*