]> git.pld-linux.org Git - packages/ggz-server.git/blob - ggz-server.spec
- rel 6
[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:        6
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 Patch2:         %{name}-inotify-header.patch
16 Patch3:         %{name}-format-security.patch
17 Patch4:         %{name}-avahi.patch
18 Patch5:         %{name}-gcc47.patch
19 URL:            http://www.ggzgamingzone.org/
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
29 Requires:       %{name}-libs = %{version}-%{release}
30 Requires:       rc-scripts
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %define         _localstatedir  /var/lib
34
35 %description
36 This package contains the main GGZ server, some administrative
37 utilities and lots of game servers.
38
39 %description -l pl.UTF-8
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.
53
54 %package devel
55 Summary:        Header files for ggz-server library
56 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki ggz-server
57 Group:          Development/Libraries
58 Requires:       %{name}-libs = %{version}-%{release}
59 Requires:       libggz-devel >= 0.0.14
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
81 %patch0 -p1
82 %patch1 -p1
83 %patch2 -p1
84 %patch3 -p1
85 %patch4 -p1
86 %patch5 -p1
87
88 %build
89 %{__libtoolize}
90 %{__aclocal} -I m4 -I m4/ggz
91 %{__autoconf}
92 %{__autoheader}
93 %{__automake}
94 %configure \
95         --with-database=db4 \
96         --with-zeroconf=avahi \
97         --with-reconfiguration=inotify
98
99 %{__make}
100
101 %install
102 rm -rf $RPM_BUILD_ROOT
103
104 install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,ggzd,logrotate.d},%{_var}/{lib/ggzd,log}}
105
106 %{__make} install \
107         DESTDIR=$RPM_BUILD_ROOT
108
109 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ggzd
110 sed -e 's,@LIBDIR@,%{_libdir},' %{SOURCE2} > $RPM_BUILD_ROOT%{_sysconfdir}/ggzd/ggzd.conf
111 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
112
113 :> $RPM_BUILD_ROOT%{_var}/log/ggz-server.log
114
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
128 %post libs -p /sbin/ldconfig
129 %postun libs -p /sbin/ldconfig
130
131 %files
132 %defattr(644,root,root,755)
133 %doc AUTHORS ChangeLog NEWS README TODO ggzd/ggzd.conf.example
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
158 %dir %{_sysconfdir}/ggzd/games
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
184 %dir %{_sysconfdir}/ggzd/rooms
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
211 %attr(640,root,games) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ggzd/ggzd.conf
212 %{_sysconfdir}/ggzd/ggzd.motd
213 %attr(754,root,root) /etc/rc.d/init.d/ggzd
214 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/ggz-server
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*
222 %attr(770,root,games) %{_localstatedir}/ggzd
223 %attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_var}/log/ggz-server.log
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
231
232 %files devel
233 %defattr(644,root,root,755)
234 %attr(755,root,root) %{_libdir}/libggzdmod++.so
235 %attr(755,root,root) %{_libdir}/libggzdmod.so
236 %{_libdir}/libggzdmod++.la
237 %{_libdir}/libggzdmod.la
238 %{_includedir}/ggzdmod++
239 %{_includedir}/ggzdmod.h
240 %{_mandir}/man3/ggzdmod.h.3*
241
242 %files static
243 %defattr(644,root,root,755)
244 %{_libdir}/libggzdmod++.a
245 %{_libdir}/libggzdmod.a
This page took 0.090494 seconds and 3 git commands to generate.