From 920ffe1b0a92fff3e9933e5190a389137c530214 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Mon, 11 Jul 2011 15:57:01 +0800 Subject: [PATCH] Fix rpm build with sanlock and without QEmu The qemu-sanlock.conf file is not installed in this case --- libvirt.spec.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libvirt.spec.in b/libvirt.spec.in index bf220f3aa3..230237e977 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -1031,7 +1031,9 @@ fi %if %{with_sanlock} %files lock-sanlock %defattr(-, root, root) +%if %{with_qemu} %config(noreplace) %{_sysconfdir}/libvirt/qemu-sanlock.conf +%endif %attr(0755, root, root) %{_libdir}/libvirt/lock-driver/sanlock.so %{_datadir}/augeas/lenses/libvirt_sanlock.aug %{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug