1 Summary: Multiplayer roguelike game server
2 Summary(pl.UTF-8): Serwer gry roguelike dla wielu graczy
7 Group: X11/Applications/Games
8 Source0: http://dl.sourceforge.net/crossfire/%{name}-%{version}.tar.gz
9 # Source0-md5: 9444daefe1a457b4a18101c255be6cdc
11 Source2: %{name}.sysconfig
12 Source3: %{name}.logrotate
13 Patch0: %{name}-ac260.patch
14 Patch1: %{name}-check.patch
15 Patch2: %{name}-daemon.patch
16 Patch3: %{name}-python.patch
17 Patch4: %{name}-am.patch
18 Patch5: %{name}-libpng15.patch
19 URL: http://crossfire.real-time.com/
20 BuildRequires: autoconf
21 BuildRequires: automake
24 BuildRequires: libtool
25 BuildRequires: python-devel >= 1:2.3
26 BuildRequires: rpmbuild(macros) >= 1.268
27 BuildRequires: xorg-lib-libX11-devel
28 BuildRequires: xorg-lib-libXaw-devel
29 BuildRequires: xorg-lib-libXmu-devel
30 Requires(post,preun): /sbin/chkconfig
32 Requires: crossfire-maps
34 Conflicts: logrotate < 3.8.0
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 %define _localstatedir /var/lib
40 This is a multiplayer graphical arcade and adventure game made for the
41 X-Window environment. There are also Windows and Java clients
44 It has certain flavours from other games, especially Gauntlet (TM) and
47 Any number of players can move around in their own window, finding and
48 sing items and battle monsters. They can choose to cooperate or
49 compete in the same "world".
51 %description -l pl.UTF-8
52 To jest graficzna gra przygodowa dla środowiska X-Window. Są także
53 dostępni klienci pod Windows i w Javie.
56 Summary: Crossfire map editor
57 Summary(pl.UTF-8): Edytor map Crossfire
58 Group: X11/Applications/Games
63 %description editor -l pl.UTF-8
67 Summary: Crossfire game documentation
68 Summary(pl.UTF-8): Dokumentacja gry Crossfire
72 Crossfire documentation for players. Includes handbook and spoiler.
74 %description doc -l pl.UTF-8
75 Dokumentacja dla graczy Crossfire. Zawiera podręcznik oraz spoiler.
77 %package plugin-python
78 Summary: Python plugin for Crossfire server
79 Summary(pl.UTF-8): Wtyczka Pythona dla serwera Crossfire
80 Group: X11/Applications/Games
81 Requires: %{name} = %{version}-%{release}
83 %description plugin-python
84 Python plugin for Crossfire server.
86 %description plugin-python -l pl.UTF-8
87 Wtyczka Pythona dla serwera Crossfire.
90 Summary: Animation plugin for Crossfire server
91 Summary(pl.UTF-8): Wtyczka animacji dla serwera Crossfire
92 Group: X11/Applications/Games
93 Requires: %{name} = %{version}-%{release}
95 %description plugin-anim
96 Animation plugin for Crossfire server.
98 %description plugin-anim -l pl.UTF-8
99 Wtyczka animacji dla serwera Crossfire.
115 touch include/autoconf.h{,.in}
117 install -d test/include
118 %{__make} -C test/toolkit proto
122 rm -rf $RPM_BUILD_ROOT
123 install -d $RPM_BUILD_ROOT{/var/log,/etc/{sysconfig,%{name},logrotate.d},/etc/rc.d/init.d} \
124 $RPM_BUILD_ROOT%{_localstatedir}/%{name}/{tmp,maps}
127 DESTDIR=$RPM_BUILD_ROOT
129 rm $RPM_BUILD_ROOT%{_libdir}/crossfire/plugins/*.a
130 rm $RPM_BUILD_ROOT%{_bindir}/crossloop*
131 rm $RPM_BUILD_ROOT%{_mandir}/*/crossloop*
132 rm $RPM_BUILD_ROOT%{_bindir}/player_dl.pl
133 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
134 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
135 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
136 touch $RPM_BUILD_ROOT/var/log/crossfire
139 rm -rf $RPM_BUILD_ROOT
142 /sbin/chkconfig --add crossfire
143 %service crossfire restart "Crossfire server"
146 if [ "$1" = "0" ]; then
147 %service crossfire stop
148 /sbin/chkconfig --del crossfire
152 %defattr(644,root,root,755)
153 %doc DEVELOPERS README TODO ChangeLog
154 %doc doc/{alchemy.doc,experience,metaserver,multigod,plugins}
155 %attr(750,root,games) %{_bindir}/crossfire
156 %attr(755,root,games) %{_bindir}/crossfire-config
157 %dir %attr(750,root,games) %{_datadir}/crossfire
158 %{_datadir}/crossfire/*
159 %{_mandir}/man?/crossfire*
160 %dir %attr(770,root,games) %{_localstatedir}/crossfire
161 %dir %attr(770,root,games) %{_localstatedir}/crossfire/players
162 %dir %attr(770,root,games) %{_localstatedir}/crossfire/unique-items
163 %dir %attr(770,root,games) %{_localstatedir}/crossfire/tmp
164 %dir %attr(770,root,games) %{_localstatedir}/crossfire/maps
165 %attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/bookarch
166 %attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/highscore
167 %attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/temp.maps
168 %attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/clockdata
169 %attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/banish_file
170 %dir %{_sysconfdir}/crossfire
171 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/crossfire/*
172 %attr(754,root,root) /etc/rc.d/init.d/crossfire
173 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/crossfire
174 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/crossfire
175 %attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) /var/log/crossfire
176 %dir %{_libdir}/crossfire
177 %dir %{_libdir}/crossfire/plugins
178 %attr(755,root,root) %{_libdir}/crossfire/add_throw.perl
179 %attr(755,root,root) %{_libdir}/crossfire/metaserver.pl
180 %attr(755,root,root) %{_libdir}/crossfire/mktable.script
181 %attr(755,root,root) %{_libdir}/crossfire/random_map
184 %defattr(644,root,root,755)
185 %doc crossedit/doc/*.doc
186 %attr(755,root,root) %{_bindir}/crossedit
187 %{_mandir}/man?/crossedit*
190 %defattr(644,root,root,755)
191 %doc doc/{handbook.ps,spoiler.ps}
192 %doc doc/{PlayerStats,RunTimeCommands,SurvivalGuide}
193 %doc doc/{skills.doc,spellcasters_guide_to_runes}
194 %doc doc/spell-docs/{*.txt,spell-list.ps,spell-summary.ps}
197 %defattr(644,root,root,755)
198 %attr(755,root,root) %{_libdir}/crossfire/plugins/cfpython.*
201 %defattr(644,root,root,755)
202 %attr(755,root,root) %{_libdir}/crossfire/plugins/cfanim.*