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