1 Summary: Multiplayer roguelike game server
2 Summary(pl.UTF-8): Serwer gry roguelike dla wielu graczy
7 Group: X11/Applications/Games
8 Source0: https://downloads.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: https://crossfire.real-time.com/
20 BuildRequires: autoconf >= 2.50
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 BuildRequires: xorg-lib-libXt-devel
31 Requires(post,preun): /sbin/chkconfig
33 Requires: crossfire-maps
35 Conflicts: logrotate < 3.8.0
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 %define _localstatedir /var/lib
41 This is a multiplayer graphical arcade and adventure game made for the
42 X-Window environment. There are also Windows and Java clients
45 It has certain flavours from other games, especially Gauntlet (TM) and
48 Any number of players can move around in their own window, finding and
49 sing items and battle monsters. They can choose to cooperate or
50 compete in the same "world".
52 %description -l pl.UTF-8
53 To jest graficzna gra przygodowa dla środowiska X-Window. Są także
54 dostępni klienci pod Windows i w Javie.
57 Summary: Crossfire map editor
58 Summary(pl.UTF-8): Edytor map Crossfire
59 Group: X11/Applications/Games
64 %description editor -l pl.UTF-8
68 Summary: Crossfire game documentation
69 Summary(pl.UTF-8): Dokumentacja gry Crossfire
73 Crossfire documentation for players. Includes handbook and spoiler.
75 %description doc -l pl.UTF-8
76 Dokumentacja dla graczy Crossfire. Zawiera podręcznik oraz spoiler.
78 %package plugin-python
79 Summary: Python plugin for Crossfire server
80 Summary(pl.UTF-8): Wtyczka Pythona dla serwera Crossfire
81 Group: X11/Applications/Games
82 Requires: %{name} = %{version}-%{release}
84 %description plugin-python
85 Python plugin for Crossfire server.
87 %description plugin-python -l pl.UTF-8
88 Wtyczka Pythona dla serwera Crossfire.
91 Summary: Animation plugin for Crossfire server
92 Summary(pl.UTF-8): Wtyczka animacji dla serwera Crossfire
93 Group: X11/Applications/Games
94 Requires: %{name} = %{version}-%{release}
96 %description plugin-anim
97 Animation plugin for Crossfire server.
99 %description plugin-anim -l pl.UTF-8
100 Wtyczka animacji dla serwera Crossfire.
117 touch include/autoconf.h{,.in}
121 install -d test/include
122 %{__make} -C test/toolkit proto
127 rm -rf $RPM_BUILD_ROOT
128 install -d $RPM_BUILD_ROOT{/var/log,/etc/{sysconfig,%{name},logrotate.d},/etc/rc.d/init.d} \
129 $RPM_BUILD_ROOT%{_localstatedir}/%{name}/{tmp,maps}
132 DESTDIR=$RPM_BUILD_ROOT
134 %{__rm} $RPM_BUILD_ROOT%{_libdir}/crossfire/plugins/*.la
135 %{__rm} $RPM_BUILD_ROOT%{_bindir}/crossloop*
136 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man6/crossloop*.6*
137 %{__rm} $RPM_BUILD_ROOT%{_bindir}/player_dl.pl
138 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
139 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
140 cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
141 touch $RPM_BUILD_ROOT/var/log/crossfire
144 rm -rf $RPM_BUILD_ROOT
147 /sbin/chkconfig --add crossfire
148 %service crossfire restart "Crossfire server"
151 if [ "$1" = "0" ]; then
152 %service crossfire stop
153 /sbin/chkconfig --del crossfire
157 %defattr(644,root,root,755)
158 %doc DEVELOPERS README TODO ChangeLog
159 %doc doc/{alchemy.doc,experience,metaserver,multigod,plugins}
160 %attr(750,root,games) %{_bindir}/crossfire
161 %attr(755,root,games) %{_bindir}/crossfire-config
162 %dir %attr(750,root,games) %{_datadir}/crossfire
163 %{_datadir}/crossfire/*
164 %{_mandir}/man6/crossfire.6*
165 %{_mandir}/man6/crossfire-config.6*
166 %dir %attr(770,root,games) %{_localstatedir}/crossfire
167 %dir %attr(770,root,games) %{_localstatedir}/crossfire/players
168 %dir %attr(770,root,games) %{_localstatedir}/crossfire/unique-items
169 %dir %attr(770,root,games) %{_localstatedir}/crossfire/tmp
170 %dir %attr(770,root,games) %{_localstatedir}/crossfire/maps
171 %attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/bookarch
172 %attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/highscore
173 %attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/temp.maps
174 %attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/clockdata
175 %attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/banish_file
176 %dir %{_sysconfdir}/crossfire
177 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/crossfire/*
178 %attr(754,root,root) /etc/rc.d/init.d/crossfire
179 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/crossfire
180 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/crossfire
181 %attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) /var/log/crossfire
182 %dir %{_libdir}/crossfire
183 %dir %{_libdir}/crossfire/plugins
184 %attr(755,root,root) %{_libdir}/crossfire/add_throw.perl
185 %attr(755,root,root) %{_libdir}/crossfire/metaserver.pl
186 %attr(755,root,root) %{_libdir}/crossfire/mktable.script
187 %attr(755,root,root) %{_libdir}/crossfire/random_map
190 %defattr(644,root,root,755)
191 %doc crossedit/doc/*.doc
192 %attr(755,root,root) %{_bindir}/crossedit
193 %{_mandir}/man6/crossedit.6*
196 %defattr(644,root,root,755)
197 %doc doc/{handbook.ps,spoiler.ps}
198 %doc doc/{PlayerStats,RunTimeCommands,SurvivalGuide}
199 %doc doc/{skills.doc,spellcasters_guide_to_runes}
200 %doc doc/spell-docs/{*.txt,spell-list.ps,spell-summary.ps}
203 %defattr(644,root,root,755)
204 %attr(755,root,root) %{_libdir}/crossfire/plugins/cfpython.so
207 %defattr(644,root,root,755)
208 %attr(755,root,root) %{_libdir}/crossfire/plugins/cfanim.so