Fix rpm build with sanlock and without QEmu

The qemu-sanlock.conf file is not installed in this case
This commit is contained in:
Daniel Veillard 2011-07-11 15:57:01 +08:00
parent 1428029738
commit 920ffe1b0a

View File

@ -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