Summary: Risk clone
Summary(pl): Klon Ryzyka
Name: teg
-Version: 0.10.0
-Release: 1
+Version: 0.11.0
+Release: 4
License: GPL
Group: X11/Applications/Games
-#Source0: http://prdownloads.sourceforge.net/teg/%{name}-%{version}.tar.gz
-Source0: %{name}-%{version}.tar.gz
-Source1: %{name}.desktop
+Source0: http://dl.sourceforge.net/teg/%{name}-%{version}.tar.bz2
+# Source0-md5: b7c778b07a22c34bd21942a8be26e095
+Patch0: %{name}-desktop.patch
URL: http://teg.sf.net/
-BuildRequires: autoconf
-BuildRequires: gnome-libs-devel
-BuildRequires: libxml-devel
+BuildRequires: automake
+BuildRequires: glib2-devel >= 2.0.0
+BuildRequires: libgnome-devel >= 2.0.0
+BuildRequires: libgnomeui-devel >= 2.0.0
+BuildRequires: libxml2-devel >= 2.4.0
BuildRequires: readline-devel
+Requires(post): GConf2
+Requires: glib2 >= 2.0.0
+Requires: libgnome >= 2.0.0
+Requires: libgnomeui >= 2.0.0
+Requires: libxml2 >= 2.4.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _prefix /usr/X11R6
-%define _mandir %{_prefix}/man
-
%description
Tenes Emapandas Graciela (TEG) is a clone of 'Plan Táctico y
Estratégico de la Guerra', which is a pseudo-clone of Risk, a
%prep
%setup -q
+%patch0 -p1
%build
-(cd ggz; autoconf)
-%{__autoconf}
+cp -f /usr/share/automake/config.* .
%configure \
--with-readline \
--without-static
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_applnkdir}/Games
-
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
-install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Games
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT \
+ GCONFTOOL=/bin/true \
+ Gamesdir=%{_desktopdir}
-%{find_lang} %{name}
+%find_lang %{name} --with-gnome
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+%gconf_schema_install
+
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc ChangeLog PEOPLE README.GGZ TODO README
%attr(755,root,root) %{_bindir}/*
-%{_datadir}/gnome/help/teg
%{_pixmapsdir}/teg_icono.png
%{_pixmapsdir}/teg_pix
-%{_applnkdir}/Games/*
+%{_desktopdir}/*.desktop
+%{_sysconfdir}/gconf/schemas/*.schemas