3 # - gtk3 client is broken:
4 # GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported
5 # - work on authentication and Freeciv database support (fcdb)
6 # - patch all packaged desktop files
7 # - get rid freeciv-manual (or not)
8 # - get rid freeciv-stub (or not)
11 %bcond_without ggz_client # build without ggz client
12 %bcond_without ggz_server # build without ggz server
13 %bcond_without magickwand # build without MagickWand map image toolkit support
14 %bcond_without system_lua # build with bundled lua
15 %bcond_without gtk2 # build without gtk2 client
16 %bcond_without gtk3 # build without gtk3 client
17 %bcond_without sdl # build without sdl client
18 %bcond_without xaw # build without xaw client
19 %bcond_with qt # build with qt client (broken)
21 Summary: FREE CIVilization clone
22 Summary(es.UTF-8): Clon del juego Civilization
23 Summary(pl.UTF-8): Niekomercyjny klon CIVilization
24 Summary(pt_BR.UTF-8): Clone do jogo Civilization
29 Group: X11/Applications/Games/Strategy
30 Source0: http://downloads.sourceforge.net/freeciv/%{name}-%{version}.tar.bz2
31 # Source0-md5: 038c53184497fcf31bcd268418dbe4f6
32 # NOTE: current version of freeland tiles does not work with newest freeciv version
33 #Source1: http://download.gna.org/freeciv/contrib/tilesets/freeland/freeland-normal-2.0.0.tar.gz
34 Patch0: %{name}-link.patch
35 Patch1: %{name}-desktop.patch
36 Patch2: %{name}-ggz.patch
37 URL: http://freeciv.wikia.com/
38 %{?with_magickwand:BuildRequires: ImageMagick-devel}
40 BuildRequires: SDL_image-devel
41 BuildRequires: SDL_mixer-devel
43 BuildRequires: autoconf >= 2.52
44 BuildRequires: automake >= 1:1.9
45 BuildRequires: curl-devel
46 BuildRequires: gettext-tools
47 %{?with_ggz_client:BuildRequires: ggz-gtk-client-devel}
48 %{?with_gtk2:BuildRequires: gtk+2-devel}
49 %{?with_gtk3:BuildRequires: gtk+3-devel}
50 BuildRequires: libggz-devel
51 BuildRequires: libpng-devel
52 BuildRequires: libtool
53 %{?with_system_lua:BuildRequires: lua51-devel}
54 BuildRequires: pkgconfig
55 BuildRequires: readline-devel
56 %{?with_xaw:BuildRequires: xorg-lib-libXaw-devel}
57 BuildRequires: zlib-devel
58 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
63 Free clone of Sid Meier's Civilization. Free Civilization clone for
64 Unix and X. This is multiplayer strategic game and you can also play
65 against computer-AI players.
67 %description -l es.UTF-8
68 Clon del juego Civilization.
70 %description -l pl.UTF-8
71 Freeciv jest to niekomercyjny (GPL) klon gry Civilization Sida Meiera.
72 Jest to gra strategiczna dla systemu X Window. Można grać w nią z
73 innymi osobami poprzez sieć, a także przeciwko "graczom" zarządzanym
76 %description -l pt_BR.UTF-8
77 O FreeCiv é uma implementação do Civilization II para o Sistema X
81 Summary: GTK2 Freeciv game client
82 Summary(pl.UTF-8): Klient gry Freeciv korzystający z GTK2
83 Group: X11/Applications/Games/Strategy
84 Requires: %{name} = %{version}-%{release}
85 Requires: %{name}-client-common = %{version}-%{release}
86 Suggests: %{name}-server = %{version}-%{release}
89 This package contains GTK2-based Freeciv game client.
91 %description client -l pl.UTF-8
92 Ten pakiet zawiera klienta gry Freeciv korzystającego z GTK2.
94 %package client-common
95 Summary: Freeciv game client common files
96 Summary(pl.UTF-8): Wspólne pliki klientów gry Freeciv
97 Group: X11/Applications/Games/Strategy
98 Requires: %{name} = %{version}-%{release}
99 Requires: %{name}-client-common = %{version}-%{release}
100 Suggests: %{name}-server = %{version}-%{release}
102 %description client-common
103 This package contains common files for Freeciv game clients.
105 %description client-common -l pl.UTF-8
106 Ten pakiet zawiera wspólne pliki dla klientów gry Freeciv.
109 Summary: GTK3 Freeciv game client
110 Summary(pl.UTF-8): Klient gry Freeciv korzystający z GTK3
111 Group: X11/Applications/Games/Strategy
112 Requires: %{name} = %{version}-%{release}
113 Suggests: %{name}-server = %{version}-%{release}
115 %description client-gtk3
116 This package contains GTK3-based Freeciv game client.
118 %description client-gtk3 -l pl.UTF-8
119 Ten pakiet zawiera klienta gry Freeciv korzystającego z GTK3.
122 Summary: SDL Freeciv game client
123 Summary(pl.UTF-8): Klient gry Freeciv korzystający z SDL
124 Group: X11/Applications/Games/Strategy
125 Requires: %{name} = %{version}-%{release}
126 Requires: %{name}-client-common = %{version}-%{release}
128 Suggests: %{name}-server = %{version}-%{release}
130 %description client-sdl
131 This package contains SDL-based Freeciv game client.
133 %description client-sdl -l pl.UTF-8
134 Ten pakiet zawiera klienta gry Freeciv korzystającego z SDL.
137 Summary: XAW Freeciv game client
138 Summary(pl.UTF-8): Klient gry Freeciv korzystający z XAW
139 Group: X11/Applications/Games/Strategy
140 Requires: %{name} = %{version}-%{release}
141 Requires: %{name}-client-common = %{version}-%{release}
142 Suggests: %{name}-server = %{version}-%{release}
144 %description client-xaw
145 This package contains based Freeciv game client using XAW (X Athena
148 %description client-xaw -l pl.UTF-8
149 Ten pakiet zawiera klienta gry Freeciv korzystającego z biblioteki XAW
152 %package client-modpack
153 Summary: Custom content installer for the Freeciv game
154 Summary(pl.UTF-8): Instalator dodatków do gry Freeciv
155 Group: X11/Applications/Games/Strategy
156 Requires: %{name} = %{version}-%{release}
157 Requires: %{name}-client-common = %{version}-%{release}
158 Suggests: %{name}-server = %{version}-%{release}
160 %description client-modpack
161 Custom content installer for the Freeciv game.
163 This program allows users to select and download add-on content
164 ("modpacks") for Freeciv from the Internet, either from a list
165 maintained by the Freeciv team, or by using a URL obtained by other
166 means. It takes care of installing the files in the correct place
167 under the user's home directory for this version of Freeciv; it does
168 not install anything for system-wide use.
170 %description client-modpack -l pl.UTF-8
171 Ten pakiet zawiera instalator dodatków do gry Freeciv dostępnych w
175 Summary: Freeciv game server
176 Summary(pl.UTF-8): Serwer gry Freeciv
177 Group: X11/Applications/Games/Strategy
178 Requires: %{name} = %{version}-%{release}
181 This package contans Freeciv game server.
183 %description server -l pl.UTF-8
184 Ten pakiet zawiera server gry Freeciv.
199 --with-ggzd-confdir=%{_sysconfdir}/ggzd \
200 --disable-silent-rules \
201 --enable-client=stub,%{?with_gtk2:gtk2},%{?with_gtk3:gtk3},%{?with_qt:qt},%{?with_sdl:sdl},%{?with_xaw:xaw} \
202 --enable-mapimg=%{?with_magickwand:magickwand}%{!?with_magickwand:no} \
203 %{?with_system_lua:--enable-sys-lua} \
204 %{!?with_ggz_client:--without-ggz-client} \
205 %{!?with_ggz_server:--without-ggz-server}
210 rm -rf $RPM_BUILD_ROOT
211 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
214 DESTDIR=$RPM_BUILD_ROOT
216 cp -a client/%{name}.desktop $RPM_BUILD_ROOT%{_desktopdir}/%{name}-client.desktop
217 cp -a server/%{name}-server.desktop $RPM_BUILD_ROOT%{_desktopdir}
218 %{__rm} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
220 cp -a data/icons/32x32/*.png $RPM_BUILD_ROOT%{_pixmapsdir}
221 cp -a data/stdsounds{,.soundspec} $RPM_BUILD_ROOT%{_datadir}/%{name}
222 #cp -a freeland.tilespec $RPM_BUILD_ROOT%{_datadir}/%{name}
223 #cp -a freeland $RPM_BUILD_ROOT%{_datadir}/%{name}
225 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/no
226 %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/ggz.modules
228 cp -a data/gtk_menus.xml $RPM_BUILD_ROOT%{_datadir}/%{name}
230 %if %{with ggz_server}
231 install -d $RPM_BUILD_ROOT%{_sysconfdir}/ggzd/{games,rooms}
232 cp -a data/civserver.dsc $RPM_BUILD_ROOT%{_sysconfdir}/ggzd/games/civserver.dsc
233 cp -a data/civserver.room $RPM_BUILD_ROOT%{_sysconfdir}/ggzd/rooms/civserver.room
236 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
237 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfreeciv{,-srv}.{a,la}
238 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man6/freeciv-qt*
243 rm -rf $RPM_BUILD_ROOT
245 %files -f %{name}.lang
246 %defattr(644,root,root,755)
247 %doc AUTHORS doc/BUGS ChangeLog doc/FAQ doc/HOWTOPLAY
249 %doc doc/README.SDLClient doc/README.cma doc/README.effects doc/README.fcdb
250 %doc doc/README.graphics doc/README.sound
251 %doc doc/README.ruleset_experimental doc/README.ruleset_multiplayer doc/README.rulesets
253 %dir %{_datadir}/%{name}
254 %{_datadir}/%{name}/helpdata.txt
257 %defattr(644,root,root,755)
258 %attr(755,root,root) %{_bindir}/freeciv-server
259 %{_desktopdir}/%{name}-server.desktop
260 %{_datadir}/appdata/freeciv-server.appdata.xml
261 %{_datadir}/%{name}/civ1
262 %{_datadir}/%{name}/civ2
263 %{_datadir}/%{name}/default
264 %{_datadir}/%{name}/experimental
265 %{_datadir}/%{name}/multiplayer
266 %{_datadir}/%{name}/nation
267 %{_datadir}/%{name}/scenarios
268 %{_datadir}/%{name}/*.serv
269 %{_mandir}/man6/freeciv-server.6*
270 %{_iconsdir}/hicolor/*/apps/freeciv-server.png
271 %{_pixmapsdir}/freeciv-server.png
273 %if %{with ggz_server}
274 %dir %{_sysconfdir}/ggzd
275 %dir %{_sysconfdir}/ggzd/games
276 %dir %{_sysconfdir}/ggzd/rooms
277 %{_sysconfdir}/ggzd/games/civserver.dsc
278 %{_sysconfdir}/ggzd/rooms/civserver.room
282 %defattr(644,root,root,755)
283 %attr(755,root,root) %{_bindir}/freeciv-stub
284 %attr(755,root,root) %{_bindir}/freeciv-manual
285 %{_datadir}/%{name}/*.*spec
286 %{_datadir}/%{name}/amplio2
287 %{_datadir}/%{name}/buildings
288 %{_datadir}/%{name}/cimpletoon
289 %{_datadir}/%{name}/flags
290 %{_datadir}/%{name}/freeciv.rc*
291 %{_datadir}/%{name}/gtk_menus.xml
292 %{_datadir}/%{name}/hex2t
293 %{_datadir}/%{name}/isophex
294 %{_datadir}/%{name}/isotrident
295 %{_datadir}/%{name}/misc
296 %{_datadir}/%{name}/stdsounds
297 %{_datadir}/%{name}/themes
298 %{_datadir}/%{name}/trident
299 %{_datadir}/%{name}/wonders
300 %{_mandir}/man6/freeciv-manual.6*
302 %files client-modpack
303 %defattr(644,root,root,755)
304 %attr(755,root,root) %{_bindir}/freeciv-modpack
305 %{_desktopdir}/%{name}-modpack.desktop
306 %{_datadir}/appdata/freeciv-modpack.appdata.xml
307 %{_iconsdir}/hicolor/*/apps/freeciv-modpack.png
308 %{_pixmapsdir}/freeciv-modpack.png
309 %{_mandir}/man6/freeciv-modpack.6*
313 %defattr(644,root,root,755)
314 %attr(755,root,root) %{_bindir}/freeciv-gtk2
315 %{_desktopdir}/%{name}-client.desktop
316 %{_datadir}/appdata/freeciv-gtk2.appdata.xml
317 %{_mandir}/man6/freeciv-client.6*
318 %{_mandir}/man6/freeciv-gtk2.6*
319 %{_iconsdir}/hicolor/*/apps/freeciv-client.png
320 %{_pixmapsdir}/freeciv-client.png
325 %defattr(644,root,root,755)
326 %attr(755,root,root) %{_bindir}/freeciv-gtk3
327 %{_desktopdir}/%{name}-gtk3.desktop
328 %{_datadir}/appdata/freeciv-gtk3.appdata.xml
329 %{_mandir}/man6/freeciv-gtk3.6*
334 %defattr(644,root,root,755)
335 %attr(755,root,root) %{_bindir}/freeciv-sdl
336 %{_desktopdir}/%{name}-sdl.desktop
337 %{_datadir}/appdata/freeciv-sdl.appdata.xml
338 %{_mandir}/man6/freeciv-sdl.6*
343 %defattr(644,root,root,755)
344 %attr(755,root,root) %{_bindir}/freeciv-xaw
345 %{_datadir}/%{name}/Freeciv
346 %{_mandir}/man6/freeciv-xaw.6*