--- /dev/null
+For spice-protocol 0.8.0 only; drop after later release
+--- xf86-video-qxl-0.0.14/src/qxl_driver.c.orig 2011-07-14 19:58:56.000000000 +0200
++++ xf86-video-qxl-0.0.14/src/qxl_driver.c 2011-07-15 19:34:51.417416343 +0200
+@@ -42,6 +42,11 @@
+ #endif
+ #define CHECK_POINT()
+
++/* defined in spice-protocol > 0.8.0 */
++#define QXL_COMMAND_RING_SIZE 32
++#define QXL_CURSOR_RING_SIZE 32
++#define QXL_RELEASE_RING_SIZE 8
++
+ int
+ qxl_garbage_collect (qxl_screen_t *qxl)
+ {
Summary: X.org video driver for QXL virtual GPU
Summary(pl.UTF-8): Sterownik obrazu X.org dla wirtualnych procesorów graficznych QXL
Name: xorg-driver-video-qxl
-Version: 0.0.13
+Version: 0.0.14
Release: 1
License: MIT
Group: X11/Applications
Source0: http://xorg.freedesktop.org/releases/individual/driver/xf86-video-qxl-%{version}.tar.bz2
-# Source0-md5: c1f177a26ed32f48f68158bf92439ede
+# Source0-md5: 3e1098302cc2efc7950322d9341537f4
+# TODO: drop this patch after spice-protocol > 0.8.0 release
+Patch0: %{name}-spice.patch
URL: http://xorg.freedesktop.org/
BuildRequires: autoconf >= 2.60
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig >= 1:0.19
BuildRequires: rpmbuild(macros) >= 1.389
+BuildRequires: spice-protocol >= 0.7.0
BuildRequires: xorg-lib-libpciaccess-devel >= 0.10.0
BuildRequires: xorg-proto-fontsproto-devel
BuildRequires: xorg-proto-randrproto-devel
%prep
%setup -q -n xf86-video-qxl-%{version}
+%patch0 -p1
%build
%{__libtoolize}