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