3 # - work on authentication and Freeciv database support (fcdb)
4 # - patch all packaged desktop files
5 # - modpack requires gtk2 or gtk3
8 %bcond_without magickwand # build without MagickWand map image toolkit support
9 %bcond_without system_lua # build with bundled lua
10 %bcond_without gtk2 # build without gtk2 client
11 %bcond_without gtk3 # build without gtk3 client
12 %bcond_without sdl # build without sdl client
13 %bcond_without xaw # build without xaw client
14 %bcond_with qt # build with qt client (broken)
15 %bcond_without modpack # build without modpack installer
17 Summary: FREE CIVilization clone
18 Summary(es.UTF-8): Clon del juego Civilization
19 Summary(pl.UTF-8): Niekomercyjny klon CIVilization
20 Summary(pt_BR.UTF-8): Clone do jogo Civilization
25 Group: X11/Applications/Games/Strategy
26 Source0: http://downloads.sourceforge.net/freeciv/%{name}-%{version}.tar.bz2
27 # Source0-md5: 68f3eab21a20fcf7fe7de39d0915e23f
28 # NOTE: current version of freeland tiles does not work with newest freeciv version
29 #Source1: http://download.gna.org/freeciv/contrib/tilesets/freeland/freeland-normal-2.0.0.tar.gz
30 Patch0: %{name}-link.patch
31 Patch1: %{name}-desktop.patch
32 Patch3: imagemagick7.patch
33 URL: http://freeciv.wikia.com/
34 %{?with_magickwand:BuildRequires: ImageMagick-devel}
35 %{?with_sdl:BuildRequires: SDL_image-devel}
36 BuildRequires: SDL_mixer-devel
37 BuildRequires: autoconf >= 2.52
38 BuildRequires: automake >= 1:1.9
39 BuildRequires: curl-devel
40 BuildRequires: gettext-tools
41 BuildRequires: glib2-devel
42 %{?with_gtk2:BuildRequires: gtk+2-devel}
43 %{?with_gtk3:BuildRequires: gtk+3-devel}
44 BuildRequires: libpng-devel
45 BuildRequires: libtool
46 %{?with_system_lua:BuildRequires: lua53-devel}
47 BuildRequires: pkgconfig
48 BuildRequires: readline-devel
49 %{?with_xaw:BuildRequires: xorg-lib-libXaw-devel}
50 BuildRequires: zlib-devel
51 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56 Free clone of Sid Meier's Civilization. Free Civilization clone for
57 Unix and X. This is multiplayer strategic game and you can also play
58 against computer-AI players.
60 %description -l es.UTF-8
61 Clon del juego Civilization.
63 %description -l pl.UTF-8
64 Freeciv jest to niekomercyjny (GPL) klon gry Civilization Sida Meiera.
65 Jest to gra strategiczna dla systemu X Window. Można grać w nią z
66 innymi osobami poprzez sieć, a także przeciwko "graczom" zarządzanym
69 %description -l pt_BR.UTF-8
70 O FreeCiv é uma implementação do Civilization II para o Sistema X
74 Summary: GTK2 Freeciv game client
75 Summary(pl.UTF-8): Klient gry Freeciv korzystający z GTK2
76 Group: X11/Applications/Games/Strategy
77 Requires: %{name} = %{version}-%{release}
78 Requires: %{name}-client-common = %{version}-%{release}
79 Suggests: %{name}-server = %{version}-%{release}
82 This package contains GTK2-based Freeciv game client.
84 %description client -l pl.UTF-8
85 Ten pakiet zawiera klienta gry Freeciv korzystającego z GTK2.
87 %package client-common
88 Summary: Freeciv game client common files
89 Summary(pl.UTF-8): Wspólne pliki klientów gry Freeciv
90 Group: X11/Applications/Games/Strategy
91 Requires: %{name} = %{version}-%{release}
93 Suggests: %{name}-server = %{version}-%{release}
95 %description client-common
96 This package contains common files for Freeciv game clients.
98 %description client-common -l pl.UTF-8
99 Ten pakiet zawiera wspólne pliki dla klientów gry Freeciv.
102 Summary: GTK3 Freeciv game client
103 Summary(pl.UTF-8): Klient gry Freeciv korzystający z GTK3
104 Group: X11/Applications/Games/Strategy
105 Requires: %{name} = %{version}-%{release}
106 Suggests: %{name}-server = %{version}-%{release}
108 %description client-gtk3
109 This package contains GTK3-based Freeciv game client.
111 %description client-gtk3 -l pl.UTF-8
112 Ten pakiet zawiera klienta gry Freeciv korzystającego z GTK3.
115 Summary: SDL Freeciv game client
116 Summary(pl.UTF-8): Klient gry Freeciv korzystający z SDL
117 Group: X11/Applications/Games/Strategy
118 Requires: %{name} = %{version}-%{release}
119 Requires: %{name}-client-common = %{version}-%{release}
120 Suggests: %{name}-server = %{version}-%{release}
122 %description client-sdl
123 This package contains SDL-based Freeciv game client.
125 %description client-sdl -l pl.UTF-8
126 Ten pakiet zawiera klienta gry Freeciv korzystającego z SDL.
129 Summary: XAW Freeciv game client
130 Summary(pl.UTF-8): Klient gry Freeciv korzystający z XAW
131 Group: X11/Applications/Games/Strategy
132 Requires: %{name} = %{version}-%{release}
133 Requires: %{name}-client-common = %{version}-%{release}
134 Suggests: %{name}-server = %{version}-%{release}
136 %description client-xaw
137 This package contains based Freeciv game client using XAW (X Athena
140 %description client-xaw -l pl.UTF-8
141 Ten pakiet zawiera klienta gry Freeciv korzystającego z biblioteki XAW
145 Summary: Custom content installer for the Freeciv game
146 Summary(pl.UTF-8): Instalator dodatków do gry Freeciv
147 Group: X11/Applications/Games/Strategy
148 Requires: %{name} = %{version}-%{release}
149 Requires: %{name}-client-common = %{version}-%{release}
150 Suggests: %{name}-server = %{version}-%{release}
153 Custom content installer for the Freeciv game.
155 This program allows users to select and download add-on content
156 ("modpacks") for Freeciv from the Internet, either from a list
157 maintained by the Freeciv team, or by using a URL obtained by other
158 means. It takes care of installing the files in the correct place
159 under the user's home directory for this version of Freeciv; it does
160 not install anything for system-wide use.
162 %description modpack -l pl.UTF-8
163 Ten pakiet zawiera instalator dodatków do gry Freeciv dostępnych w
167 Summary: Freeciv game server
168 Summary(pl.UTF-8): Serwer gry Freeciv
169 Group: X11/Applications/Games/Strategy
170 Requires: %{name} = %{version}-%{release}
173 This package contans Freeciv game server.
175 %description server -l pl.UTF-8
176 Ten pakiet zawiera server gry Freeciv.
184 cp -f %{_aclocaldir}/glib-gettext.m4 m4/
193 --disable-silent-rules \
194 --enable-client=stub,%{?with_gtk2:gtk2},%{?with_gtk3:gtk3},%{?with_qt:qt},%{?with_sdl:sdl},%{?with_xaw:xaw} \
195 --enable-mapimg=%{?with_magickwand:magickwand}%{!?with_magickwand:no} \
196 %{?with_sdl:--enable-sdl-mixer=sdl} \
197 %{!?with_modpack:--enable-fcmp=no} \
198 %{?with_system_lua:--enable-sys-lua}
203 rm -rf $RPM_BUILD_ROOT
204 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
207 DESTDIR=$RPM_BUILD_ROOT
209 #cp -a client/%{name}.desktop $RPM_BUILD_ROOT%{_desktopdir}/%{name}-client.desktop
210 #cp -a server/%{name}-server.desktop $RPM_BUILD_ROOT%{_desktopdir}
211 #%{__rm} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
213 cp -a data/icons/32x32/*.png $RPM_BUILD_ROOT%{_pixmapsdir}
214 cp -a data/stdsounds{,.soundspec} $RPM_BUILD_ROOT%{_datadir}/%{name}
216 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
217 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfreeciv{,-srv}.{a,la}
218 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man6/freeciv-qt*
220 # from freeciv-manual man:
221 # This tool is currently only really of use to the Freeciv maintainers,
222 # as a starting point for pages on the main Freeciv wiki;
223 # it's not very useful to end users.
224 %{__rm} $RPM_BUILD_ROOT%{_bindir}/freeciv-manual
225 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man6/freeciv-manual*
227 %{__rm} $RPM_BUILD_ROOT%{_bindir}/freeciv-stub
229 # needed if building --without gtk2,gtk3,sdl
230 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/themes
235 rm -rf $RPM_BUILD_ROOT
237 %files -f %{name}.lang
238 %defattr(644,root,root,755)
239 %doc AUTHORS doc/BUGS ChangeLog doc/FAQ doc/HOWTOPLAY NEWS NEWS-2.6
240 %doc doc/README.effects doc/README.fcdb doc/README.graphics doc/README.sound
241 %doc doc/README.rulesets doc/TODO
242 %dir %{_datadir}/%{name}
243 %{_datadir}/%{name}/helpdata.txt
246 %defattr(644,root,root,755)
247 %{_sysconfdir}/freeciv
248 %attr(755,root,root) %{_bindir}/freeciv-server
249 #attr(755,root,root) %{_bindir}/freeciv-manual
250 %{_desktopdir}/org.freeciv.server.desktop
251 %{_datadir}/appdata/freeciv-server.appdata.xml
252 %{_datadir}/%{name}/civ1
253 %{_datadir}/%{name}/civ2
254 %{_datadir}/%{name}/civ2civ3
255 %{_datadir}/%{name}/classic
256 %{_datadir}/%{name}/default
257 %{_datadir}/%{name}/experimental
258 %{_datadir}/%{name}/hexemplio
259 %{_datadir}/%{name}/multiplayer
260 %{_datadir}/%{name}/nation
261 %{_datadir}/%{name}/override
262 %{_datadir}/%{name}/sandbox
263 %{_datadir}/%{name}/scenarios
264 %{_datadir}/%{name}/*.serv
265 %{_mandir}/man6/freeciv-server.6*
266 #{_mandir}/man6/freeciv-manual.6*
267 %{_iconsdir}/hicolor/*/apps/freeciv-server.png
268 %{_pixmapsdir}/freeciv-server.png
271 %defattr(644,root,root,755)
272 %{_datadir}/%{name}/*.*spec
273 %{_datadir}/%{name}/amplio2
274 %{_datadir}/%{name}/buildings
275 %{_datadir}/%{name}/cimpletoon
276 %{_datadir}/%{name}/flags
277 %{_datadir}/%{name}/hex2t
278 %{_datadir}/%{name}/isophex
279 %{_datadir}/%{name}/isotrident
280 %{_datadir}/%{name}/misc
281 %{_datadir}/%{name}/stdmusic
282 %{_datadir}/%{name}/stdsounds
283 %dir %{_datadir}/%{name}/themes
284 %{_datadir}/%{name}/trident
285 %{_datadir}/%{name}/wonders
289 %defattr(644,root,root,755)
290 %attr(755,root,root) %{_bindir}/freeciv-mp-gtk3
291 %{_desktopdir}/org.freeciv.mp.gtk3.desktop
292 %{_datadir}/appdata/freeciv-mp-gtk3.appdata.xml
293 %{_iconsdir}/hicolor/*/apps/freeciv-modpack.png
294 %{_pixmapsdir}/freeciv-modpack.png
295 %{_mandir}/man6/freeciv-modpack.6*
296 %{_mandir}/man6/freeciv-mp-gtk3.6*
301 %defattr(644,root,root,755)
302 %attr(755,root,root) %{_bindir}/freeciv-gtk2
303 %{_desktopdir}/org.freeciv.gtk2.desktop
304 %{_datadir}/appdata/freeciv-gtk2.appdata.xml
305 %{_datadir}/%{name}/freeciv.rc-2.0
306 %{_datadir}/%{name}/gtk2_menus.xml
307 %{_datadir}/%{name}/themes/gui-gtk-2.0
308 %{_mandir}/man6/freeciv-client.6*
309 %{_mandir}/man6/freeciv-gtk2.6*
310 %{_iconsdir}/hicolor/*/apps/freeciv-client.png
311 %{_pixmapsdir}/freeciv-client.png
316 %defattr(644,root,root,755)
317 %attr(755,root,root) %{_bindir}/freeciv-gtk3
318 %{_desktopdir}/org.freeciv.gtk3.desktop
319 %{_datadir}/appdata/freeciv-gtk3.appdata.xml
320 %{_datadir}/%{name}/gtk3_menus.xml
321 %{_datadir}/%{name}/themes/gui-gtk-3.0
322 %{_mandir}/man6/freeciv-gtk3.6*
327 %defattr(644,root,root,755)
328 %attr(755,root,root) %{_bindir}/freeciv-sdl
329 %{_desktopdir}/org.freeciv.sdl.desktop
330 %{_datadir}/appdata/freeciv-sdl.appdata.xml
331 %{_datadir}/%{name}/themes/gui-sdl
332 %{_mandir}/man6/freeciv-sdl.6*
337 %defattr(644,root,root,755)
338 %attr(755,root,root) %{_bindir}/freeciv-xaw
339 %{_datadir}/%{name}/Freeciv
340 %{_mandir}/man6/freeciv-xaw.6*