]> git.pld-linux.org Git - packages/ggz-server.git/blob - ggz-server.spec
- removing data from /var/lib/ggzd is already done
[packages/ggz-server.git] / ggz-server.spec
1 Summary:        Main GGZ server
2 Summary(pl.UTF-8):      Główny serwer GGZ
3 Name:           ggz-server
4 Version:        0.0.14.1
5 Release:        1
6 License:        GPL v2+
7 Group:          Applications
8 Source0:        http://ftp.belnet.be/packages/ggzgamingzone/ggz/%{version}/%{name}-%{version}.tar.gz
9 # Source0-md5:  254caaf8fe7b4a2bafcb62576abba72c
10 Source1:        %{name}.init
11 Source2:        %{name}.conf
12 Source3:        %{name}.logrotate
13 Patch0:         %{name}-db4.patch
14 URL:            http://www.ggzgamingzone.org/
15 BuildRequires:  autoconf >= 2.50
16 BuildRequires:  automake
17 BuildRequires:  avahi-devel
18 BuildRequires:  db-devel >= 4
19 BuildRequires:  expat-devel >= 1.95
20 BuildRequires:  libggz-devel >= 0.0.14
21 BuildRequires:  libtool
22 BuildRequires:  rpmbuild(macros) >= 1.268
23 Requires(post,preun):   /sbin/chkconfig
24 Requires:       %{name}-libs = %{version}-%{release}
25 Requires:       rc-scripts
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %define         _localstatedir  /var/lib
29
30 %description
31 This package contains the main GGZ server, some administrative
32 utilities and lots of game servers.
33
34 %description -l pl.UTF-8
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.
48
49 %package devel
50 Summary:        Header files for ggz-server library
51 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki ggz-server
52 Group:          Development/Libraries
53 Requires:       %{name}-libs = %{version}-%{release}
54 Requires:       libggz-devel >= 0.0.14
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
76 %patch0 -p1
77
78 %build
79 %{__libtoolize}
80 %{__aclocal} -I m4 -I m4/ggz
81 %{__autoconf}
82 %{__autoheader}
83 %{__automake}
84 %configure \
85         --with-database=db4 \
86         --with-zeroconf=avahi \
87         --with-reconfiguration=inotify
88
89 %{__make}
90
91 %install
92 rm -rf $RPM_BUILD_ROOT
93
94 install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,ggzd,logrotate.d},%{_var}/{lib/ggzd,log}}
95
96 %{__make} install \
97         DESTDIR=$RPM_BUILD_ROOT
98
99 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ggzd
100 sed -e 's,@LIBDIR@,%{_libdir},' %{SOURCE2} > $RPM_BUILD_ROOT%{_sysconfdir}/ggzd/ggzd.conf
101 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
102
103 :> $RPM_BUILD_ROOT%{_var}/log/ggz-server.log
104
105 %clean
106 rm -rf $RPM_BUILD_ROOT
107
108 %post
109 /sbin/chkconfig --add ggzd
110 %service ggzd restart
111
112 %preun
113 if [ "$1" = "0" ]; then
114         %service ggzd stop
115         /sbin/chkconfig --del ggzd
116 fi
117
118 %post libs -p /sbin/ldconfig
119
120 %postun 
121 libs -p /sbin/ldconfig
122 rm -rf /var/libs/ggzd
123
124 %files
125 %defattr(644,root,root,755)
126 %doc AUTHORS ChangeLog NEWS README TODO ggzd/ggzd.conf.example
127 %attr(755,root,root) %{_bindir}/ggzd
128 %attr(755,root,root) %{_bindir}/ggzduedit
129 %dir %{_libdir}/ggzd
130 %attr(755,root,root) %{_libdir}/ggzd/geekgameserver
131 %attr(755,root,root) %{_libdir}/ggzd/ggzd.ccheckers
132 %attr(755,root,root) %{_libdir}/ggzd/ggzd.chess
133 %attr(755,root,root) %{_libdir}/ggzd/ggzd.combat
134 %attr(755,root,root) %{_libdir}/ggzd/ggzd.connectx
135 %attr(755,root,root) %{_libdir}/ggzd/ggzd.dots
136 %attr(755,root,root) %{_libdir}/ggzd/ggzd.escape
137 %attr(755,root,root) %{_libdir}/ggzd/ggzd.ggzcards
138 %attr(755,root,root) %{_libdir}/ggzd/ggzd.ggzcards.ai-random
139 %attr(755,root,root) %{_libdir}/ggzd/ggzd.ggzcards.ai-spades
140 %attr(755,root,root) %{_libdir}/ggzd/ggzd.ggzcards.ai-suaro
141 %attr(755,root,root) %{_libdir}/ggzd/ggzd.hastings
142 %attr(755,root,root) %{_libdir}/ggzd/ggzd.reversi
143 %attr(755,root,root) %{_libdir}/ggzd/ggzd.spades
144 %attr(755,root,root) %{_libdir}/ggzd/ggzd.tictactoe
145 %attr(755,root,root) %{_libdir}/ggzd/keepalivesrv
146 %attr(755,root,root) %{_libdir}/ggzd/krosswater_server
147 %attr(755,root,root) %{_libdir}/ggzd/muehleserv
148 %attr(755,root,root) %{_libdir}/ggzd/tuxmanserv
149 %attr(755,root,root) %{_libdir}/ggzd/widelands_server
150 %dir %{_sysconfdir}/ggzd
151 %dir %{_sysconfdir}/ggzd/games
152 %{_sysconfdir}/ggzd/games/ccheckers.dsc
153 %{_sysconfdir}/ggzd/games/chess.dsc
154 %{_sysconfdir}/ggzd/games/combat.dsc
155 %{_sysconfdir}/ggzd/games/connectx.dsc
156 %{_sysconfdir}/ggzd/games/dots.dsc
157 %{_sysconfdir}/ggzd/games/escape.dsc
158 %{_sysconfdir}/ggzd/games/geekgame.dsc
159 %{_sysconfdir}/ggzd/games/ggzcards-bridge.dsc
160 %{_sysconfdir}/ggzd/games/ggzcards-fortytwo.dsc
161 %{_sysconfdir}/ggzd/games/ggzcards-hearts.dsc
162 %{_sysconfdir}/ggzd/games/ggzcards-lapocha.dsc
163 %{_sysconfdir}/ggzd/games/ggzcards-spades.dsc
164 %{_sysconfdir}/ggzd/games/ggzcards-suaro.dsc
165 %{_sysconfdir}/ggzd/games/ggzcards-sueca.dsc
166 %{_sysconfdir}/ggzd/games/ggzcards-whist.dsc
167 %{_sysconfdir}/ggzd/games/ggzcards.dsc
168 %{_sysconfdir}/ggzd/games/hastings.dsc
169 %{_sysconfdir}/ggzd/games/keepalive.dsc
170 %{_sysconfdir}/ggzd/games/krosswater.dsc
171 %{_sysconfdir}/ggzd/games/muehle.dsc
172 %{_sysconfdir}/ggzd/games/reversi.dsc
173 %{_sysconfdir}/ggzd/games/spades.dsc
174 %{_sysconfdir}/ggzd/games/tictactoe.dsc
175 %{_sysconfdir}/ggzd/games/tuxman.dsc
176 %{_sysconfdir}/ggzd/games/widelands.dsc
177 %dir %{_sysconfdir}/ggzd/rooms
178 %{_sysconfdir}/ggzd/rooms/ccheckers.room
179 %{_sysconfdir}/ggzd/rooms/chess.room
180 %{_sysconfdir}/ggzd/rooms/combat.room
181 %{_sysconfdir}/ggzd/rooms/connectx.room
182 %{_sysconfdir}/ggzd/rooms/dots.room
183 %{_sysconfdir}/ggzd/rooms/entry.room
184 %{_sysconfdir}/ggzd/rooms/escape.room
185 %{_sysconfdir}/ggzd/rooms/geekgame.room
186 %{_sysconfdir}/ggzd/rooms/ggzcards-bridge.room
187 %{_sysconfdir}/ggzd/rooms/ggzcards-fortytwo.room
188 %{_sysconfdir}/ggzd/rooms/ggzcards-hearts.room
189 %{_sysconfdir}/ggzd/rooms/ggzcards-lapocha.room
190 %{_sysconfdir}/ggzd/rooms/ggzcards-spades.room
191 %{_sysconfdir}/ggzd/rooms/ggzcards-suaro.room
192 %{_sysconfdir}/ggzd/rooms/ggzcards-sueca.room
193 %{_sysconfdir}/ggzd/rooms/ggzcards-whist.room
194 %{_sysconfdir}/ggzd/rooms/ggzcards.room
195 %{_sysconfdir}/ggzd/rooms/hastings.room
196 %{_sysconfdir}/ggzd/rooms/keepalive.room
197 %{_sysconfdir}/ggzd/rooms/krosswater.room
198 %{_sysconfdir}/ggzd/rooms/muehle.room
199 %{_sysconfdir}/ggzd/rooms/reversi.room
200 %{_sysconfdir}/ggzd/rooms/spades.room
201 %{_sysconfdir}/ggzd/rooms/tictactoe.room
202 %{_sysconfdir}/ggzd/rooms/tuxman.room
203 %{_sysconfdir}/ggzd/rooms/widelands.room
204 %attr(640,root,games) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ggzd/ggzd.conf
205 %{_sysconfdir}/ggzd/ggzd.motd
206 %attr(754,root,root) /etc/rc.d/init.d/ggzd
207 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/ggz-server
208 %dir %{_datadir}/ggz/ggzd
209 %{_datadir}/ggz/ggzd/ggzcards
210 %{_datadir}/ggz/ggzd/hastings1066
211 %{_datadir}/ggz/ggzd/muehle
212 %{_datadir}/ggz/ggzd/tuxmanserv
213 %{_mandir}/man6/ggzd.6*
214 %{_mandir}/man6/ggzduedit.6*
215 %attr(770,root,games) %{_localstatedir}/ggzd
216 %attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_var}/log/ggz-server.log
217
218 %files libs
219 %defattr(644,root,root,755)
220 %attr(755,root,root) %{_libdir}/libggzdmod++.so.*.*.*
221 %attr(755,root,root) %ghost %{_libdir}/libggzdmod++.so.1
222 %attr(755,root,root) %{_libdir}/libggzdmod.so.*.*.*
223 %attr(755,root,root) %ghost %{_libdir}/libggzdmod.so.6
224
225 %files devel
226 %defattr(644,root,root,755)
227 %attr(755,root,root) %{_libdir}/libggzdmod++.so
228 %attr(755,root,root) %{_libdir}/libggzdmod.so
229 %{_libdir}/libggzdmod++.la
230 %{_libdir}/libggzdmod.la
231 %{_libdir}/libggzdmod++.la
232 %{_libdir}/libggzdmod.la
233 %{_includedir}/ggzdmod++
234 %{_includedir}/ggzdmod.h
235 %{_mandir}/man3/ggzdmod.h.3*
236
237 %files static
238 %defattr(644,root,root,755)
239 %{_libdir}/libggzdmod++.a
240 %{_libdir}/libggzdmod.a
This page took 0.048796 seconds and 4 git commands to generate.