From 7c45bec07cf946a4782c2ea8e0a00146c48c2610 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Thu, 19 May 2011 17:18:29 +0200 Subject: [PATCH] add patch to fix build of spice-gtk-0.6 spice-protocol as available in fedora 15 is missing a #include which breaks the build of the controller --- spice-gtk-controller-includes.patch | 20 ++++++++++++++++++++ spice-gtk.spec | 4 ++++ 2 files changed, 24 insertions(+) create mode 100644 spice-gtk-controller-includes.patch diff --git a/spice-gtk-controller-includes.patch b/spice-gtk-controller-includes.patch new file mode 100644 index 0000000..e138587 --- /dev/null +++ b/spice-gtk-controller-includes.patch @@ -0,0 +1,20 @@ +--- a/gtk/controller/controller.c ++++ b/gtk/controller/controller.c +@@ -15,6 +15,7 @@ + + #include + #include ++#include + #include + #include + #include +--- a/gtk/controller/menu.c ++++ b/gtk/controller/menu.c +@@ -15,6 +15,7 @@ + + #include + #include ++#include + #include + #include + #include diff --git a/spice-gtk.spec b/spice-gtk.spec index c8010d2..7fb1bb9 100644 --- a/spice-gtk.spec +++ b/spice-gtk.spec @@ -37,6 +37,7 @@ BuildRequires: libtool ExclusiveArch: %{ix86} x86_64 +Patch0: spice-gtk-controller-includes.patch %description Client libraries for SPICE desktop servers. @@ -117,6 +118,9 @@ snappy is a tool to capture screen-shots of a SPICE desktop. %prep %setup -q -n spice-gtk-%{version} -c +pushd spice-gtk-%{version} +%patch0 -p1 -b .controller-includes +popd %if %{with_gtk3} cp -a spice-gtk-%{version} spice-gtk3-%{version}