From: Daniel Veillard Date: Mon, 11 Jul 2011 07:57:01 +0000 (+0800) Subject: Fix rpm build with sanlock and without QEmu X-Git-Tag: v0.9.4-rc1~260 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=920ffe1b0a92fff3e9933e5190a389137c530214;p=thirdparty%2Flibvirt.git Fix rpm build with sanlock and without QEmu The qemu-sanlock.conf file is not installed in this case --- 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