3 # - dozen of unpackaged files
6 %bcond_without gtk # do not build gtk client
7 %bcond_without ggz_client # do not build ggz client
8 %bcond_without ggz_server # do not build ggz server
10 Summary: FREE CIVilization clone
11 Summary(es.UTF-8): Clon del juego Civilization
12 Summary(pl.UTF-8): Niekomercyjny klon CIVilization
13 Summary(pt_BR.UTF-8): Clone do jogo Civilization
18 Group: X11/Applications/Games/Strategy
19 Source0: http://dl.sourceforge.net/freeciv/%{name}-%{version}.tar.bz2
20 # Source0-md5: 2b5e96c6464212273150f8d3ec0bf7f7
21 Source1: ftp://ftp.freeciv.org/pub/freeciv/contrib/audio/soundsets/stdsounds3.tar.gz
22 # Source1-md5: 77215914712f2f351092918f5e41e39e
23 Source2: ftp://ftp.freeciv.org/pub/freeciv/contrib/tilesets/freeland/freeland-normal-2.0.0.tar.gz
24 # Source2-md5: c9f061fca82aa50a19fbbc89c06ff81d
25 Patch0: %{name}-link.patch
26 Patch1: %{name}-desktop.patch
27 URL: http://www.freeciv.org/
28 BuildRequires: SDL_mixer-devel
29 BuildRequires: autoconf >= 2.52
30 BuildRequires: automake
31 BuildRequires: esound-devel
32 %{?with_gtk:BuildRequires: gtk+2-devel}
33 %{?with_ggz_client:BuildRequires: ggz-gtk-client-devel}
34 %{?with_ggz_server:BuildRequires: ggz-server-devel}
35 BuildRequires: libggz-devel
36 BuildRequires: pkgconfig
37 BuildRequires: readline-devel
38 BuildRequires: zlib-devel
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 Free clone of Sid Meier's Civilization. Free Civilization clone for
43 unix and X. This is multiplayer strategic game and you can also play
44 against computer-AI players.
46 %description -l es.UTF-8
47 Clon del juego Civilization.
49 %description -l pl.UTF-8
50 Freeciv jest to niekomercyjny (GPL) klon gry Civilization Sida Meiera.
51 Jest to gra strategiczna dla systemu X Window. Można grać w nią z
52 innymi osobami poprzez sieć, a także przeciwko "graczom" zarządzanym
55 %description -l pt_BR.UTF-8
56 O FreeCiv é uma implementação do Civilization II para o Sistema X
60 Summary: Freeciv game client
61 Summary(pl.UTF-8): Klient gry Freeciv
62 Group: X11/Applications/Games/Strategy
63 Requires: %{name} = %{version}-%{release}
68 This package contains Freeciv game client.
70 %description client -l pl.UTF-8
71 Ten pakiet zawiera klienta gry Freeciv.
74 Summary: Freeciv game server
75 Summary(pl.UTF-8): Serwer gry Freeciv
76 Group: X11/Applications/Games/Strategy
77 Requires: %{name} = %{version}-%{release}
80 This package contans Freeciv game server.
82 %description server -l pl.UTF-8
83 Ten pakiet zawiera server gry Freeciv.
96 %{?with_gtk: --enable-client=gtk}
97 %{!?with_ggz_client: --without-ggz-client}
98 %{!?with_ggz_server: --without-ggz-server}
103 rm -rf $RPM_BUILD_ROOT
104 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
107 DESTDIR=$RPM_BUILD_ROOT
109 cp -f client/%{name}.desktop $RPM_BUILD_ROOT%{_desktopdir}/%{name}-client.desktop
110 cp -f server/%{name}-server.desktop $RPM_BUILD_ROOT%{_desktopdir}
111 cp -f data/icons/32x32/*.png $RPM_BUILD_ROOT%{_pixmapsdir}
112 cp -rf data/stdsounds{,.soundspec} $RPM_BUILD_ROOT%{_datadir}/%{name}
113 cp -f freeland.tilespec $RPM_BUILD_ROOT%{_datadir}/%{name}
114 cp -rf freeland $RPM_BUILD_ROOT%{_datadir}/%{name}
116 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/no
121 rm -rf $RPM_BUILD_ROOT
123 %files -f %{name}.lang
124 %defattr(644,root,root,755)
125 %doc AUTHORS README ChangeLog NEWS
127 %dir %{_datadir}/%{name}
128 %{_datadir}/%{name}/helpdata.txt
131 %defattr(644,root,root,755)
132 %attr(755,root,root) %{_bindir}/civserver
133 %{_desktopdir}/%{name}-server.desktop
134 %{_datadir}/%{name}/civ1
135 %{_datadir}/%{name}/civ2
136 %{_datadir}/%{name}/default
137 %{_datadir}/%{name}/nation
138 %{_datadir}/%{name}/scenario
139 %{_datadir}/%{name}/*.serv
140 %{_mandir}/man6/civserver.6*
143 %defattr(644,root,root,755)
144 %attr(755,root,root) %{_bindir}/civclient
145 %attr(755,root,root) %{_bindir}/civmanual
146 %{_desktopdir}/%{name}-client.desktop
147 %{_datadir}/%{name}/amplio
148 %{_datadir}/%{name}/freeciv.rc*
149 %{_datadir}/%{name}/freeland
150 %{_datadir}/%{name}/isophex
151 %{_datadir}/%{name}/isotrident
152 %{_datadir}/%{name}/misc
153 %{_datadir}/%{name}/trident
154 %{_datadir}/%{name}/flags
155 %{_datadir}/%{name}/*.*spec
156 %{_datadir}/%{name}/stdsounds
157 %{_mandir}/man6/civclient.6*