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