From: Viktor Mihajlovski Date: Wed, 31 Oct 2012 21:21:06 +0000 (+0100) Subject: build: Fix RPM build for non-x86 platforms X-Git-Tag: v1.0.0~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb0b42d80a6974632bac85fa3a80030f7d9406d6;p=thirdparty%2Flibvirt.git build: Fix RPM build for non-x86 platforms Make the post install script for the lock-sanlock package optional to prevent break on non-x86 platforms. Signed-off-by: Viktor Mihajlovski --- diff --git a/libvirt.spec.in b/libvirt.spec.in index 41d26285b7..f8ede3f690 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -1568,12 +1568,13 @@ fi /bin/systemctl try-restart libvirt-guests.service >/dev/null 2>&1 || : %endif +%if %{with_sanlock} %post lock-sanlock if getent group sanlock > /dev/null ; then chmod 0770 %{_localstatedir}/lib/libvirt/sanlock chown root:sanlock %{_localstatedir}/lib/libvirt/sanlock fi - +%endif %files %defattr(-, root, root)