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