]>
Commit | Line | Data |
---|---|---|
e279ea73 | 1 | Summary: Multiplayer roguelike game server |
085236e3 | 2 | Summary(pl.UTF-8): Serwer gry roguelike dla wielu graczy |
a01f18c2 | 3 | Name: crossfire |
68b41324 | 4 | Version: 1.9.1 |
5b0efa6b | 5 | Release: 6 |
ea9f0991 | 6 | License: GPL |
a19f68da | 7 | Group: X11/Applications/Games |
ebccff01 | 8 | Source0: http://dl.sourceforge.net/crossfire/%{name}-%{version}.tar.gz |
68b41324 | 9 | # Source0-md5: 9444daefe1a457b4a18101c255be6cdc |
a01f18c2 JK |
10 | Source1: %{name}.init |
11 | Source2: %{name}.sysconfig | |
87321fa5 | 12 | Source3: %{name}.logrotate |
68b41324 AF |
13 | Patch0: %{name}-ac260.patch |
14 | Patch1: %{name}-check.patch | |
15 | Patch2: %{name}-daemon.patch | |
f42965cc | 16 | URL: http://crossfire.real-time.com/ |
d1f7a031 | 17 | BuildRequires: autoconf |
fb32db14 | 18 | BuildRequires: automake |
294b83f5 | 19 | BuildRequires: check |
68b41324 | 20 | BuildRequires: cproto |
df4f5f42 | 21 | BuildRequires: libtool |
e53e42ce | 22 | BuildRequires: python-devel >= 1:2.3 |
bdf99590 | 23 | BuildRequires: rpmbuild(macros) >= 1.268 |
294b83f5 | 24 | BuildRequires: xorg-lib-libX11-devel |
25 | BuildRequires: xorg-lib-libXaw-devel | |
26 | BuildRequires: xorg-lib-libXmu-devel | |
d1f7a031 | 27 | Requires(post,preun): /sbin/chkconfig |
9a408f5d | 28 | %pyrequires_eq python |
ebccff01 | 29 | Requires: crossfire-maps |
bdf99590 | 30 | Requires: rc-scripts |
6adab221 | 31 | Conflicts: logrotate < 3.7-4 |
18cb0b6e | 32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
a01f18c2 | 33 | |
18cb0b6e | 34 | %define _localstatedir /var/lib |
a01f18c2 | 35 | |
99e41279 | 36 | %description |
a01f18c2 | 37 | This is a multiplayer graphical arcade and adventure game made for the |
dd3d7f1d | 38 | X-Window environment. There are also Windows and Java clients |
a01f18c2 JK |
39 | available. |
40 | ||
41 | It has certain flavours from other games, especially Gauntlet (TM) and | |
42 | Nethack/Moria. | |
43 | ||
44 | Any number of players can move around in their own window, finding and | |
45 | sing items and battle monsters. They can choose to cooperate or | |
46 | compete in the same "world". | |
47 | ||
68b41324 AF |
48 | %description -l pl.UTF-8 |
49 | To jest graficzna gra przygodowa dla środowiska X-Window. Są także | |
50 | dostępni klienci pod Windows i w Javie. | |
e279ea73 | 51 | |
87321fa5 | 52 | %package editor |
e279ea73 | 53 | Summary: Crossfire map editor |
085236e3 | 54 | Summary(pl.UTF-8): Edytor map Crossfire |
a19f68da | 55 | Group: X11/Applications/Games |
87321fa5 JK |
56 | |
57 | %description editor | |
58 | Crossfire map editor. | |
59 | ||
68b41324 | 60 | %description editor -l pl.UTF-8 |
8a824313 | 61 | Edytor map Crossfire. |
e279ea73 | 62 | |
4869ddf7 JK |
63 | %package doc |
64 | Summary: Crossfire game documentation | |
085236e3 | 65 | Summary(pl.UTF-8): Dokumentacja gry Crossfire |
0264e2e6 | 66 | Group: Documentation |
4869ddf7 JK |
67 | |
68 | %description doc | |
69 | Crossfire documentation for players. Includes handbook and spoiler. | |
70 | ||
68b41324 AF |
71 | %description doc -l pl.UTF-8 |
72 | Dokumentacja dla graczy Crossfire. Zawiera podręcznik oraz spoiler. | |
4869ddf7 | 73 | |
ea9f0991 | 74 | %package plugin-python |
8a824313 | 75 | Summary: Python plugin for Crossfire server |
085236e3 | 76 | Summary(pl.UTF-8): Wtyczka Pythona dla serwera Crossfire |
a19f68da | 77 | Group: X11/Applications/Games |
df4f5f42 | 78 | Requires: %{name} = %{version}-%{release} |
ea9f0991 JK |
79 | |
80 | %description plugin-python | |
8a824313 | 81 | Python plugin for Crossfire server. |
82 | ||
68b41324 | 83 | %description plugin-python -l pl.UTF-8 |
8a824313 | 84 | Wtyczka Pythona dla serwera Crossfire. |
ea9f0991 | 85 | |
68b41324 AF |
86 | %package plugin-anim |
87 | Summary: Animation plugin for Crossfire server | |
085236e3 | 88 | Summary(pl.UTF-8): Wtyczka animacji dla serwera Crossfire |
a19f68da | 89 | Group: X11/Applications/Games |
68b41324 AF |
90 | Requires: %{name} = %{version}-%{release} |
91 | ||
92 | %description plugin-anim | |
93 | Animation plugin for Crossfire server. | |
94 | ||
95 | %description plugin-anim -l pl.UTF-8 | |
96 | Wtyczka animacji dla serwera Crossfire. | |
97 | ||
a01f18c2 JK |
98 | %prep |
99 | %setup -q | |
0ab97031 AF |
100 | %patch0 -p1 |
101 | %patch1 -p1 | |
102 | %patch2 -p1 | |
a01f18c2 JK |
103 | |
104 | %build | |
fb32db14 JK |
105 | %{__libtoolize} |
106 | %{__aclocal} | |
ebccff01 | 107 | %{__autoconf} |
fb32db14 | 108 | %{__automake} |
68b41324 | 109 | touch include/autoconf.h{,.in} |
a01f18c2 | 110 | %configure |
68b41324 AF |
111 | install -d test/include |
112 | %{__make} -C test/toolkit proto | |
a01f18c2 JK |
113 | %{__make} |
114 | ||
115 | %install | |
116 | rm -rf $RPM_BUILD_ROOT | |
18cb0b6e | 117 | install -d $RPM_BUILD_ROOT{/var/log,/etc/{sysconfig,%{name},logrotate.d},/etc/rc.d/init.d} \ |
118 | $RPM_BUILD_ROOT%{_localstatedir}/%{name}/{tmp,maps} | |
119 | ||
e94b95ef PG |
120 | %{__make} install \ |
121 | DESTDIR=$RPM_BUILD_ROOT | |
122 | ||
68b41324 | 123 | rm $RPM_BUILD_ROOT%{_libdir}/crossfire/plugins/*.a |
ea9f0991 | 124 | rm $RPM_BUILD_ROOT%{_bindir}/crossloop* |
fb32db14 | 125 | rm $RPM_BUILD_ROOT%{_mandir}/*/crossloop* |
0d315b34 | 126 | rm $RPM_BUILD_ROOT%{_bindir}/player_dl.pl |
a01f18c2 JK |
127 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
128 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name} | |
87321fa5 | 129 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} |
ea9f0991 | 130 | touch $RPM_BUILD_ROOT/var/log/crossfire |
99e41279 | 131 | |
a01f18c2 JK |
132 | %clean |
133 | rm -rf $RPM_BUILD_ROOT | |
134 | ||
135 | %post | |
8deaf1db | 136 | /sbin/chkconfig --add crossfire |
bdf99590 | 137 | %service crossfire restart "Crossfire server" |
a01f18c2 JK |
138 | |
139 | %preun | |
8deaf1db | 140 | if [ "$1" = "0" ]; then |
bdf99590 | 141 | %service crossfire stop |
8deaf1db | 142 | /sbin/chkconfig --del crossfire |
143 | fi | |
144 | ||
a01f18c2 JK |
145 | %files |
146 | %defattr(644,root,root,755) | |
fb32db14 JK |
147 | %doc DEVELOPERS README TODO ChangeLog |
148 | %doc doc/{alchemy.doc,experience,metaserver,multigod,plugins} | |
a01f18c2 | 149 | %attr(750,root,games) %{_bindir}/crossfire |
ea9f0991 | 150 | %attr(755,root,games) %{_bindir}/crossfire-config |
a01f18c2 JK |
151 | %dir %attr(750,root,games) %{_datadir}/crossfire |
152 | %{_datadir}/crossfire/* | |
87321fa5 | 153 | %{_mandir}/man?/crossfire* |
fb32db14 | 154 | %dir %attr(770,root,games) %{_localstatedir}/crossfire |
87321fa5 JK |
155 | %dir %attr(770,root,games) %{_localstatedir}/crossfire/players |
156 | %dir %attr(770,root,games) %{_localstatedir}/crossfire/unique-items | |
157 | %dir %attr(770,root,games) %{_localstatedir}/crossfire/tmp | |
35d8672c | 158 | %dir %attr(770,root,games) %{_localstatedir}/crossfire/maps |
0d315b34 ER |
159 | %attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/bookarch |
160 | %attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/highscore | |
161 | %attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/temp.maps | |
162 | %attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/clockdata | |
163 | %attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/banish_file | |
164 | %dir %{_sysconfdir}/crossfire | |
165 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/crossfire/* | |
a01f18c2 | 166 | %attr(754,root,root) /etc/rc.d/init.d/crossfire |
0d315b34 ER |
167 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/crossfire |
168 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/crossfire | |
169 | %attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) /var/log/crossfire | |
ea9f0991 JK |
170 | %dir %{_libdir}/crossfire |
171 | %dir %{_libdir}/crossfire/plugins | |
172 | %attr(755,root,root) %{_libdir}/crossfire/add_throw.perl | |
173 | %attr(755,root,root) %{_libdir}/crossfire/metaserver.pl | |
174 | %attr(755,root,root) %{_libdir}/crossfire/mktable.script | |
175 | %attr(755,root,root) %{_libdir}/crossfire/random_map | |
99e41279 | 176 | |
87321fa5 JK |
177 | %files editor |
178 | %defattr(644,root,root,755) | |
ea9f0991 | 179 | %doc crossedit/doc/*.doc |
87321fa5 JK |
180 | %attr(755,root,root) %{_bindir}/crossedit |
181 | %{_mandir}/man?/crossedit* | |
4869ddf7 JK |
182 | |
183 | %files doc | |
35d8672c | 184 | %defattr(644,root,root,755) |
4869ddf7 | 185 | %doc doc/{handbook.ps,spoiler.ps} |
99e41279 | 186 | %doc doc/{PlayerStats,RunTimeCommands,SurvivalGuide} |
fb32db14 JK |
187 | %doc doc/{skills.doc,spellcasters_guide_to_runes} |
188 | %doc doc/spell-docs/{*.txt,spell-list.ps,spell-summary.ps} | |
ea9f0991 JK |
189 | |
190 | %files plugin-python | |
191 | %defattr(644,root,root,755) | |
68b41324 AF |
192 | %attr(755,root,root) %{_libdir}/crossfire/plugins/cfpython.* |
193 | ||
194 | %files plugin-anim | |
195 | %defattr(644,root,root,755) | |
196 | %attr(755,root,root) %{_libdir}/crossfire/plugins/cfanim.* |