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