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
9 Source1: ftp://ftp.sourceforge.net/pub/sourceforge/crossfire/%{name}-%{version}-arch.tar.bz2
11 Source3: %{name}.sysconfig
12 Source4: %{name}.logrotate
13 Patch0: %{name}-DESTDIR.patch
14 Patch1: %{name}-directories.patch
15 Patch2: %{name}-tmp_maps.patch
16 Patch3: %{name}-faces.patch
17 URL: http://crossfire.real-time.com/
18 BuildRequires: XFree86-devel
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Prereq: /sbin/chkconfig
22 %define _prefix /usr/X11R6
23 %define _localstatedir /var/lib
26 This is a multiplayer graphical arcade and adventure game made for the
27 X-Window environment. There are also Windows and Java clients
30 It has certain flavours from other games, especially Gauntlet (TM) and
33 Any number of players can move around in their own window, finding and
34 sing items and battle monsters. They can choose to cooperate or
35 compete in the same "world".
38 To jest graficzna gra przygodowa dla ¶rodowiska X-Window. S± tak¿e
39 dostêpni klienci pod Windows i w Javie.
42 Summary: Crossfire map editor
43 Summary(pl): Edytor map crossfire
44 Group: Applications/Games
49 %description editor -l pl
53 Summary: Crossfire game documentation
54 Summary(pl): Dokumentacja gry crossfire
55 Group: Applications/Games
58 Crossfire documentation for players. Includes handbook and spoiler.
60 %description doc -l pl
61 Dokumentacja dla graczy Crossfire. Zawiera podrêczniek oraz spoiler.
70 bunzip2 -c %{SOURCE1} | tar xf -
78 rm -rf $RPM_BUILD_ROOT
79 install -d $RPM_BUILD_ROOT{/var/log,/etc/{sysconfig,%{name},logrotate.d},/etc/rc.d/init.d}
80 install -d $RPM_BUILD_ROOT%{_localstatedir}/%{name}/tmp
81 %{__make} install DESTDIR="$RPM_BUILD_ROOT"
82 mv -f $RPM_BUILD_ROOT%{_datadir}/%{name}/{ban_file,settings,dm_file,motd,forbid} \
83 $RPM_BUILD_ROOT/etc/%{name}
84 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
85 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
86 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
87 touch $RPM_BUILD_ROOT/var/log/crossfire
88 rm doc/Developers/Makefile*
89 gzip -9nf CHANGES CREDITS DEVELOPERS README TODO \
90 doc/{PlayerStats,RunTimeCommands,SurvivalGuide,alchemy.doc,experience,multigod} \
91 doc/{skills.doc,spell-paths,spellcasters_guide_to_runes,spells,spell_params.doc} \
92 doc/{metaserver,Crossedit.doc,Developers/*} doc/*.ps \
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)
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 %attr(660,root,games) %config(noreplace) %verify(not size mtime md5) %{_localstatedir}/crossfire/bookarch
130 %attr(660,root,games) %config(noreplace) %verify(not size mtime md5) %{_localstatedir}/crossfire/highscore
131 %attr(660,root,games) %config(noreplace) %verify(not size mtime md5) %{_localstatedir}/crossfire/temp.maps
133 %config(noreplace) %verify(not size mtime md5) /etc/crossfire/*
134 %attr(754,root,root) /etc/rc.d/init.d/crossfire
135 %attr(660,root,root) /etc/logrotate.d/crossfire
136 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/crossfire
137 %attr(660,root,games) %config(noreplace) %verify(not size mtime md5) /var/log/crossfire
140 %defattr(644,root,root,755)
141 %doc doc/{Crossedit.doc*} crossedit/doc/*.doc*
142 %attr(755,root,root) %{_bindir}/crossedit
143 %{_mandir}/man?/crossedit*
146 %doc doc/{handbook.ps*,spoiler.ps*}
147 %doc doc/{PlayerStats*,RunTimeCommands*,SurvivalGuide*}
148 %doc doc/{skills.doc*,spellcasters_guide_to_runes*,spells*}