3 %bcond_without gtk2 # build gtk1 client, not gtk2
8 Summary: FREE CIVilization clone
9 Summary(es): Clon del juego Civilization
10 Summary(pl): Niekomercyjny klon CIVilization
11 Summary(pt_BR): Clone do jogo Civilization
16 Group: X11/Applications/Games/Strategy
17 Source0: ftp://ftp.freeciv.org/freeciv/beta/%{name}-%{version}-%{beta}.tar.bz2
18 # Source0-md5: 55188bafed83501255d6fed62dea4517
19 Source1: %{name}-client.desktop
20 Source2: %{name}-server.desktop
22 Source4: ftp://ftp.freeciv.org/freeciv/contrib/sounds/sets/stdsounds1.tar.gz
23 # Source4-md5: 28a54fbe3ddb67a9b8fe85b8332415e1
24 Source5: ftp://ftp.freeciv.org/freeciv/contrib/sounds/sets/stdsounds.spec
25 # Source5-md5: 6e3e2bc551eb49ca87c4f0085991db15
26 URL: http://www.freeciv.org/
27 BuildRequires: SDL_mixer-devel
28 BuildRequires: esound-devel
29 %{!?with_gtk2:BuildRequires: gtk+-devel > 1.2.1}
30 %{?with_gtk2:BuildRequires: gtk+2-devel}
31 %{!?with_gtk2:BuildRequires: imlib-devel >= 1.9.2}
32 BuildRequires: readline-devel
33 BuildRequires: zlib-devel
36 %{!?with_gtk2:Requires: gtk+ > 1.2.1}
37 %{!?with_gtk2:Requires: imlib >= 1.9.2}
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 Free clone of Sid Meiers Civilization. Free Civilization clone for
42 unix and X. This is multiplayer strategic game and you can also play
43 against computer-AI players.
46 Clon del juego Civilization.
49 Freeciv jest to niekomercyjny (GPL) klon gry Civilization Sida
50 Meiersa. Jest to gra strategiczna dla systemu X Window. Mo¿na graæ w
51 ni± z innymi osobami poprzez sieæ, a tak¿e przeciwko "graczom"
52 zarz±dzanym przez komputer.
55 O FreeCiv é uma implementação do Civilization II para o Sistema X
59 %setup -q -a 4 -n %{name}-%{version}-%{beta}
63 %{!?with_gtk2: --enable-client=gtk} \
64 %{?with_gtk2: --enable-client=gtk2}
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT%{_libdir}/X11/app-defaults \
71 $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
74 DESTDIR=$RPM_BUILD_ROOT
76 rm $RPM_BUILD_ROOT%{_datadir}/freeciv/Freeciv
78 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
79 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
80 install %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/freeciv/stdsounds.soundspec
81 cp -ar stdsounds $RPM_BUILD_ROOT%{_datadir}/freeciv
86 rm -rf $RPM_BUILD_ROOT
88 %files -f %{name}.lang
89 %defattr(644,root,root,755)
90 %doc AUTHORS README ChangeLog NEWS
91 %attr(755,root,root) %{_bindir}/*