]> git.pld-linux.org Git - packages/freeciv.git/blame_incremental - freeciv.spec
- updated to 2.6.6
[packages/freeciv.git] / freeciv.spec
... / ...
CommitLineData
1#
2# TODO:
3# - work on authentication and Freeciv database support (fcdb)
4# - patch all packaged desktop files
5# - modpack requires gtk2 or gtk3
6#
7# Conditional build:
8%bcond_without ggz_client # build without ggz client
9%bcond_without ggz_server # build without ggz server
10%bcond_without magickwand # build without MagickWand map image toolkit support
11%bcond_without system_lua # build with bundled lua
12%bcond_without gtk2 # build without gtk2 client
13%bcond_without gtk3 # build without gtk3 client
14%bcond_without sdl # build without sdl client
15%bcond_without xaw # build without xaw client
16%bcond_with qt # build with qt client (broken)
17%bcond_without modpack # build without modpack installer
18#
19Summary: FREE CIVilization clone
20Summary(es.UTF-8): Clon del juego Civilization
21Summary(pl.UTF-8): Niekomercyjny klon CIVilization
22Summary(pt_BR.UTF-8): Clone do jogo Civilization
23Name: freeciv
24Version: 2.4.4
25Release: 7
26License: GPL v2+
27Group: X11/Applications/Games/Strategy
28Source0: http://downloads.sourceforge.net/freeciv/%{name}-%{version}.tar.bz2
29# Source0-md5: 038c53184497fcf31bcd268418dbe4f6
30# NOTE: current version of freeland tiles does not work with newest freeciv version
31#Source1: http://download.gna.org/freeciv/contrib/tilesets/freeland/freeland-normal-2.0.0.tar.gz
32Patch0: %{name}-link.patch
33Patch1: %{name}-desktop.patch
34Patch2: %{name}-ggz.patch
35Patch3: imagemagick7.patch
36URL: http://freeciv.wikia.com/
37%{?with_magickwand:BuildRequires: ImageMagick-devel}
38%{?with_sdl:BuildRequires: SDL_image-devel}
39BuildRequires: SDL_mixer-devel
40BuildRequires: autoconf >= 2.52
41BuildRequires: automake >= 1:1.9
42BuildRequires: curl-devel
43BuildRequires: gettext-tools
44%{?with_ggz_client:BuildRequires: ggz-gtk-client-devel}
45BuildRequires: glib2-devel
46%{?with_gtk2:BuildRequires: gtk+2-devel}
47%{?with_gtk3:BuildRequires: gtk+3-devel}
48BuildRequires: libggz-devel
49BuildRequires: libpng-devel
50BuildRequires: libtool
51%{?with_system_lua:BuildRequires: lua51-devel}
52BuildRequires: pkgconfig
53BuildRequires: readline-devel
54%{?with_xaw:BuildRequires: xorg-lib-libXaw-devel}
55BuildRequires: zlib-devel
56BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57
58%define specflags -O1
59
60%description
61Free clone of Sid Meier's Civilization. Free Civilization clone for
62Unix and X. This is multiplayer strategic game and you can also play
63against computer-AI players.
64
65%description -l es.UTF-8
66Clon del juego Civilization.
67
68%description -l pl.UTF-8
69Freeciv jest to niekomercyjny (GPL) klon gry Civilization Sida Meiera.
70Jest to gra strategiczna dla systemu X Window. Można grać w nią z
71innymi osobami poprzez sieć, a także przeciwko "graczom" zarządzanym
72przez komputer.
73
74%description -l pt_BR.UTF-8
75O FreeCiv é uma implementação do Civilization II para o Sistema X
76Window.
77
78%package client
79Summary: GTK2 Freeciv game client
80Summary(pl.UTF-8): Klient gry Freeciv korzystający z GTK2
81Group: X11/Applications/Games/Strategy
82Requires: %{name} = %{version}-%{release}
83Requires: %{name}-client-common = %{version}-%{release}
84Suggests: %{name}-server = %{version}-%{release}
85
86%description client
87This package contains GTK2-based Freeciv game client.
88
89%description client -l pl.UTF-8
90Ten pakiet zawiera klienta gry Freeciv korzystającego z GTK2.
91
92%package client-common
93Summary: Freeciv game client common files
94Summary(pl.UTF-8): Wspólne pliki klientów gry Freeciv
95Group: X11/Applications/Games/Strategy
96Requires: %{name} = %{version}-%{release}
97Requires: SDL_mixer
98Suggests: %{name}-server = %{version}-%{release}
99
100%description client-common
101This package contains common files for Freeciv game clients.
102
103%description client-common -l pl.UTF-8
104Ten pakiet zawiera wspólne pliki dla klientów gry Freeciv.
105
106%package client-gtk3
107Summary: GTK3 Freeciv game client
108Summary(pl.UTF-8): Klient gry Freeciv korzystający z GTK3
109Group: X11/Applications/Games/Strategy
110Requires: %{name} = %{version}-%{release}
111Suggests: %{name}-server = %{version}-%{release}
112
113%description client-gtk3
114This package contains GTK3-based Freeciv game client.
115
116%description client-gtk3 -l pl.UTF-8
117Ten pakiet zawiera klienta gry Freeciv korzystającego z GTK3.
118
119%package client-sdl
120Summary: SDL Freeciv game client
121Summary(pl.UTF-8): Klient gry Freeciv korzystający z SDL
122Group: X11/Applications/Games/Strategy
123Requires: %{name} = %{version}-%{release}
124Requires: %{name}-client-common = %{version}-%{release}
125Suggests: %{name}-server = %{version}-%{release}
126
127%description client-sdl
128This package contains SDL-based Freeciv game client.
129
130%description client-sdl -l pl.UTF-8
131Ten pakiet zawiera klienta gry Freeciv korzystającego z SDL.
132
133%package client-xaw
134Summary: XAW Freeciv game client
135Summary(pl.UTF-8): Klient gry Freeciv korzystający z XAW
136Group: X11/Applications/Games/Strategy
137Requires: %{name} = %{version}-%{release}
138Requires: %{name}-client-common = %{version}-%{release}
139Suggests: %{name}-server = %{version}-%{release}
140
141%description client-xaw
142This package contains based Freeciv game client using XAW (X Athena
143Widgets).
144
145%description client-xaw -l pl.UTF-8
146Ten pakiet zawiera klienta gry Freeciv korzystającego z biblioteki XAW
147(X Athena Widgets)
148
149%package modpack
150Summary: Custom content installer for the Freeciv game
151Summary(pl.UTF-8): Instalator dodatków do gry Freeciv
152Group: X11/Applications/Games/Strategy
153Requires: %{name} = %{version}-%{release}
154Requires: %{name}-client-common = %{version}-%{release}
155Suggests: %{name}-server = %{version}-%{release}
156
157%description modpack
158Custom content installer for the Freeciv game.
159
160This program allows users to select and download add-on content
161("modpacks") for Freeciv from the Internet, either from a list
162maintained by the Freeciv team, or by using a URL obtained by other
163means. It takes care of installing the files in the correct place
164under the user's home directory for this version of Freeciv; it does
165not install anything for system-wide use.
166
167%description modpack -l pl.UTF-8
168Ten pakiet zawiera instalator dodatków do gry Freeciv dostępnych w
169internecie.
170
171%package server
172Summary: Freeciv game server
173Summary(pl.UTF-8): Serwer gry Freeciv
174Group: X11/Applications/Games/Strategy
175Requires: %{name} = %{version}-%{release}
176
177%description server
178This package contans Freeciv game server.
179
180%description server -l pl.UTF-8
181Ten pakiet zawiera server gry Freeciv.
182
183%prep
184%setup -q
185%patch0 -p1
186%patch1 -p1
187%patch2 -p1
188%patch3 -p1
189
190cp -f /usr/share/aclocal/glib-gettext.m4 m4/
191
192%build
193%{__libtoolize}
194%{__aclocal} -I m4
195%{__autoconf}
196%{__autoheader}
197%{__automake}
198%configure \
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_modpack:--enable-fcmp=no} \
204 %{?with_system_lua:--enable-sys-lua} \
205 %{!?with_ggz_client:--without-ggz-client} \
206 %{!?with_ggz_server:--without-ggz-server}
207
208%{__make}
209
210%install
211rm -rf $RPM_BUILD_ROOT
212install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
213
214%{__make} install \
215 DESTDIR=$RPM_BUILD_ROOT
216
217cp -a client/%{name}.desktop $RPM_BUILD_ROOT%{_desktopdir}/%{name}-client.desktop
218cp -a server/%{name}-server.desktop $RPM_BUILD_ROOT%{_desktopdir}
219%{__rm} -f $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
220
221cp -a data/icons/32x32/*.png $RPM_BUILD_ROOT%{_pixmapsdir}
222cp -a data/stdsounds{,.soundspec} $RPM_BUILD_ROOT%{_datadir}/%{name}
223#cp -a freeland.tilespec $RPM_BUILD_ROOT%{_datadir}/%{name}
224#cp -a freeland $RPM_BUILD_ROOT%{_datadir}/%{name}
225
226%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/no
227%{__rm} -f $RPM_BUILD_ROOT%{_sysconfdir}/ggz.modules
228
229cp -a data/gtk_menus.xml $RPM_BUILD_ROOT%{_datadir}/%{name}
230
231%if %{with ggz_server}
232install -d $RPM_BUILD_ROOT%{_sysconfdir}/ggzd/{games,rooms}
233cp -a data/civserver.dsc $RPM_BUILD_ROOT%{_sysconfdir}/ggzd/games/civserver.dsc
234cp -a data/civserver.room $RPM_BUILD_ROOT%{_sysconfdir}/ggzd/rooms/civserver.room
235%endif
236
237%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
238%{__rm} $RPM_BUILD_ROOT%{_libdir}/libfreeciv{,-srv}.{a,la}
239%{__rm} $RPM_BUILD_ROOT%{_mandir}/man6/freeciv-qt*
240
241# from freeciv-manual man:
242# This tool is currently only really of use to the Freeciv maintainers,
243# as a starting point for pages on the main Freeciv wiki;
244# it's not very useful to end users.
245%{__rm} $RPM_BUILD_ROOT%{_bindir}/freeciv-manual
246%{__rm} $RPM_BUILD_ROOT%{_mandir}/man6/freeciv-manual*
247
248%{__rm} $RPM_BUILD_ROOT%{_bindir}/freeciv-stub
249
250# needed if building --without gtk2,gtk3,sdl
251%{__install} -d $RPM_BUILD_ROOT%{_datadir}/%{name}/themes
252
253%find_lang %{name}
254
255%clean
256rm -rf $RPM_BUILD_ROOT
257
258%files -f %{name}.lang
259%defattr(644,root,root,755)
260%doc AUTHORS doc/BUGS ChangeLog doc/FAQ doc/HOWTOPLAY
261%doc NEWS NEWS-2.4
262%doc doc/README.SDLClient doc/README.cma doc/README.effects doc/README.fcdb
263%doc doc/README.graphics doc/README.sound
264%doc doc/README.ruleset_experimental doc/README.ruleset_multiplayer doc/README.rulesets
265%doc doc/TODO
266%dir %{_datadir}/%{name}
267%{_datadir}/%{name}/helpdata.txt
268
269%files server
270%defattr(644,root,root,755)
271%attr(755,root,root) %{_bindir}/freeciv-server
272#attr(755,root,root) %{_bindir}/freeciv-manual
273%{_desktopdir}/%{name}-server.desktop
274%{_datadir}/appdata/freeciv-server.appdata.xml
275%{_datadir}/%{name}/civ1
276%{_datadir}/%{name}/civ2
277%{_datadir}/%{name}/default
278%{_datadir}/%{name}/experimental
279%{_datadir}/%{name}/multiplayer
280%{_datadir}/%{name}/nation
281%{_datadir}/%{name}/scenarios
282%{_datadir}/%{name}/*.serv
283%{_mandir}/man6/freeciv-server.6*
284#{_mandir}/man6/freeciv-manual.6*
285%{_iconsdir}/hicolor/*/apps/freeciv-server.png
286%{_pixmapsdir}/freeciv-server.png
287
288%if %{with ggz_server}
289%dir %{_sysconfdir}/ggzd
290%dir %{_sysconfdir}/ggzd/games
291%dir %{_sysconfdir}/ggzd/rooms
292%{_sysconfdir}/ggzd/games/civserver.dsc
293%{_sysconfdir}/ggzd/rooms/civserver.room
294%endif
295
296%files client-common
297%defattr(644,root,root,755)
298%{_datadir}/%{name}/*.*spec
299%{_datadir}/%{name}/amplio2
300%{_datadir}/%{name}/buildings
301%{_datadir}/%{name}/cimpletoon
302%{_datadir}/%{name}/flags
303%{_datadir}/%{name}/gtk_menus.xml
304%{_datadir}/%{name}/hex2t
305%{_datadir}/%{name}/isophex
306%{_datadir}/%{name}/isotrident
307%{_datadir}/%{name}/misc
308%{_datadir}/%{name}/stdsounds
309%dir %{_datadir}/%{name}/themes
310%{_datadir}/%{name}/trident
311%{_datadir}/%{name}/wonders
312
313%if %{with modpack}
314%files modpack
315%defattr(644,root,root,755)
316%attr(755,root,root) %{_bindir}/freeciv-modpack
317%{_desktopdir}/%{name}-modpack.desktop
318%{_datadir}/appdata/freeciv-modpack.appdata.xml
319%{_iconsdir}/hicolor/*/apps/freeciv-modpack.png
320%{_pixmapsdir}/freeciv-modpack.png
321%{_mandir}/man6/freeciv-modpack.6*
322%endif
323
324%if %{with gtk2}
325%files client
326%defattr(644,root,root,755)
327%attr(755,root,root) %{_bindir}/freeciv-gtk2
328%{_desktopdir}/%{name}-client.desktop
329%{_datadir}/appdata/freeciv-gtk2.appdata.xml
330%{_datadir}/%{name}/freeciv.rc-2.0
331%{_datadir}/%{name}/themes/gui-gtk-2.0
332%{_mandir}/man6/freeciv-client.6*
333%{_mandir}/man6/freeciv-gtk2.6*
334%{_iconsdir}/hicolor/*/apps/freeciv-client.png
335%{_pixmapsdir}/freeciv-client.png
336%endif
337
338%if %{with gtk3}
339%files client-gtk3
340%defattr(644,root,root,755)
341%attr(755,root,root) %{_bindir}/freeciv-gtk3
342%{_desktopdir}/%{name}-gtk3.desktop
343%{_datadir}/appdata/freeciv-gtk3.appdata.xml
344%{_datadir}/%{name}/themes/gui-gtk-3.0
345%{_mandir}/man6/freeciv-gtk3.6*
346%endif
347
348%if %{with sdl}
349%files client-sdl
350%defattr(644,root,root,755)
351%attr(755,root,root) %{_bindir}/freeciv-sdl
352%{_desktopdir}/%{name}-sdl.desktop
353%{_datadir}/appdata/freeciv-sdl.appdata.xml
354%{_datadir}/%{name}/themes/gui-sdl
355%{_mandir}/man6/freeciv-sdl.6*
356%endif
357
358%if %{with xaw}
359%files client-xaw
360%defattr(644,root,root,755)
361%attr(755,root,root) %{_bindir}/freeciv-xaw
362%{_datadir}/%{name}/Freeciv
363%{_mandir}/man6/freeciv-xaw.6*
364%endif
365
This page took 0.028246 seconds and 4 git commands to generate.