%define mainturl stable_updates/
%endif
Source: http://libvirt.org/sources/%{?mainturl}libvirt-%{version}.tar.gz
+Patch1: virgetlasterror.patch
%if %{with_libvirtd}
Requires: libvirt-daemon = %{version}-%{release}
%prep
%setup -q
+%patch1 -p1
%build
%if ! %{with_xen}
--- /dev/null
+--- a/python/libvirt-override.py 2013-04-13 09:47:03.000000000 +0200
++++ b/python/libvirt-override.py 2013-04-13 09:49:07.000000000 +0200
+@@ -20,7 +20,7 @@
+
+ # Never call virConnGetLastError().
+ # virGetLastError() is now thread local
+- err = virGetLastError()
++ err = libvirtmod.virGetLastError()
+ if err is None:
+ msg = defmsg
+ else: