From 3e9237f231e06bbab396e3dae59840604e09bf8e Mon Sep 17 00:00:00 2001 From: trojan Date: Mon, 20 Jan 2003 08:23:33 +0000 Subject: [PATCH] - updated to 1.14.0 - added bcond _with_gtk2 Changed files: freeciv.spec -> 1.58 --- freeciv.spec | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/freeciv.spec b/freeciv.spec index 58860da..8a3be6a 100644 --- a/freeciv.spec +++ b/freeciv.spec @@ -1,9 +1,13 @@ +# +# Conditional build: +# _with_gtk2 build gtk2 client, not gtk +# Summary: FREE CIVilization clone Summary(es): Clon del juego Civilization Summary(pl): Niekomercyjny klon CIVilization Summary(pt_BR): Clone do jogo Civilization Name: freeciv -Version: 1.13.0 +Version: 1.14.0 Release: 1 License: GPL Group: X11/Applications/Games/Strategy @@ -15,8 +19,9 @@ Source4: ftp://ftp.freeciv.org/freeciv/contrib/sounds/sets/stdsounds1.tar.gz Source5: ftp://ftp.freeciv.org/freeciv/contrib/sounds/sets/stdsounds.spec URL: http://www.freeciv.org/ BuildRequires: esound-devel -BuildRequires: gtk+-devel > 1.2.1 -BuildRequires: imlib-devel >= 1.9.2 +%{!?_with_gtk2:BuildRequires: gtk+-devel > 1.2.1} +%{?_with_gtk2:BuildRequires: gtk+2-devel} +%{!?_with_gtk2:BuildRequires: imlib-devel >= 1.9.2} BuildRequires: readline-devel BuildRequires: zlib-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -45,7 +50,8 @@ Window. %build %configure2_13 \ - --with-gtk +%{!?_with_gtk2: --enable-client=gtk} \ +%{?_with_gtk2: --enable-client=gtk2} %{__make} %install -- 2.44.0