]> git.pld-linux.org Git - packages/ggz-server.git/blame - ggz-server.spec
- rel 6
[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
a0d0bc62 5Release: 6
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
85429491
JR
15Patch2: %{name}-inotify-header.patch
16Patch3: %{name}-format-security.patch
17Patch4: %{name}-avahi.patch
05eb8bf2 18Patch5: %{name}-gcc47.patch
4628d6cf 19URL: http://www.ggzgamingzone.org/
3ab3cc67
JB
20BuildRequires: autoconf >= 2.50
21BuildRequires: automake
22BuildRequires: avahi-devel
23BuildRequires: db-devel >= 4
24BuildRequires: expat-devel >= 1.95
25BuildRequires: libggz-devel >= 0.0.14
26BuildRequires: libtool
27BuildRequires: rpmbuild(macros) >= 1.268
28Requires(post,preun): /sbin/chkconfig
d2634d3e 29Requires: %{name}-libs = %{version}-%{release}
3ab3cc67 30Requires: rc-scripts
4628d6cf 31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
b4942f58
MB
33%define _localstatedir /var/lib
34
4628d6cf 35%description
d0922c78 36This package contains the main GGZ server, some administrative
d2634d3e 37utilities and lots of game servers.
4628d6cf 38
39%description -l pl.UTF-8
d2634d3e
MB
40Ta paczka zawiera główny serwer GGZ, kilka narzędzi administracyjnych
41oraz dużo serwerów gier.
42
43%package libs
44Summary: ggz-server libraries
45Summary(pl.UTF-8): Biblioteki ggz-server
46Group: Libraries
47
48%description libs
49ggz-server libraries.
50
51%description libs -l pl.UTF-8
52Biblioteki ggz-server.
4628d6cf 53
54%package devel
55Summary: Header files for ggz-server library
93c557a3 56Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ggz-server
4628d6cf 57Group: Development/Libraries
7c2451e4 58Requires: %{name}-libs = %{version}-%{release}
3ab3cc67 59Requires: libggz-devel >= 0.0.14
4628d6cf 60
61%description devel
62Header files for ggz-server library.
63
64%description devel -l pl.UTF-8
65Pliki nagłówkowe biblioteki ggz-server.
66
67%package static
68Summary: Static ggz-server library
69Summary(pl.UTF-8): Statyczna biblioteka ggz-server
70Group: Development/Libraries
71Requires: %{name}-devel = %{version}-%{release}
72
73%description static
74Static ggz-server library.
75
76%description static -l pl.UTF-8
77Statyczna biblioteka ggz-server.
78
79%prep
80%setup -q
d2634d3e 81%patch0 -p1
a171aaaa 82%patch1 -p1
85429491
JR
83%patch2 -p1
84%patch3 -p1
85%patch4 -p1
05eb8bf2 86%patch5 -p1
4628d6cf 87
88%build
3ab3cc67
JB
89%{__libtoolize}
90%{__aclocal} -I m4 -I m4/ggz
4628d6cf 91%{__autoconf}
92%{__autoheader}
93%{__automake}
d2634d3e
MB
94%configure \
95 --with-database=db4 \
96 --with-zeroconf=avahi \
97 --with-reconfiguration=inotify
98
4628d6cf 99%{__make}
100
101%install
102rm -rf $RPM_BUILD_ROOT
103
b4942f58 104install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,ggzd,logrotate.d},%{_var}/{lib/ggzd,log}}
4628d6cf 105
106%{__make} install \
107 DESTDIR=$RPM_BUILD_ROOT
108
109install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ggzd
d2634d3e 110sed -e 's,@LIBDIR@,%{_libdir},' %{SOURCE2} > $RPM_BUILD_ROOT%{_sysconfdir}/ggzd/ggzd.conf
b4942f58 111install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
4628d6cf 112
d2634d3e 113:> $RPM_BUILD_ROOT%{_var}/log/ggz-server.log
8447a4cd 114
4628d6cf 115%clean
116rm -rf $RPM_BUILD_ROOT
117
118%post
119/sbin/chkconfig --add ggzd
120%service ggzd restart
121
122%preun
123if [ "$1" = "0" ]; then
124 %service ggzd stop
125 /sbin/chkconfig --del ggzd
126fi
127
d2634d3e 128%post libs -p /sbin/ldconfig
cfa214fe 129%postun libs -p /sbin/ldconfig
3ab3cc67 130
4628d6cf 131%files
132%defattr(644,root,root,755)
133%doc AUTHORS ChangeLog NEWS README TODO ggzd/ggzd.conf.example
d2634d3e
MB
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
36fcfe24 158%dir %{_sysconfdir}/ggzd/games
d2634d3e
MB
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
36fcfe24 184%dir %{_sysconfdir}/ggzd/rooms
d2634d3e
MB
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
b4942f58 211%attr(640,root,games) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ggzd/ggzd.conf
36fcfe24 212%{_sysconfdir}/ggzd/ggzd.motd
d2634d3e 213%attr(754,root,root) /etc/rc.d/init.d/ggzd
b4942f58 214%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/ggz-server
d2634d3e
MB
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*
b4942f58
MB
222%attr(770,root,games) %{_localstatedir}/ggzd
223%attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_var}/log/ggz-server.log
d2634d3e
MB
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
4628d6cf 231
232%files devel
233%defattr(644,root,root,755)
d2634d3e
MB
234%attr(755,root,root) %{_libdir}/libggzdmod++.so
235%attr(755,root,root) %{_libdir}/libggzdmod.so
236%{_libdir}/libggzdmod++.la
237%{_libdir}/libggzdmod.la
d2634d3e
MB
238%{_includedir}/ggzdmod++
239%{_includedir}/ggzdmod.h
240%{_mandir}/man3/ggzdmod.h.3*
4628d6cf 241
242%files static
243%defattr(644,root,root,755)
d2634d3e
MB
244%{_libdir}/libggzdmod++.a
245%{_libdir}/libggzdmod.a
This page took 0.074812 seconds and 4 git commands to generate.