[gnome-games/f18] Fix glchess not working when playing against the computer (rhbz#917305)
Hans de Goede
jwrdegoede at fedoraproject.org
Tue Mar 5 20:29:21 UTC 2013
commit 3c70902509d3411117d0ebfcb3a6108166d73154
Author: Hans de Goede <hdegoede at redhat.com>
Date: Tue Mar 5 21:32:41 2013 +0100
Fix glchess not working when playing against the computer (rhbz#917305)
...eck-so-gnome-sudoku-works-with-pygobject-.patch | 33 -------------
fix-fr-translation.patch | 15 ------
glchess-respect-engine-args.patch | 48 ++++++++++++++++++++
gnome-games-gl.patch | 21 ---------
gnome-games.spec | 8 +++-
iagno.patch | 13 -----
6 files changed, 55 insertions(+), 83 deletions(-)
---
diff --git a/glchess-respect-engine-args.patch b/glchess-respect-engine-args.patch
new file mode 100644
index 0000000..8012910
--- /dev/null
+++ b/glchess-respect-engine-args.patch
@@ -0,0 +1,48 @@
+From 8e728c0557aa8a6746a6abd573e560ed1bf83cee Mon Sep 17 00:00:00 2001
+From: Michael Catanzaro <mike.catanzaro at gmail.com>
+Date: Wed, 2 Jan 2013 13:17:18 -0600
+Subject: [PATCH] Respect engine args specified in engines.conf
+
+https://bugzilla.gnome.org/show_bug.cgi?id=691031
+---
+ glchess/src/chess-engine.vala | 4 +++-
+ glchess/src/glchess.vala | 1 +
+ 2 files changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/glchess/src/chess-engine.vala b/glchess/src/chess-engine.vala
+index 0792f3b..3762889 100644
+--- a/glchess/src/chess-engine.vala
++++ b/glchess/src/chess-engine.vala
+@@ -1,6 +1,8 @@
+ public class ChessEngine : Object
+ {
+ public string binary;
++ public string args;
++
+ private Pid pid;
+ private int stdin_fd;
+ private int stderr_fd;
+@@ -30,7 +32,7 @@ public class ChessEngine : Object
+
+ public bool start ()
+ {
+- string[] argv = { binary, null };
++ string[] argv = { binary, args, null };
+ int stdout_fd;
+ try
+ {
+diff --git a/glchess/src/glchess.vala b/glchess/src/glchess.vala
+index 1e6f5ee..5e32e76 100644
+--- a/glchess/src/glchess.vala
++++ b/glchess/src/glchess.vala
+@@ -529,6 +529,7 @@ public class Application : Gtk.Application
+ return null;
+ }
+ engine.binary = profile.binary;
++ engine.args = profile.args;
+
+ return engine;
+ }
+--
+1.7.11.7
+
diff --git a/gnome-games.spec b/gnome-games.spec
index e4d6f8c..ee04e95 100644
--- a/gnome-games.spec
+++ b/gnome-games.spec
@@ -32,11 +32,12 @@
Summary: Games for the GNOME desktop
Name: gnome-games
Version: 3.6.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Epoch: 1
License: GPLv2+ and GPLv3 and GFDL
#VCS: git:git://git.gnome.org/gnome-games
Source: http://download.gnome.org/sources/gnome-games/3.6/gnome-games-%{version}.tar.xz
+Patch0: glchess-respect-engine-args.patch
Obsoletes: gnome-games-devel < %{epoch}:%{version}-%{release}
URL: http://projects.gnome.org/gnome-games/
@@ -144,6 +145,7 @@ A logic game with a Japanese name that has recently exploded in popularity.
%package glchess
Summary: GNOME Chess game
Requires: %{name}-data = %{epoch}:%{version}-%{release}
+Requires: gnuchess
Obsoletes: gnome-games-extra < %{gnome_games_split_version}
Obsoletes: gnome-games-extra-compat < %{gnome_games_compat_removed_version}
Provides: glchess = %{epoch}:%{version}-%{release}
@@ -270,6 +272,7 @@ The Russian game of falling geometric shapes.
%prep
%setup -q
+%patch0 -p1
%build
%configure --localstatedir=/var/lib \
@@ -714,6 +717,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
%changelog
+* Tue Mar 5 2013 Hans de Goede <hdegoede at redhat.com> - 1:3.6.1-2
+- Fix glchess not working when playing against the computer (rhbz#917305)
+
* Tue Oct 16 2012 Kalev Lember <kalevlember at gmail.com> - 1:3.6.1-1
- Update to 3.6.1
More information about the scm-commits
mailing list