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}