]>
Commit | Line | Data |
---|---|---|
4628d6cf | 1 | Summary: Main GGZ server |
2 | Summary(pl.UTF-8): Główny serwer GGZ | |
3 | Name: ggz-server | |
f36502c7 | 4 | Version: 0.0.14.1 |
a0d0bc62 | 5 | Release: 6 |
4628d6cf | 6 | License: GPL v2+ |
7 | Group: Applications | |
f36502c7 | 8 | Source0: http://ftp.belnet.be/packages/ggzgamingzone/ggz/%{version}/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 254caaf8fe7b4a2bafcb62576abba72c | |
4628d6cf | 10 | Source1: %{name}.init |
d2634d3e | 11 | Source2: %{name}.conf |
b4942f58 | 12 | Source3: %{name}.logrotate |
d2634d3e | 13 | Patch0: %{name}-db4.patch |
a171aaaa | 14 | Patch1: %{name}-gcc43.patch |
85429491 JR |
15 | Patch2: %{name}-inotify-header.patch |
16 | Patch3: %{name}-format-security.patch | |
17 | Patch4: %{name}-avahi.patch | |
05eb8bf2 | 18 | Patch5: %{name}-gcc47.patch |
4628d6cf | 19 | URL: http://www.ggzgamingzone.org/ |
3ab3cc67 JB |
20 | BuildRequires: autoconf >= 2.50 |
21 | BuildRequires: automake | |
22 | BuildRequires: avahi-devel | |
23 | BuildRequires: db-devel >= 4 | |
24 | BuildRequires: expat-devel >= 1.95 | |
25 | BuildRequires: libggz-devel >= 0.0.14 | |
26 | BuildRequires: libtool | |
27 | BuildRequires: rpmbuild(macros) >= 1.268 | |
28 | Requires(post,preun): /sbin/chkconfig | |
d2634d3e | 29 | Requires: %{name}-libs = %{version}-%{release} |
3ab3cc67 | 30 | Requires: rc-scripts |
4628d6cf | 31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
b4942f58 MB |
33 | %define _localstatedir /var/lib |
34 | ||
4628d6cf | 35 | %description |
d0922c78 | 36 | This package contains the main GGZ server, some administrative |
d2634d3e | 37 | utilities and lots of game servers. |
4628d6cf | 38 | |
39 | %description -l pl.UTF-8 | |
d2634d3e MB |
40 | Ta paczka zawiera główny serwer GGZ, kilka narzędzi administracyjnych |
41 | oraz dużo serwerów gier. | |
42 | ||
43 | %package libs | |
44 | Summary: ggz-server libraries | |
45 | Summary(pl.UTF-8): Biblioteki ggz-server | |
46 | Group: Libraries | |
47 | ||
48 | %description libs | |
49 | ggz-server libraries. | |
50 | ||
51 | %description libs -l pl.UTF-8 | |
52 | Biblioteki ggz-server. | |
4628d6cf | 53 | |
54 | %package devel | |
55 | Summary: Header files for ggz-server library | |
93c557a3 | 56 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ggz-server |
4628d6cf | 57 | Group: Development/Libraries |
7c2451e4 | 58 | Requires: %{name}-libs = %{version}-%{release} |
3ab3cc67 | 59 | Requires: libggz-devel >= 0.0.14 |
4628d6cf | 60 | |
61 | %description devel | |
62 | Header files for ggz-server library. | |
63 | ||
64 | %description devel -l pl.UTF-8 | |
65 | Pliki nagłówkowe biblioteki ggz-server. | |
66 | ||
67 | %package static | |
68 | Summary: Static ggz-server library | |
69 | Summary(pl.UTF-8): Statyczna biblioteka ggz-server | |
70 | Group: Development/Libraries | |
71 | Requires: %{name}-devel = %{version}-%{release} | |
72 | ||
73 | %description static | |
74 | Static ggz-server library. | |
75 | ||
76 | %description static -l pl.UTF-8 | |
77 | Statyczna biblioteka ggz-server. | |
78 | ||
79 | %prep | |
80 | %setup -q | |
d2634d3e | 81 | %patch0 -p1 |
a171aaaa | 82 | %patch1 -p1 |
85429491 JR |
83 | %patch2 -p1 |
84 | %patch3 -p1 | |
85 | %patch4 -p1 | |
05eb8bf2 | 86 | %patch5 -p1 |
4628d6cf | 87 | |
88 | %build | |
3ab3cc67 JB |
89 | %{__libtoolize} |
90 | %{__aclocal} -I m4 -I m4/ggz | |
4628d6cf | 91 | %{__autoconf} |
92 | %{__autoheader} | |
93 | %{__automake} | |
d2634d3e MB |
94 | %configure \ |
95 | --with-database=db4 \ | |
96 | --with-zeroconf=avahi \ | |
97 | --with-reconfiguration=inotify | |
98 | ||
4628d6cf | 99 | %{__make} |
100 | ||
101 | %install | |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
b4942f58 | 104 | install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,ggzd,logrotate.d},%{_var}/{lib/ggzd,log}} |
4628d6cf | 105 | |
106 | %{__make} install \ | |
107 | DESTDIR=$RPM_BUILD_ROOT | |
108 | ||
109 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ggzd | |
d2634d3e | 110 | sed -e 's,@LIBDIR@,%{_libdir},' %{SOURCE2} > $RPM_BUILD_ROOT%{_sysconfdir}/ggzd/ggzd.conf |
b4942f58 | 111 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} |
4628d6cf | 112 | |
d2634d3e | 113 | :> $RPM_BUILD_ROOT%{_var}/log/ggz-server.log |
8447a4cd | 114 | |
4628d6cf | 115 | %clean |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
118 | %post | |
119 | /sbin/chkconfig --add ggzd | |
120 | %service ggzd restart | |
121 | ||
122 | %preun | |
123 | if [ "$1" = "0" ]; then | |
124 | %service ggzd stop | |
125 | /sbin/chkconfig --del ggzd | |
126 | fi | |
127 | ||
d2634d3e | 128 | %post libs -p /sbin/ldconfig |
cfa214fe | 129 | %postun libs -p /sbin/ldconfig |
3ab3cc67 | 130 | |
4628d6cf | 131 | %files |
132 | %defattr(644,root,root,755) | |
133 | %doc AUTHORS ChangeLog NEWS README TODO ggzd/ggzd.conf.example | |
d2634d3e MB |
134 | %attr(755,root,root) %{_bindir}/ggzd |
135 | %attr(755,root,root) %{_bindir}/ggzduedit | |
136 | %dir %{_libdir}/ggzd | |
137 | %attr(755,root,root) %{_libdir}/ggzd/geekgameserver | |
138 | %attr(755,root,root) %{_libdir}/ggzd/ggzd.ccheckers | |
139 | %attr(755,root,root) %{_libdir}/ggzd/ggzd.chess | |
140 | %attr(755,root,root) %{_libdir}/ggzd/ggzd.combat | |
141 | %attr(755,root,root) %{_libdir}/ggzd/ggzd.connectx | |
142 | %attr(755,root,root) %{_libdir}/ggzd/ggzd.dots | |
143 | %attr(755,root,root) %{_libdir}/ggzd/ggzd.escape | |
144 | %attr(755,root,root) %{_libdir}/ggzd/ggzd.ggzcards | |
145 | %attr(755,root,root) %{_libdir}/ggzd/ggzd.ggzcards.ai-random | |
146 | %attr(755,root,root) %{_libdir}/ggzd/ggzd.ggzcards.ai-spades | |
147 | %attr(755,root,root) %{_libdir}/ggzd/ggzd.ggzcards.ai-suaro | |
148 | %attr(755,root,root) %{_libdir}/ggzd/ggzd.hastings | |
149 | %attr(755,root,root) %{_libdir}/ggzd/ggzd.reversi | |
150 | %attr(755,root,root) %{_libdir}/ggzd/ggzd.spades | |
151 | %attr(755,root,root) %{_libdir}/ggzd/ggzd.tictactoe | |
152 | %attr(755,root,root) %{_libdir}/ggzd/keepalivesrv | |
153 | %attr(755,root,root) %{_libdir}/ggzd/krosswater_server | |
154 | %attr(755,root,root) %{_libdir}/ggzd/muehleserv | |
155 | %attr(755,root,root) %{_libdir}/ggzd/tuxmanserv | |
156 | %attr(755,root,root) %{_libdir}/ggzd/widelands_server | |
157 | %dir %{_sysconfdir}/ggzd | |
36fcfe24 | 158 | %dir %{_sysconfdir}/ggzd/games |
d2634d3e MB |
159 | %{_sysconfdir}/ggzd/games/ccheckers.dsc |
160 | %{_sysconfdir}/ggzd/games/chess.dsc | |
161 | %{_sysconfdir}/ggzd/games/combat.dsc | |
162 | %{_sysconfdir}/ggzd/games/connectx.dsc | |
163 | %{_sysconfdir}/ggzd/games/dots.dsc | |
164 | %{_sysconfdir}/ggzd/games/escape.dsc | |
165 | %{_sysconfdir}/ggzd/games/geekgame.dsc | |
166 | %{_sysconfdir}/ggzd/games/ggzcards-bridge.dsc | |
167 | %{_sysconfdir}/ggzd/games/ggzcards-fortytwo.dsc | |
168 | %{_sysconfdir}/ggzd/games/ggzcards-hearts.dsc | |
169 | %{_sysconfdir}/ggzd/games/ggzcards-lapocha.dsc | |
170 | %{_sysconfdir}/ggzd/games/ggzcards-spades.dsc | |
171 | %{_sysconfdir}/ggzd/games/ggzcards-suaro.dsc | |
172 | %{_sysconfdir}/ggzd/games/ggzcards-sueca.dsc | |
173 | %{_sysconfdir}/ggzd/games/ggzcards-whist.dsc | |
174 | %{_sysconfdir}/ggzd/games/ggzcards.dsc | |
175 | %{_sysconfdir}/ggzd/games/hastings.dsc | |
176 | %{_sysconfdir}/ggzd/games/keepalive.dsc | |
177 | %{_sysconfdir}/ggzd/games/krosswater.dsc | |
178 | %{_sysconfdir}/ggzd/games/muehle.dsc | |
179 | %{_sysconfdir}/ggzd/games/reversi.dsc | |
180 | %{_sysconfdir}/ggzd/games/spades.dsc | |
181 | %{_sysconfdir}/ggzd/games/tictactoe.dsc | |
182 | %{_sysconfdir}/ggzd/games/tuxman.dsc | |
183 | %{_sysconfdir}/ggzd/games/widelands.dsc | |
36fcfe24 | 184 | %dir %{_sysconfdir}/ggzd/rooms |
d2634d3e MB |
185 | %{_sysconfdir}/ggzd/rooms/ccheckers.room |
186 | %{_sysconfdir}/ggzd/rooms/chess.room | |
187 | %{_sysconfdir}/ggzd/rooms/combat.room | |
188 | %{_sysconfdir}/ggzd/rooms/connectx.room | |
189 | %{_sysconfdir}/ggzd/rooms/dots.room | |
190 | %{_sysconfdir}/ggzd/rooms/entry.room | |
191 | %{_sysconfdir}/ggzd/rooms/escape.room | |
192 | %{_sysconfdir}/ggzd/rooms/geekgame.room | |
193 | %{_sysconfdir}/ggzd/rooms/ggzcards-bridge.room | |
194 | %{_sysconfdir}/ggzd/rooms/ggzcards-fortytwo.room | |
195 | %{_sysconfdir}/ggzd/rooms/ggzcards-hearts.room | |
196 | %{_sysconfdir}/ggzd/rooms/ggzcards-lapocha.room | |
197 | %{_sysconfdir}/ggzd/rooms/ggzcards-spades.room | |
198 | %{_sysconfdir}/ggzd/rooms/ggzcards-suaro.room | |
199 | %{_sysconfdir}/ggzd/rooms/ggzcards-sueca.room | |
200 | %{_sysconfdir}/ggzd/rooms/ggzcards-whist.room | |
201 | %{_sysconfdir}/ggzd/rooms/ggzcards.room | |
202 | %{_sysconfdir}/ggzd/rooms/hastings.room | |
203 | %{_sysconfdir}/ggzd/rooms/keepalive.room | |
204 | %{_sysconfdir}/ggzd/rooms/krosswater.room | |
205 | %{_sysconfdir}/ggzd/rooms/muehle.room | |
206 | %{_sysconfdir}/ggzd/rooms/reversi.room | |
207 | %{_sysconfdir}/ggzd/rooms/spades.room | |
208 | %{_sysconfdir}/ggzd/rooms/tictactoe.room | |
209 | %{_sysconfdir}/ggzd/rooms/tuxman.room | |
210 | %{_sysconfdir}/ggzd/rooms/widelands.room | |
b4942f58 | 211 | %attr(640,root,games) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ggzd/ggzd.conf |
36fcfe24 | 212 | %{_sysconfdir}/ggzd/ggzd.motd |
d2634d3e | 213 | %attr(754,root,root) /etc/rc.d/init.d/ggzd |
b4942f58 | 214 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/ggz-server |
d2634d3e MB |
215 | %dir %{_datadir}/ggz/ggzd |
216 | %{_datadir}/ggz/ggzd/ggzcards | |
217 | %{_datadir}/ggz/ggzd/hastings1066 | |
218 | %{_datadir}/ggz/ggzd/muehle | |
219 | %{_datadir}/ggz/ggzd/tuxmanserv | |
220 | %{_mandir}/man6/ggzd.6* | |
221 | %{_mandir}/man6/ggzduedit.6* | |
b4942f58 MB |
222 | %attr(770,root,games) %{_localstatedir}/ggzd |
223 | %attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_var}/log/ggz-server.log | |
d2634d3e MB |
224 | |
225 | %files libs | |
226 | %defattr(644,root,root,755) | |
227 | %attr(755,root,root) %{_libdir}/libggzdmod++.so.*.*.* | |
228 | %attr(755,root,root) %ghost %{_libdir}/libggzdmod++.so.1 | |
229 | %attr(755,root,root) %{_libdir}/libggzdmod.so.*.*.* | |
230 | %attr(755,root,root) %ghost %{_libdir}/libggzdmod.so.6 | |
4628d6cf | 231 | |
232 | %files devel | |
233 | %defattr(644,root,root,755) | |
d2634d3e MB |
234 | %attr(755,root,root) %{_libdir}/libggzdmod++.so |
235 | %attr(755,root,root) %{_libdir}/libggzdmod.so | |
236 | %{_libdir}/libggzdmod++.la | |
237 | %{_libdir}/libggzdmod.la | |
d2634d3e MB |
238 | %{_includedir}/ggzdmod++ |
239 | %{_includedir}/ggzdmod.h | |
240 | %{_mandir}/man3/ggzdmod.h.3* | |
4628d6cf | 241 | |
242 | %files static | |
243 | %defattr(644,root,root,755) | |
d2634d3e MB |
244 | %{_libdir}/libggzdmod++.a |
245 | %{_libdir}/libggzdmod.a |