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