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