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