]> git.pld-linux.org Git - packages/ggz-server.git/blame - ggz-server.spec
- use sys/inotify.h in place for hand-crafted syscall invocations
[packages/ggz-server.git] / ggz-server.spec
CommitLineData
4628d6cf 1Summary: Main GGZ server
2Summary(pl.UTF-8): Główny serwer GGZ
3Name: ggz-server
f36502c7 4Version: 0.0.14.1
587ff403 5Release: 4
4628d6cf 6License: GPL v2+
7Group: Applications
f36502c7 8Source0: http://ftp.belnet.be/packages/ggzgamingzone/ggz/%{version}/%{name}-%{version}.tar.gz
9# Source0-md5: 254caaf8fe7b4a2bafcb62576abba72c
4628d6cf 10Source1: %{name}.init
d2634d3e 11Source2: %{name}.conf
b4942f58 12Source3: %{name}.logrotate
d2634d3e 13Patch0: %{name}-db4.patch
a171aaaa 14Patch1: %{name}-gcc43.patch
4628d6cf 15URL: http://www.ggzgamingzone.org/
3ab3cc67
JB
16BuildRequires: autoconf >= 2.50
17BuildRequires: automake
18BuildRequires: avahi-devel
19BuildRequires: db-devel >= 4
20BuildRequires: expat-devel >= 1.95
21BuildRequires: libggz-devel >= 0.0.14
22BuildRequires: libtool
23BuildRequires: rpmbuild(macros) >= 1.268
24Requires(post,preun): /sbin/chkconfig
d2634d3e 25Requires: %{name}-libs = %{version}-%{release}
3ab3cc67 26Requires: rc-scripts
4628d6cf 27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
b4942f58
MB
29%define _localstatedir /var/lib
30
4628d6cf 31%description
d0922c78 32This package contains the main GGZ server, some administrative
d2634d3e 33utilities and lots of game servers.
4628d6cf 34
35%description -l pl.UTF-8
d2634d3e
MB
36Ta paczka zawiera główny serwer GGZ, kilka narzędzi administracyjnych
37oraz dużo serwerów gier.
38
39%package libs
40Summary: ggz-server libraries
41Summary(pl.UTF-8): Biblioteki ggz-server
42Group: Libraries
43
44%description libs
45ggz-server libraries.
46
47%description libs -l pl.UTF-8
48Biblioteki ggz-server.
4628d6cf 49
50%package devel
51Summary: Header files for ggz-server library
93c557a3 52Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ggz-server
4628d6cf 53Group: Development/Libraries
7c2451e4 54Requires: %{name}-libs = %{version}-%{release}
3ab3cc67 55Requires: libggz-devel >= 0.0.14
4628d6cf 56
57%description devel
58Header files for ggz-server library.
59
60%description devel -l pl.UTF-8
61Pliki nagłówkowe biblioteki ggz-server.
62
63%package static
64Summary: Static ggz-server library
65Summary(pl.UTF-8): Statyczna biblioteka ggz-server
66Group: Development/Libraries
67Requires: %{name}-devel = %{version}-%{release}
68
69%description static
70Static ggz-server library.
71
72%description static -l pl.UTF-8
73Statyczna biblioteka ggz-server.
74
75%prep
76%setup -q
d2634d3e 77%patch0 -p1
a171aaaa 78%patch1 -p1
4628d6cf 79
80%build
3ab3cc67
JB
81%{__libtoolize}
82%{__aclocal} -I m4 -I m4/ggz
4628d6cf 83%{__autoconf}
84%{__autoheader}
85%{__automake}
d2634d3e
MB
86%configure \
87 --with-database=db4 \
88 --with-zeroconf=avahi \
89 --with-reconfiguration=inotify
90
4628d6cf 91%{__make}
92
93%install
94rm -rf $RPM_BUILD_ROOT
95
b4942f58 96install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,ggzd,logrotate.d},%{_var}/{lib/ggzd,log}}
4628d6cf 97
98%{__make} install \
99 DESTDIR=$RPM_BUILD_ROOT
100
101install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ggzd
d2634d3e 102sed -e 's,@LIBDIR@,%{_libdir},' %{SOURCE2} > $RPM_BUILD_ROOT%{_sysconfdir}/ggzd/ggzd.conf
b4942f58 103install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
4628d6cf 104
d2634d3e 105:> $RPM_BUILD_ROOT%{_var}/log/ggz-server.log
8447a4cd 106
4628d6cf 107%clean
108rm -rf $RPM_BUILD_ROOT
109
110%post
111/sbin/chkconfig --add ggzd
112%service ggzd restart
113
114%preun
115if [ "$1" = "0" ]; then
116 %service ggzd stop
117 /sbin/chkconfig --del ggzd
118fi
119
d2634d3e 120%post libs -p /sbin/ldconfig
cfa214fe 121%postun libs -p /sbin/ldconfig
3ab3cc67 122
4628d6cf 123%files
124%defattr(644,root,root,755)
125%doc AUTHORS ChangeLog NEWS README TODO ggzd/ggzd.conf.example
d2634d3e
MB
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
36fcfe24 150%dir %{_sysconfdir}/ggzd/games
d2634d3e
MB
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
36fcfe24 176%dir %{_sysconfdir}/ggzd/rooms
d2634d3e
MB
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
b4942f58 203%attr(640,root,games) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ggzd/ggzd.conf
36fcfe24 204%{_sysconfdir}/ggzd/ggzd.motd
d2634d3e 205%attr(754,root,root) /etc/rc.d/init.d/ggzd
b4942f58 206%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/ggz-server
d2634d3e
MB
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*
b4942f58
MB
214%attr(770,root,games) %{_localstatedir}/ggzd
215%attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_var}/log/ggz-server.log
d2634d3e
MB
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
4628d6cf 223
224%files devel
225%defattr(644,root,root,755)
d2634d3e
MB
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*
4628d6cf 235
236%files static
237%defattr(644,root,root,755)
d2634d3e
MB
238%{_libdir}/libggzdmod++.a
239%{_libdir}/libggzdmod.a
This page took 0.078615 seconds and 4 git commands to generate.