1 Summary: Multiplayer roguelike game server
2 Summary(pl): Serwer gry roguelike dla wielu graczy
7 Group: Applications/Games
8 Source0: ftp://ftp.sourceforge.net/pub/sourceforge/crossfire/%{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 Patch3: %{name}-python.patch
16 URL: http://crossfire.real-time.com/
17 BuildRequires: XFree86-devel
18 BuildRequires: autoconf
19 Requires(post,preun): /sbin/chkconfig
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _localstatedir /var/lib
25 This is a multiplayer graphical arcade and adventure game made for the
26 X-Window environment. There are also Windows and Java clients
29 It has certain flavours from other games, especially Gauntlet (TM) and
32 Any number of players can move around in their own window, finding and
33 sing items and battle monsters. They can choose to cooperate or
34 compete in the same "world".
37 To jest graficzna gra przygodowa dla ¶rodowiska X-Window. S± tak¿e
38 dostêpni klienci pod Windows i w Javie.
41 Summary: Crossfire map editor
42 Summary(pl): Edytor map crossfire
43 Group: Applications/Games
48 %description editor -l pl
52 Summary: Crossfire game documentation
53 Summary(pl): Dokumentacja gry crossfire
54 Group: Applications/Games
57 Crossfire documentation for players. Includes handbook and spoiler.
59 %description doc -l pl
60 Dokumentacja dla graczy Crossfire. Zawiera podrêczniek oraz spoiler.
67 # don't apply, its unfinished
77 rm -rf $RPM_BUILD_ROOT
78 install -d $RPM_BUILD_ROOT{/var/log,/etc/{sysconfig,%{name},logrotate.d},/etc/rc.d/init.d} \
79 $RPM_BUILD_ROOT%{_localstatedir}/%{name}/{tmp,maps}
81 %{__make} install DESTDIR="$RPM_BUILD_ROOT"
83 mv -f $RPM_BUILD_ROOT%{_datadir}/%{name}/{ban_file,settings,dm_file,motd,forbid} \
84 $RPM_BUILD_ROOT/etc/%{name}
86 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
87 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
88 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
90 touch $RPM_BUILD_ROOT%{_localstatedir}/%{name}/clockdata \
91 $RPM_BUILD_ROOT/var/log/crossfire
93 rm doc/Developers/Makefile*
96 rm -rf $RPM_BUILD_ROOT
99 /sbin/chkconfig --add crossfire
100 if [ -r /var/lock/subsys/crossfire ]; then
101 /etc/rc.d/init.d/crossfire restart >&2
103 echo "Run \"/etc/rc.d/init.d/crossfire start\" to start Crossfire server."
107 if [ "$1" = "0" ]; then
108 if [ -r /var/lock/subsys/crossfire ]; then
109 /etc/rc.d/init.d/crossfire stop >&2
111 /sbin/chkconfig --del crossfire
115 %defattr(644,root,root,755)
116 %doc CHANGES CREDITS DEVELOPERS README TODO
117 %doc doc/{alchemy.doc,experience,multigod,spell_params.doc}
118 %doc doc/{spell-paths,spellcasters_guide_to_runes,metaserver}
120 %attr(750,root,games) %{_bindir}/crossfire
121 %attr(750,root,games) %{_bindir}/random_map
122 %dir %attr(750,root,games) %{_datadir}/crossfire
123 %{_datadir}/crossfire/*
124 %{_mandir}/man?/crossfire*
125 %dir %attr(750,root,games) %{_localstatedir}/crossfire
126 %dir %attr(770,root,games) %{_localstatedir}/crossfire/players
127 %dir %attr(770,root,games) %{_localstatedir}/crossfire/unique-items
128 %dir %attr(770,root,games) %{_localstatedir}/crossfire/tmp
129 %dir %attr(770,root,games) %{_localstatedir}/crossfire/maps
130 %attr(660,root,games) %config(noreplace) %verify(not size mtime md5) %{_localstatedir}/crossfire/bookarch
131 %attr(660,root,games) %config(noreplace) %verify(not size mtime md5) %{_localstatedir}/crossfire/highscore
132 %attr(660,root,games) %config(noreplace) %verify(not size mtime md5) %{_localstatedir}/crossfire/temp.maps
133 %attr(660,root,games) %config(noreplace) %verify(not size mtime md5) %{_localstatedir}/crossfire/clockdata
135 %config(noreplace) %verify(not size mtime md5) /etc/crossfire/*
136 %attr(754,root,root) /etc/rc.d/init.d/crossfire
137 %attr(660,root,root) /etc/logrotate.d/crossfire
138 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/crossfire
139 %attr(660,root,games) %config(noreplace) %verify(not size mtime md5) /var/log/crossfire
142 %defattr(644,root,root,755)
143 %doc doc/Crossedit.doc crossedit/doc/*.doc
144 %attr(755,root,root) %{_bindir}/crossedit
145 %{_mandir}/man?/crossedit*
148 %defattr(644,root,root,755)
149 %doc doc/{handbook.ps,spoiler.ps}
150 %doc doc/{PlayerStats,RunTimeCommands,SurvivalGuide}
151 %doc doc/{skills.doc,spellcasters_guide_to_runes,spells*}