From 25f0e59ea0192a325277b3f65471ab15271cc43d Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Tue, 23 Feb 2016 11:59:45 +0100 Subject: [PATCH] Remove Requires: sanlock-lib for lvm2-lockd subpackage if sanlock not compiled. --- lvm2.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lvm2.spec b/lvm2.spec index 1fb1749..aae00e6 100644 --- a/lvm2.spec +++ b/lvm2.spec @@ -57,7 +57,7 @@ Summary: Userland logical volume management tools Name: lvm2 Version: 2.02.143 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2 Group: System Environment/Base URL: http://sources.redhat.com/lvm2 @@ -494,7 +494,9 @@ logical volumes, physical volumes, and volume groups. Summary: LVM locking daemon Group: System Environment/Base Requires: lvm2 = %{version}-%{release} +%if %{enable_lockd_sanlock} Requires: sanlock-lib >= %{sanlock_version} +%endif Requires: dlm >= %{dlm_version} Requires(post): systemd-units >= %{systemd_version} Requires(preun): systemd-units >= %{systemd_version} @@ -838,6 +840,9 @@ the device-mapper event library. %{_libdir}/pkgconfig/devmapper-event.pc %changelog +* Tue Feb 23 2016 Peter Rajnoha - 2.02.143-3 +- Remove Requires: sanlock-lib for lvm2-lockd subpackage if sanlock not compiled. + * Tue Feb 23 2016 Peter Rajnoha - 2.02.143-2 - Add Requires: python3-gobject dependency for lvm2-dbusd subpackage. - Build lvm2-lockd with sanlock support only on x86_64, arch64 and power64 arch.