]>
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 |
15fd3cc3 | 5 | Release: 14 |
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 | |
ae447a11 | 16 | Patch3: %{name}-python.patch |
7d202db8 AG |
17 | Patch4: %{name}-am.patch |
18 | Patch5: %{name}-libpng15.patch | |
f42965cc | 19 | URL: http://crossfire.real-time.com/ |
d1f7a031 | 20 | BuildRequires: autoconf |
fb32db14 | 21 | BuildRequires: automake |
294b83f5 | 22 | BuildRequires: check |
68b41324 | 23 | BuildRequires: cproto |
df4f5f42 | 24 | BuildRequires: libtool |
e53e42ce | 25 | BuildRequires: python-devel >= 1:2.3 |
bdf99590 | 26 | BuildRequires: rpmbuild(macros) >= 1.268 |
294b83f5 | 27 | BuildRequires: xorg-lib-libX11-devel |
28 | BuildRequires: xorg-lib-libXaw-devel | |
29 | BuildRequires: xorg-lib-libXmu-devel | |
d1f7a031 | 30 | Requires(post,preun): /sbin/chkconfig |
9a408f5d | 31 | %pyrequires_eq python |
ebccff01 | 32 | Requires: crossfire-maps |
bdf99590 | 33 | Requires: rc-scripts |
07f1a1ed | 34 | Conflicts: logrotate < 3.8.0 |
18cb0b6e | 35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
a01f18c2 | 36 | |
18cb0b6e | 37 | %define _localstatedir /var/lib |
a01f18c2 | 38 | |
99e41279 | 39 | %description |
a01f18c2 | 40 | This is a multiplayer graphical arcade and adventure game made for the |
dd3d7f1d | 41 | X-Window environment. There are also Windows and Java clients |
a01f18c2 JK |
42 | available. |
43 | ||
44 | It has certain flavours from other games, especially Gauntlet (TM) and | |
45 | Nethack/Moria. | |
46 | ||
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". | |
50 | ||
68b41324 AF |
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. | |
e279ea73 | 54 | |
87321fa5 | 55 | %package editor |
e279ea73 | 56 | Summary: Crossfire map editor |
085236e3 | 57 | Summary(pl.UTF-8): Edytor map Crossfire |
a19f68da | 58 | Group: X11/Applications/Games |
87321fa5 JK |
59 | |
60 | %description editor | |
61 | Crossfire map editor. | |
62 | ||
68b41324 | 63 | %description editor -l pl.UTF-8 |
8a824313 | 64 | Edytor map Crossfire. |
e279ea73 | 65 | |
4869ddf7 JK |
66 | %package doc |
67 | Summary: Crossfire game documentation | |
085236e3 | 68 | Summary(pl.UTF-8): Dokumentacja gry Crossfire |
0264e2e6 | 69 | Group: Documentation |
4869ddf7 JK |
70 | |
71 | %description doc | |
72 | Crossfire documentation for players. Includes handbook and spoiler. | |
73 | ||
68b41324 AF |
74 | %description doc -l pl.UTF-8 |
75 | Dokumentacja dla graczy Crossfire. Zawiera podręcznik oraz spoiler. | |
4869ddf7 | 76 | |
ea9f0991 | 77 | %package plugin-python |
8a824313 | 78 | Summary: Python plugin for Crossfire server |
085236e3 | 79 | Summary(pl.UTF-8): Wtyczka Pythona dla serwera Crossfire |
a19f68da | 80 | Group: X11/Applications/Games |
df4f5f42 | 81 | Requires: %{name} = %{version}-%{release} |
ea9f0991 JK |
82 | |
83 | %description plugin-python | |
8a824313 | 84 | Python plugin for Crossfire server. |
85 | ||
68b41324 | 86 | %description plugin-python -l pl.UTF-8 |
8a824313 | 87 | Wtyczka Pythona dla serwera Crossfire. |
ea9f0991 | 88 | |
68b41324 AF |
89 | %package plugin-anim |
90 | Summary: Animation plugin for Crossfire server | |
085236e3 | 91 | Summary(pl.UTF-8): Wtyczka animacji dla serwera Crossfire |
a19f68da | 92 | Group: X11/Applications/Games |
68b41324 AF |
93 | Requires: %{name} = %{version}-%{release} |
94 | ||
95 | %description plugin-anim | |
96 | Animation plugin for Crossfire server. | |
97 | ||
98 | %description plugin-anim -l pl.UTF-8 | |
99 | Wtyczka animacji dla serwera Crossfire. | |
100 | ||
a01f18c2 JK |
101 | %prep |
102 | %setup -q | |
0ab97031 AF |
103 | %patch0 -p1 |
104 | %patch1 -p1 | |
105 | %patch2 -p1 | |
ae447a11 | 106 | %patch3 -p1 |
7d202db8 AG |
107 | %patch4 -p1 |
108 | %patch5 -p1 | |
a01f18c2 JK |
109 | |
110 | %build | |
fb32db14 JK |
111 | %{__libtoolize} |
112 | %{__aclocal} | |
ebccff01 | 113 | %{__autoconf} |
fb32db14 | 114 | %{__automake} |
68b41324 | 115 | touch include/autoconf.h{,.in} |
a01f18c2 | 116 | %configure |
68b41324 AF |
117 | install -d test/include |
118 | %{__make} -C test/toolkit proto | |
a01f18c2 JK |
119 | %{__make} |
120 | ||
121 | %install | |
122 | rm -rf $RPM_BUILD_ROOT | |
18cb0b6e | 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} | |
125 | ||
e94b95ef PG |
126 | %{__make} install \ |
127 | DESTDIR=$RPM_BUILD_ROOT | |
128 | ||
68b41324 | 129 | rm $RPM_BUILD_ROOT%{_libdir}/crossfire/plugins/*.a |
ea9f0991 | 130 | rm $RPM_BUILD_ROOT%{_bindir}/crossloop* |
fb32db14 | 131 | rm $RPM_BUILD_ROOT%{_mandir}/*/crossloop* |
0d315b34 | 132 | rm $RPM_BUILD_ROOT%{_bindir}/player_dl.pl |
a01f18c2 JK |
133 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
134 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name} | |
87321fa5 | 135 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} |
ea9f0991 | 136 | touch $RPM_BUILD_ROOT/var/log/crossfire |
99e41279 | 137 | |
a01f18c2 JK |
138 | %clean |
139 | rm -rf $RPM_BUILD_ROOT | |
140 | ||
141 | %post | |
8deaf1db | 142 | /sbin/chkconfig --add crossfire |
bdf99590 | 143 | %service crossfire restart "Crossfire server" |
a01f18c2 JK |
144 | |
145 | %preun | |
8deaf1db | 146 | if [ "$1" = "0" ]; then |
bdf99590 | 147 | %service crossfire stop |
8deaf1db | 148 | /sbin/chkconfig --del crossfire |
149 | fi | |
150 | ||
a01f18c2 JK |
151 | %files |
152 | %defattr(644,root,root,755) | |
fb32db14 JK |
153 | %doc DEVELOPERS README TODO ChangeLog |
154 | %doc doc/{alchemy.doc,experience,metaserver,multigod,plugins} | |
a01f18c2 | 155 | %attr(750,root,games) %{_bindir}/crossfire |
ea9f0991 | 156 | %attr(755,root,games) %{_bindir}/crossfire-config |
a01f18c2 JK |
157 | %dir %attr(750,root,games) %{_datadir}/crossfire |
158 | %{_datadir}/crossfire/* | |
87321fa5 | 159 | %{_mandir}/man?/crossfire* |
fb32db14 | 160 | %dir %attr(770,root,games) %{_localstatedir}/crossfire |
87321fa5 JK |
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 | |
35d8672c | 164 | %dir %attr(770,root,games) %{_localstatedir}/crossfire/maps |
0d315b34 ER |
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/* | |
a01f18c2 | 172 | %attr(754,root,root) /etc/rc.d/init.d/crossfire |
0d315b34 ER |
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 | |
ea9f0991 JK |
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 | |
99e41279 | 182 | |
87321fa5 JK |
183 | %files editor |
184 | %defattr(644,root,root,755) | |
ea9f0991 | 185 | %doc crossedit/doc/*.doc |
87321fa5 JK |
186 | %attr(755,root,root) %{_bindir}/crossedit |
187 | %{_mandir}/man?/crossedit* | |
4869ddf7 JK |
188 | |
189 | %files doc | |
35d8672c | 190 | %defattr(644,root,root,755) |
4869ddf7 | 191 | %doc doc/{handbook.ps,spoiler.ps} |
99e41279 | 192 | %doc doc/{PlayerStats,RunTimeCommands,SurvivalGuide} |
fb32db14 JK |
193 | %doc doc/{skills.doc,spellcasters_guide_to_runes} |
194 | %doc doc/spell-docs/{*.txt,spell-list.ps,spell-summary.ps} | |
ea9f0991 JK |
195 | |
196 | %files plugin-python | |
197 | %defattr(644,root,root,755) | |
68b41324 AF |
198 | %attr(755,root,root) %{_libdir}/crossfire/plugins/cfpython.* |
199 | ||
200 | %files plugin-anim | |
201 | %defattr(644,root,root,755) | |
202 | %attr(755,root,root) %{_libdir}/crossfire/plugins/cfanim.* |