diff --git a/spec/source.inc b/spec/source.inc index bde2703d2..2ca659b52 100644 --- a/spec/source.inc +++ b/spec/source.inc @@ -63,11 +63,13 @@ %if %{fedora} >= 27 || %{rhel} >= 7 %service lvmlockd 1 # For RH7 require 7.4 for sanlock - %if %{rhel} != 7 || 0%{?rhel_minor_version} > 4 + %if %{rhel} > 7 || 0%{?rhel_minor_version} > 4 %global enable_lvmlockd_sanlock 1 %endif %global sanlock_version 3.7.0-1 - %global enable_lvmlockd_dlm 1 + %if %{rhel} <= 9 + %global enable_lvmlockd_dlm 1 + %endif # FIXME: Check these conditions against RHEL builds! %if %{rhel} %ifnarch i686 x86_64 s390x