3 %bcond_without gtk2 # build gtk1 client, not gtk2
5 Summary: FREE CIVilization clone
6 Summary(es): Clon del juego Civilization
7 Summary(pl): Niekomercyjny klon CIVilization
8 Summary(pt_BR): Clone do jogo Civilization
13 Group: X11/Applications/Games/Strategy
14 Source0: ftp://ftp.freeciv.org/freeciv/stable/%{name}-%{version}.tar.bz2
15 # Source0-md5: d328f65e7fca5252f27161f5f9e97a03
16 Source1: %{name}-client.desktop
17 Source2: %{name}-server.desktop
19 Source4: ftp://ftp.freeciv.org/freeciv/contrib/sounds/sets/stdsounds1.tar.gz
20 # Source4-md5: 28a54fbe3ddb67a9b8fe85b8332415e1
21 Source5: ftp://ftp.freeciv.org/freeciv/contrib/sounds/sets/stdsounds.spec
22 # Source5-md5: 6e3e2bc551eb49ca87c4f0085991db15
23 Patch0: %{name}-locale_names.patch
24 URL: http://www.freeciv.org/
25 BuildRequires: SDL_mixer-devel
26 BuildRequires: automake
27 BuildRequires: esound-devel
28 %{!?with_gtk2:BuildRequires: gtk+-devel > 1.2.1}
29 %{?with_gtk2:BuildRequires: gtk+2-devel}
30 %{!?with_gtk2:BuildRequires: imlib-devel >= 1.9.2}
31 BuildRequires: readline-devel
32 BuildRequires: zlib-devel
35 %{!?with_gtk2:Requires: gtk+ > 1.2.1}
36 %{!?with_gtk2:Requires: imlib >= 1.9.2}
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 Free clone of Sid Meier's Civilization. Free Civilization clone for
41 unix and X. This is multiplayer strategic game and you can also play
42 against computer-AI players.
45 Clon del juego Civilization.
48 Freeciv jest to niekomercyjny (GPL) klon gry Civilization Sida
49 Meiera. Jest to gra strategiczna dla systemu X Window. Mo¿na graæ w
50 ni± z innymi osobami poprzez sieæ, a tak¿e przeciwko "graczom"
51 zarz±dzanym przez komputer.
54 O FreeCiv é uma implementação do Civilization II para o Sistema X
64 cp -f /usr/share/automake/config.sub .
66 %{!?with_gtk2: --enable-client=gtk} \
67 %{?with_gtk2: --enable-client=gtk2}
72 rm -rf $RPM_BUILD_ROOT
73 install -d $RPM_BUILD_ROOT%{_libdir}/X11/app-defaults \
74 $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
77 DESTDIR=$RPM_BUILD_ROOT
79 rm $RPM_BUILD_ROOT%{_datadir}/freeciv/Freeciv
81 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
82 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
83 install %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/freeciv/stdsounds.soundspec
84 cp -ar stdsounds $RPM_BUILD_ROOT%{_datadir}/freeciv
89 rm -rf $RPM_BUILD_ROOT
91 %files -f %{name}.lang
92 %defattr(644,root,root,755)
93 %doc AUTHORS README ChangeLog NEWS
94 %attr(755,root,root) %{_bindir}/*