  %clean
  rm -fr %{buildroot}
  
-@@ -1786,6 +1795,9 @@ if [ $1 = 0 ]; then
-     rm -f /var/lib/libvirt/libvirt-guests
- fi
+@@ -1311,6 +1320,9 @@ fi
+ /sbin/chkconfig --add virtlogd
+ /sbin/chkconfig --add virtlockd
  %endif
 +if [ -d "/usr/coverage/BUILD/libvirt-%{version}" ]; then
 +    mv -f /usr/coverage/BUILD/libvirt-%{version} /usr/coverage/BUILD/libvirt-%{version}-bk
 +fi
  
- %post client
- 
-@@ -2156,6 +2168,7 @@ exit 0
+ %preun daemon
+ %if %{with_systemd}
+@@ -1756,6 +1768,7 @@ exit 0
  %{_mandir}/man1/virt-host-validate.1*
  %{_bindir}/virsh
  %{_bindir}/virt-xml-validate

From f6d78389d081ea4ac8c688ec387e1fd2c12a5c64 Mon Sep 17 00:00:00 2001
From: Luyao Huang <lhuang@redhat.com>
Date: Fri, 4 Nov 2016 12:01:11 +0800
Subject: [PATCH] Virtcov for v1.2.8~

Signed-off-by: Luyao Huang <lhuang@redhat.com>
---
 Makefile.am       |   2 +-
 libvirt.spec.in   |  15 +++-
 tools/Makefile.am |   8 ++-
 tools/virtcov.in  | 208 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 229 insertions(+), 4 deletions(-)
 create mode 100644 tools/virtcov.in

diff --git a/Makefile.am b/Makefile.am
index 4aafe94..1507dc7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -71,7 +71,7 @@ $(top_srcdir)/HACKING: $(top_srcdir)/docs/hacking1.xsl \
 	   > $@-t && mv $@-t $@ ; fi;
 
 rpm: clean

 License: LGPLv2+
 Group: Development/Libraries
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
@@ -459,6 +459,9 @@ Requires: numad
 Requires: dbus
 # For uid creation during pre
 Requires(pre): shadow-utils
