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