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