-From f6d78389d081ea4ac8c688ec387e1fd2c12a5c64 Mon Sep 17 00:00:00 2001
+From 417909d31c4afd7b84d6f65e9c50cd302e9d6711 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~
+Date: Fri, 4 Nov 2016 11:52:16 +0800
+Subject: [PATCH] Virtcov for v1.3.5~
 
 Signed-off-by: Luyao Huang <lhuang@redhat.com>
 ---
  Makefile.am       |   2 +-
  libvirt.spec.in   |  15 +++-
- tools/Makefile.am |   8 ++-
+ tools/Makefile.am |   7 +-
  tools/virtcov.in  | 208 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
- 4 files changed, 229 insertions(+), 4 deletions(-)
+ 4 files changed, 229 insertions(+), 3 deletions(-)
  create mode 100644 tools/virtcov.in
 
 diff --git a/Makefile.am b/Makefile.am
-index 4aafe94..1507dc7 100644
+index da07e6c..00a45cc 100644
 --- a/Makefile.am
 +++ b/Makefile.am
-@@ -71,7 +71,7 @@ $(top_srcdir)/HACKING: $(top_srcdir)/docs/hacking1.xsl \
+@@ -63,7 +63,7 @@ $(top_srcdir)/HACKING: $(top_srcdir)/docs/hacking1.xsl \
  	   > $@-t && mv $@-t $@ ; fi;
  
  rpm: clean

 check-local: all tests
 
diff --git a/libvirt.spec.in b/libvirt.spec.in
index 4dc801b..6998aea 100644
--- a/libvirt.spec.in
+++ b/libvirt.spec.in
@@ -363,7 +363,7 @@
 Summary: Library providing a simple virtualization API
 Name: libvirt
 Version: @VERSION@

 %clean
 rm -fr %{buildroot}
 
@@ -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
 
 %preun daemon
 %if %{with_systemd}
@@ -1756,6 +1768,7 @@ exit 0
 %{_mandir}/man1/virt-host-validate.1*
 %{_bindir}/virsh
 %{_bindir}/virt-xml-validate
