]> git.pld-linux.org Git - packages/freeciv.git/blame - freeciv.spec
TODO about freeciv-stub
[packages/freeciv.git] / freeciv.spec
CommitLineData
a2d6e64d 1#
7a1462a3 2# TODO:
6308c089
SS
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)
05a36390 6# - patch all packaged desktop files
fb654d5c 7# - get rid freeciv-manual (or not)
21d7c5ed 8# - get rid freeciv-stub (or not)
24382cc8 9#
a2d6e64d 10# Conditional build:
696a3e6e 11%bcond_without ggz_client # build without ggz client
12%bcond_without ggz_server # build without ggz server
1304e7cf 13%bcond_without magickwand # build without MagickWand map image toolkit support
852f1cf3 14%bcond_without system_lua # build with bundled lua
73fd6aa7
SS
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)
e748604f 20#
68badbcf 21Summary: FREE CIVilization clone
a2d6e64d 22Summary(es.UTF-8): Clon del juego Civilization
23Summary(pl.UTF-8): Niekomercyjny klon CIVilization
24Summary(pt_BR.UTF-8): Clone do jogo Civilization
68badbcf 25Name: freeciv
b588d51d 26Version: 2.4.4
7a1462a3 27Release: 0.3
d9c0a687 28License: GPL v2+
c4d7f9a4 29Group: X11/Applications/Games/Strategy
53427aff 30Source0: http://downloads.sourceforge.net/freeciv/%{name}-%{version}.tar.bz2
b588d51d 31# Source0-md5: 038c53184497fcf31bcd268418dbe4f6
f1481f57 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
a2d6e64d 34Patch0: %{name}-link.patch
7d71a717 35Patch1: %{name}-desktop.patch
f8f12eb9 36Patch2: %{name}-ggz.patch
999b152c 37URL: http://freeciv.wikia.com/
1304e7cf 38%{?with_magickwand:BuildRequires: ImageMagick-devel}
73fd6aa7 39%if %{with sdl}
d00642ee 40BuildRequires: SDL_image-devel
37e4bbeb 41BuildRequires: SDL_mixer-devel
73fd6aa7 42%endif
a2d6e64d 43BuildRequires: autoconf >= 2.52
744dee41 44BuildRequires: automake >= 1:1.9
b256fc05 45BuildRequires: curl-devel
076a3f05 46BuildRequires: gettext-tools
3de6f65c 47%{?with_ggz_client:BuildRequires: ggz-gtk-client-devel}
73fd6aa7
SS
48%{?with_gtk2:BuildRequires: gtk+2-devel}
49%{?with_gtk3:BuildRequires: gtk+3-devel}
3de6f65c 50BuildRequires: libggz-devel
c9f99b35 51BuildRequires: libpng-devel
ef569fe1 52BuildRequires: libtool
60163dd9 53%{?with_system_lua:BuildRequires: lua51-devel}
a2d6e64d 54BuildRequires: pkgconfig
848e1b5f 55BuildRequires: readline-devel
73fd6aa7 56%{?with_xaw:BuildRequires: xorg-lib-libXaw-devel}
848e1b5f 57BuildRequires: zlib-devel
254af51f 58BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
512c4044 59
4bd37832 60%define specflags -O1
61
8e6171b1 62%description
52afb265 63Free clone of Sid Meier's Civilization. Free Civilization clone for
20965c93 64Unix and X. This is multiplayer strategic game and you can also play
54c8b158 65against computer-AI players.
8e6171b1 66
8b555401 67%description -l es.UTF-8
eba39772 68Clon del juego Civilization.
69
8b555401 70%description -l pl.UTF-8
c55f1852 71Freeciv jest to niekomercyjny (GPL) klon gry Civilization Sida Meiera.
8b555401 72Jest to gra strategiczna dla systemu X Window. Można grać w nią z
e64b1569
JB
73innymi osobami poprzez sieć, a także przeciwko "graczom" zarządzanym
74przez komputer.
8e6171b1 75
8b555401
JR
76%description -l pt_BR.UTF-8
77O FreeCiv é uma implementação do Civilization II para o Sistema X
eba39772 78Window.
79
c55f1852 80%package client
7a1462a3
SS
81Summary: GTK2 Freeciv game client
82Summary(pl.UTF-8): Klient gry Freeciv korzystający z GTK2
c55f1852 83Group: X11/Applications/Games/Strategy
84Requires: %{name} = %{version}-%{release}
7a1462a3 85Requires: %{name}-client-common = %{version}-%{release}
6a3d034a 86Suggests: %{name}-server = %{version}-%{release}
c55f1852 87
88%description client
7a1462a3 89This package contains GTK2-based Freeciv game client.
c55f1852 90
8b555401 91%description client -l pl.UTF-8
7a1462a3
SS
92Ten pakiet zawiera klienta gry Freeciv korzystającego z GTK2.
93
94%package client-common
95Summary: Freeciv game client common files
96Summary(pl.UTF-8): Wspólne pliki klientów gry Freeciv
97Group: X11/Applications/Games/Strategy
98Requires: %{name} = %{version}-%{release}
99Requires: %{name}-client-common = %{version}-%{release}
100Suggests: %{name}-server = %{version}-%{release}
101
102%description client-common
103This package contains common files for Freeciv game clients.
104
105%description client-common -l pl.UTF-8
106Ten pakiet zawiera wspólne pliki dla klientów gry Freeciv.
107
108%package client-gtk3
109Summary: GTK3 Freeciv game client
110Summary(pl.UTF-8): Klient gry Freeciv korzystający z GTK3
111Group: X11/Applications/Games/Strategy
112Requires: %{name} = %{version}-%{release}
113Suggests: %{name}-server = %{version}-%{release}
114
115%description client-gtk3
116This package contains GTK3-based Freeciv game client.
117
118%description client-gtk3 -l pl.UTF-8
119Ten pakiet zawiera klienta gry Freeciv korzystającego z GTK3.
120
121%package client-sdl
122Summary: SDL Freeciv game client
123Summary(pl.UTF-8): Klient gry Freeciv korzystający z SDL
124Group: X11/Applications/Games/Strategy
125Requires: %{name} = %{version}-%{release}
126Requires: %{name}-client-common = %{version}-%{release}
127Requires: SDL_mixer
128Suggests: %{name}-server = %{version}-%{release}
129
130%description client-sdl
131This package contains SDL-based Freeciv game client.
132
133%description client-sdl -l pl.UTF-8
134Ten pakiet zawiera klienta gry Freeciv korzystającego z SDL.
135
136%package client-xaw
137Summary: XAW Freeciv game client
138Summary(pl.UTF-8): Klient gry Freeciv korzystający z XAW
139Group: X11/Applications/Games/Strategy
140Requires: %{name} = %{version}-%{release}
141Requires: %{name}-client-common = %{version}-%{release}
142Suggests: %{name}-server = %{version}-%{release}
143
144%description client-xaw
145This package contains based Freeciv game client using XAW (X Athena
146Widgets).
147
148%description client-xaw -l pl.UTF-8
149Ten pakiet zawiera klienta gry Freeciv korzystającego z biblioteki XAW
150(X Athena Widgets)
151
152%package client-modpack
153Summary: Custom content installer for the Freeciv game
154Summary(pl.UTF-8): Instalator dodatków do gry Freeciv
155Group: X11/Applications/Games/Strategy
156Requires: %{name} = %{version}-%{release}
157Requires: %{name}-client-common = %{version}-%{release}
158Suggests: %{name}-server = %{version}-%{release}
159
160%description client-modpack
161Custom content installer for the Freeciv game.
162
163This program allows users to select and download add-on content
164("modpacks") for Freeciv from the Internet, either from a list
165maintained by the Freeciv team, or by using a URL obtained by other
166means. It takes care of installing the files in the correct place
167under the user's home directory for this version of Freeciv; it does
168not install anything for system-wide use.
169
170%description client-modpack -l pl.UTF-8
171Ten pakiet zawiera instalator dodatków do gry Freeciv dostępnych w
172internecie.
c55f1852 173
c55f1852 174%package server
175Summary: Freeciv game server
a2d6e64d 176Summary(pl.UTF-8): Serwer gry Freeciv
c55f1852 177Group: X11/Applications/Games/Strategy
178Requires: %{name} = %{version}-%{release}
179
180%description server
181This package contans Freeciv game server.
182
8b555401 183%description server -l pl.UTF-8
c55f1852 184Ten pakiet zawiera server gry Freeciv.
185
8e6171b1 186%prep
f1481f57 187%setup -q
a2d6e64d 188%patch0 -p1
293a1d81 189%patch1 -p1
f8f12eb9 190%patch2 -p1
8e6171b1 191
192%build
e748604f 193%{__libtoolize}
f8f12eb9 194%{__aclocal} -I m4
a2d6e64d 195%{__autoconf}
196%{__autoheader}
197%{__automake}
198%configure \
f8f12eb9 199 --with-ggzd-confdir=%{_sysconfdir}/ggzd \
82c4aa50 200 --disable-silent-rules \
73fd6aa7 201 --enable-client=stub,%{?with_gtk2:gtk2},%{?with_gtk3:gtk3},%{?with_qt:qt},%{?with_sdl:sdl},%{?with_xaw:xaw} \
1304e7cf 202 --enable-mapimg=%{?with_magickwand:magickwand}%{!?with_magickwand:no} \
60163dd9 203 %{?with_system_lua:--enable-sys-lua} \
999b152c
ER
204 %{!?with_ggz_client:--without-ggz-client} \
205 %{!?with_ggz_server:--without-ggz-server}
a2d6e64d 206
1402ce58 207%{__make}
8e6171b1 208
209%install
210rm -rf $RPM_BUILD_ROOT
a2d6e64d 211install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
8e6171b1 212
7eec69ca
PG
213%{__make} install \
214 DESTDIR=$RPM_BUILD_ROOT
8e6171b1 215
999b152c
ER
216cp -a client/%{name}.desktop $RPM_BUILD_ROOT%{_desktopdir}/%{name}-client.desktop
217cp -a server/%{name}-server.desktop $RPM_BUILD_ROOT%{_desktopdir}
b1fdb788 218%{__rm} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
90745ade 219
999b152c
ER
220cp -a data/icons/32x32/*.png $RPM_BUILD_ROOT%{_pixmapsdir}
221cp -a data/stdsounds{,.soundspec} $RPM_BUILD_ROOT%{_datadir}/%{name}
ac951725 222#cp -a freeland.tilespec $RPM_BUILD_ROOT%{_datadir}/%{name}
1f960d6b 223#cp -a freeland $RPM_BUILD_ROOT%{_datadir}/%{name}
38b7e0fd 224
37e4bbeb 225%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/no
b1fdb788 226%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/ggz.modules
a2d6e64d 227
24382cc8 228cp -a data/gtk_menus.xml $RPM_BUILD_ROOT%{_datadir}/%{name}
b274a5f1 229
dc958ef7 230%if %{with ggz_server}
231install -d $RPM_BUILD_ROOT%{_sysconfdir}/ggzd/{games,rooms}
999b152c
ER
232cp -a data/civserver.dsc $RPM_BUILD_ROOT%{_sysconfdir}/ggzd/games/civserver.dsc
233cp -a data/civserver.room $RPM_BUILD_ROOT%{_sysconfdir}/ggzd/rooms/civserver.room
dc958ef7 234%endif
235
37e4bbeb 236%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
cce99d3e 237%{__rm} $RPM_BUILD_ROOT%{_libdir}/libfreeciv{,-srv}.{a,la}
60817f48 238%{__rm} $RPM_BUILD_ROOT%{_mandir}/man6/freeciv-qt*
cce99d3e 239
10c5731a 240%find_lang %{name}
241
8e6171b1 242%clean
243rm -rf $RPM_BUILD_ROOT
244
10c5731a 245%files -f %{name}.lang
063665a5 246%defattr(644,root,root,755)
2770169a
SS
247%doc AUTHORS doc/BUGS ChangeLog doc/FAQ doc/HOWTOPLAY
248%doc NEWS NEWS-2.4
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
252%doc doc/TODO
70461273 253%dir %{_datadir}/%{name}
c55f1852 254%{_datadir}/%{name}/helpdata.txt
255
256%files server
257%defattr(644,root,root,755)
e748604f 258%attr(755,root,root) %{_bindir}/freeciv-server
c55f1852 259%{_desktopdir}/%{name}-server.desktop
6c98e562 260%{_datadir}/appdata/freeciv-server.appdata.xml
c55f1852 261%{_datadir}/%{name}/civ1
262%{_datadir}/%{name}/civ2
263%{_datadir}/%{name}/default
9f0b2873 264%{_datadir}/%{name}/experimental
265%{_datadir}/%{name}/multiplayer
c55f1852 266%{_datadir}/%{name}/nation
9c8a8e09 267%{_datadir}/%{name}/scenarios
c55f1852 268%{_datadir}/%{name}/*.serv
e748604f 269%{_mandir}/man6/freeciv-server.6*
270%{_iconsdir}/hicolor/*/apps/freeciv-server.png
271%{_pixmapsdir}/freeciv-server.png
a336af56
ER
272
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
279%endif
c55f1852 280
7a1462a3 281%files client-common
c55f1852 282%defattr(644,root,root,755)
2dc46003 283%attr(755,root,root) %{_bindir}/freeciv-stub
9f0b2873 284%attr(755,root,root) %{_bindir}/freeciv-manual
90745ade 285%{_datadir}/%{name}/*.*spec
9f0b2873 286%{_datadir}/%{name}/amplio2
90745ade 287%{_datadir}/%{name}/buildings
6223fa29 288%{_datadir}/%{name}/cimpletoon
90745ade 289%{_datadir}/%{name}/flags
c55f1852 290%{_datadir}/%{name}/freeciv.rc*
24382cc8 291%{_datadir}/%{name}/gtk_menus.xml
90745ade 292%{_datadir}/%{name}/hex2t
d9c0a687 293%{_datadir}/%{name}/isophex
c55f1852 294%{_datadir}/%{name}/isotrident
295%{_datadir}/%{name}/misc
a2d6e64d 296%{_datadir}/%{name}/stdsounds
90745ade
JK
297%{_datadir}/%{name}/themes
298%{_datadir}/%{name}/trident
299%{_datadir}/%{name}/wonders
7a1462a3
SS
300%{_mandir}/man6/freeciv-manual.6*
301
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*
310
311%if %{with gtk2}
312%files client
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
e748604f 317%{_mandir}/man6/freeciv-client.6*
318%{_mandir}/man6/freeciv-gtk2.6*
7a1462a3
SS
319%{_iconsdir}/hicolor/*/apps/freeciv-client.png
320%{_pixmapsdir}/freeciv-client.png
321%endif
322
323%if %{with gtk3}
324%files client-gtk3
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
a5977815 329%{_mandir}/man6/freeciv-gtk3.6*
7a1462a3
SS
330%endif
331
332%if %{with sdl}
333%files client-sdl
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
c3f6abd3 338%{_mandir}/man6/freeciv-sdl.6*
7a1462a3
SS
339%endif
340
341%if %{with xaw}
342%files client-xaw
343%defattr(644,root,root,755)
344%attr(755,root,root) %{_bindir}/freeciv-xaw
345%{_datadir}/%{name}/Freeciv
c3f6abd3 346%{_mandir}/man6/freeciv-xaw.6*
7a1462a3 347%endif
6223fa29 348
This page took 0.557967 seconds and 4 git commands to generate.