  %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

 %{_bindir}/virt-host-validate
 %{_libdir}/libvirt.so.*
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 93d642d..0b051ad 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -53,7 +53,7 @@ EXTRA_DIST = \
 	virsh-network.c virsh-nodedev.c			\
 	virsh-nwfilter.c virsh-pool.c			\
 	virsh-secret.c virsh-snapshot.c			\
-	virsh-volume.c
+	virsh-volume.c virtcov.in
 
 
 
@@ -62,7 +62,7 @@ DISTCLEANFILES =
 confdir = $(sysconfdir)/libvirt
 conf_DATA =
 
-bin_SCRIPTS = virt-xml-validate virt-pki-validate
+bin_SCRIPTS = virt-xml-validate virt-pki-validate virtcov
 bin_PROGRAMS = virsh virt-host-validate
 libexec_SCRIPTS = libvirt-guests.sh
 
@@ -103,6 +103,10 @@ virt-xml-validate.1: virt-xml-validate.in $(top_srcdir)/configure.ac
 	    && if grep 'POD ERROR' $(srcdir)/$@ ; then \
 		rm $(srcdir)/$@; exit 1; fi
 
+virtcov: virtcov.in Makefile
+	$(AM_V_GEN)sed -e 's|[@]VERSION@|$(VERSION)|g' \

 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
