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-stub (or not)
10 %bcond_without ggz_client # build without ggz client
11 %bcond_without ggz_server # build without ggz server
12 %bcond_without magickwand # build without MagickWand map image toolkit support
13 %bcond_without system_lua # build with bundled lua
14 %bcond_without gtk2 # build without gtk2 client
15 %bcond_without gtk3 # build without gtk3 client
16 %bcond_without sdl # build without sdl client
17 %bcond_without xaw # build without xaw client
18 %bcond_with qt # build with qt client (broken)
20 Summary: FREE CIVilization clone
21 Summary(es.UTF-8): Clon del juego Civilization
22 Summary(pl.UTF-8): Niekomercyjny klon CIVilization
23 Summary(pt_BR.UTF-8): Clone do jogo Civilization
28 Group: X11/Applications/Games/Strategy
29 Source0: http://downloads.sourceforge.net/freeciv/%{name}-%{version}.tar.bz2
30 # Source0-md5: 038c53184497fcf31bcd268418dbe4f6
31 # NOTE: current version of freeland tiles does not work with newest freeciv version
32 #Source1: http://download.gna.org/freeciv/contrib/tilesets/freeland/freeland-normal-2.0.0.tar.gz
33 Patch0: %{name}-link.patch
34 Patch1: %{name}-desktop.patch
35 Patch2: %{name}-ggz.patch
36 URL: http://freeciv.wikia.com/
37 %{?with_magickwand:BuildRequires: ImageMagick-devel}
39 BuildRequires: SDL_image-devel
40 BuildRequires: SDL_mixer-devel
42 BuildRequires: autoconf >= 2.52
43 BuildRequires: automake >= 1:1.9
44 BuildRequires: curl-devel
45 BuildRequires: gettext-tools
46 %{?with_ggz_client:BuildRequires: ggz-gtk-client-devel}
47 %{?with_gtk2:BuildRequires: gtk+2-devel}
48 %{?with_gtk3:BuildRequires: gtk+3-devel}
49 BuildRequires: libggz-devel
50 BuildRequires: libpng-devel
51 BuildRequires: libtool
52 %{?with_system_lua:BuildRequires: lua51-devel}
53 BuildRequires: pkgconfig
54 BuildRequires: readline-devel
55 %{?with_xaw:BuildRequires: xorg-lib-libXaw-devel}
56 BuildRequires: zlib-devel
57 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
62 Free clone of Sid Meier's Civilization. Free Civilization clone for
63 Unix and X. This is multiplayer strategic game and you can also play
64 against computer-AI players.
66 %description -l es.UTF-8
67 Clon del juego Civilization.
69 %description -l pl.UTF-8
70 Freeciv jest to niekomercyjny (GPL) klon gry Civilization Sida Meiera.
71 Jest to gra strategiczna dla systemu X Window. Można grać w nią z
72 innymi osobami poprzez sieć, a także przeciwko "graczom" zarządzanym
75 %description -l pt_BR.UTF-8
76 O FreeCiv é uma implementação do Civilization II para o Sistema X
80 Summary: GTK2 Freeciv game client
81 Summary(pl.UTF-8): Klient gry Freeciv korzystający z GTK2
82 Group: X11/Applications/Games/Strategy
83 Requires: %{name} = %{version}-%{release}
84 Requires: %{name}-client-common = %{version}-%{release}
85 Suggests: %{name}-server = %{version}-%{release}
88 This package contains GTK2-based Freeciv game client.
90 %description client -l pl.UTF-8
91 Ten pakiet zawiera klienta gry Freeciv korzystającego z GTK2.
93 %package client-common
94 Summary: Freeciv game client common files
95 Summary(pl.UTF-8): Wspólne pliki klientów gry Freeciv
96 Group: X11/Applications/Games/Strategy
97 Requires: %{name} = %{version}-%{release}
98 Requires: %{name}-client-common = %{version}-%{release}
99 Suggests: %{name}-server = %{version}-%{release}
101 %description client-common
102 This package contains common files for Freeciv game clients.
104 %description client-common -l pl.UTF-8
105 Ten pakiet zawiera wspólne pliki dla klientów gry Freeciv.
108 Summary: GTK3 Freeciv game client
109 Summary(pl.UTF-8): Klient gry Freeciv korzystający z GTK3
110 Group: X11/Applications/Games/Strategy
111 Requires: %{name} = %{version}-%{release}
112 Suggests: %{name}-server = %{version}-%{release}
114 %description client-gtk3
115 This package contains GTK3-based Freeciv game client.
117 %description client-gtk3 -l pl.UTF-8
118 Ten pakiet zawiera klienta gry Freeciv korzystającego z GTK3.
121 Summary: SDL Freeciv game client
122 Summary(pl.UTF-8): Klient gry Freeciv korzystający z SDL
123 Group: X11/Applications/Games/Strategy
124 Requires: %{name} = %{version}-%{release}
125 Requires: %{name}-client-common = %{version}-%{release}
127 Suggests: %{name}-server = %{version}-%{release}
129 %description client-sdl
130 This package contains SDL-based Freeciv game client.
132 %description client-sdl -l pl.UTF-8
133 Ten pakiet zawiera klienta gry Freeciv korzystającego z SDL.
136 Summary: XAW Freeciv game client
137 Summary(pl.UTF-8): Klient gry Freeciv korzystający z XAW
138 Group: X11/Applications/Games/Strategy
139 Requires: %{name} = %{version}-%{release}
140 Requires: %{name}-client-common = %{version}-%{release}
141 Suggests: %{name}-server = %{version}-%{release}
143 %description client-xaw
144 This package contains based Freeciv game client using XAW (X Athena
147 %description client-xaw -l pl.UTF-8
148 Ten pakiet zawiera klienta gry Freeciv korzystającego z biblioteki XAW
151 %package client-modpack
152 Summary: Custom content installer for the Freeciv game
153 Summary(pl.UTF-8): Instalator dodatków do gry Freeciv
154 Group: X11/Applications/Games/Strategy
155 Requires: %{name} = %{version}-%{release}
156 Requires: %{name}-client-common = %{version}-%{release}
157 Suggests: %{name}-server = %{version}-%{release}
159 %description client-modpack
160 Custom content installer for the Freeciv game.
162 This program allows users to select and download add-on content
163 ("modpacks") for Freeciv from the Internet, either from a list
164 maintained by the Freeciv team, or by using a URL obtained by other
165 means. It takes care of installing the files in the correct place
166 under the user's home directory for this version of Freeciv; it does
167 not install anything for system-wide use.
169 %description client-modpack -l pl.UTF-8
170 Ten pakiet zawiera instalator dodatków do gry Freeciv dostępnych w
174 Summary: Freeciv game server
175 Summary(pl.UTF-8): Serwer gry Freeciv
176 Group: X11/Applications/Games/Strategy
177 Requires: %{name} = %{version}-%{release}
180 This package contans Freeciv game server.
182 %description server -l pl.UTF-8
183 Ten pakiet zawiera server gry Freeciv.
198 --with-ggzd-confdir=%{_sysconfdir}/ggzd \
199 --disable-silent-rules \
200 --enable-client=stub,%{?with_gtk2:gtk2},%{?with_gtk3:gtk3},%{?with_qt:qt},%{?with_sdl:sdl},%{?with_xaw:xaw} \
201 --enable-mapimg=%{?with_magickwand:magickwand}%{!?with_magickwand:no} \
202 %{?with_system_lua:--enable-sys-lua} \
203 %{!?with_ggz_client:--without-ggz-client} \
204 %{!?with_ggz_server:--without-ggz-server}
209 rm -rf $RPM_BUILD_ROOT
210 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
213 DESTDIR=$RPM_BUILD_ROOT
215 cp -a client/%{name}.desktop $RPM_BUILD_ROOT%{_desktopdir}/%{name}-client.desktop
216 cp -a server/%{name}-server.desktop $RPM_BUILD_ROOT%{_desktopdir}
217 %{__rm} -f $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
219 cp -a data/icons/32x32/*.png $RPM_BUILD_ROOT%{_pixmapsdir}
220 cp -a data/stdsounds{,.soundspec} $RPM_BUILD_ROOT%{_datadir}/%{name}
221 #cp -a freeland.tilespec $RPM_BUILD_ROOT%{_datadir}/%{name}
222 #cp -a freeland $RPM_BUILD_ROOT%{_datadir}/%{name}
224 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/no
225 %{__rm} -f $RPM_BUILD_ROOT%{_sysconfdir}/ggz.modules
227 cp -a data/gtk_menus.xml $RPM_BUILD_ROOT%{_datadir}/%{name}
229 %if %{with ggz_server}
230 install -d $RPM_BUILD_ROOT%{_sysconfdir}/ggzd/{games,rooms}
231 cp -a data/civserver.dsc $RPM_BUILD_ROOT%{_sysconfdir}/ggzd/games/civserver.dsc
232 cp -a data/civserver.room $RPM_BUILD_ROOT%{_sysconfdir}/ggzd/rooms/civserver.room
235 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
236 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfreeciv{,-srv}.{a,la}
237 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man6/freeciv-qt*
239 # from freeciv-manual man:
240 # This tool is currently only really of use to the Freeciv maintainers,
241 # as a starting point for pages on the main Freeciv wiki;
242 # it's not very useful to end users.
243 %{__rm} $RPM_BUILD_ROOT%{_bindir}/freeciv-manual
244 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man6/freeciv-manual*
249 rm -rf $RPM_BUILD_ROOT
251 %files -f %{name}.lang
252 %defattr(644,root,root,755)
253 %doc AUTHORS doc/BUGS ChangeLog doc/FAQ doc/HOWTOPLAY
255 %doc doc/README.SDLClient doc/README.cma doc/README.effects doc/README.fcdb
256 %doc doc/README.graphics doc/README.sound
257 %doc doc/README.ruleset_experimental doc/README.ruleset_multiplayer doc/README.rulesets
259 %dir %{_datadir}/%{name}
260 %{_datadir}/%{name}/helpdata.txt
263 %defattr(644,root,root,755)
264 %attr(755,root,root) %{_bindir}/freeciv-server
265 #attr(755,root,root) %{_bindir}/freeciv-manual
266 %{_desktopdir}/%{name}-server.desktop
267 %{_datadir}/appdata/freeciv-server.appdata.xml
268 %{_datadir}/%{name}/civ1
269 %{_datadir}/%{name}/civ2
270 %{_datadir}/%{name}/default
271 %{_datadir}/%{name}/experimental
272 %{_datadir}/%{name}/multiplayer
273 %{_datadir}/%{name}/nation
274 %{_datadir}/%{name}/scenarios
275 %{_datadir}/%{name}/*.serv
276 %{_mandir}/man6/freeciv-server.6*
277 #{_mandir}/man6/freeciv-manual.6*
278 %{_iconsdir}/hicolor/*/apps/freeciv-server.png
279 %{_pixmapsdir}/freeciv-server.png
281 %if %{with ggz_server}
282 %dir %{_sysconfdir}/ggzd
283 %dir %{_sysconfdir}/ggzd/games
284 %dir %{_sysconfdir}/ggzd/rooms
285 %{_sysconfdir}/ggzd/games/civserver.dsc
286 %{_sysconfdir}/ggzd/rooms/civserver.room
290 %defattr(644,root,root,755)
291 %attr(755,root,root) %{_bindir}/freeciv-stub
292 %{_datadir}/%{name}/*.*spec
293 %{_datadir}/%{name}/amplio2
294 %{_datadir}/%{name}/buildings
295 %{_datadir}/%{name}/cimpletoon
296 %{_datadir}/%{name}/flags
297 %{_datadir}/%{name}/gtk_menus.xml
298 %{_datadir}/%{name}/hex2t
299 %{_datadir}/%{name}/isophex
300 %{_datadir}/%{name}/isotrident
301 %{_datadir}/%{name}/misc
302 %{_datadir}/%{name}/stdsounds
303 %{_datadir}/%{name}/themes
304 %{_datadir}/%{name}/trident
305 %{_datadir}/%{name}/wonders
307 %files client-modpack
308 %defattr(644,root,root,755)
309 %attr(755,root,root) %{_bindir}/freeciv-modpack
310 %{_desktopdir}/%{name}-modpack.desktop
311 %{_datadir}/appdata/freeciv-modpack.appdata.xml
312 %{_iconsdir}/hicolor/*/apps/freeciv-modpack.png
313 %{_pixmapsdir}/freeciv-modpack.png
314 %{_mandir}/man6/freeciv-modpack.6*
318 %defattr(644,root,root,755)
319 %attr(755,root,root) %{_bindir}/freeciv-gtk2
320 %{_desktopdir}/%{name}-client.desktop
321 %{_datadir}/appdata/freeciv-gtk2.appdata.xml
322 %{_datadir}/%{name}/freeciv.rc-2.0
323 %{_mandir}/man6/freeciv-client.6*
324 %{_mandir}/man6/freeciv-gtk2.6*
325 %{_iconsdir}/hicolor/*/apps/freeciv-client.png
326 %{_pixmapsdir}/freeciv-client.png
331 %defattr(644,root,root,755)
332 %attr(755,root,root) %{_bindir}/freeciv-gtk3
333 %{_desktopdir}/%{name}-gtk3.desktop
334 %{_datadir}/appdata/freeciv-gtk3.appdata.xml
335 %{_mandir}/man6/freeciv-gtk3.6*
340 %defattr(644,root,root,755)
341 %attr(755,root,root) %{_bindir}/freeciv-sdl
342 %{_desktopdir}/%{name}-sdl.desktop
343 %{_datadir}/appdata/freeciv-sdl.appdata.xml
344 %{_mandir}/man6/freeciv-sdl.6*
349 %defattr(644,root,root,755)
350 %attr(755,root,root) %{_bindir}/freeciv-xaw
351 %{_datadir}/%{name}/Freeciv
352 %{_mandir}/man6/freeciv-xaw.6*