mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
spec: sanlock 3.7 with version >fc27 and >rh7.4
Decode minor version for rhel.
This commit is contained in:
parent
485a1961e8
commit
4ca9d478d4
@ -82,6 +82,11 @@ fi \
|
|||||||
: \
|
: \
|
||||||
%%{nil}
|
%%{nil}
|
||||||
|
|
||||||
|
# Resolve RHEL minor version from redhat-release
|
||||||
|
%define rhel_minor_version %(rhel_version_file="/etc/redhat-release";
|
||||||
|
if [ -f $rhel_version_file ]; then cat $rhel_version_file |
|
||||||
|
cut -f2 -d. | cut -f1 -d' '; else echo 0; fi)
|
||||||
|
|
||||||
#############################################################
|
#############################################################
|
||||||
#
|
#
|
||||||
# Disable event_activation when creating packages for system
|
# Disable event_activation when creating packages for system
|
||||||
|
@ -60,11 +60,14 @@
|
|||||||
%global enable_editline 0
|
%global enable_editline 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{fedora} >= 24 || %{rhel} >= 7
|
%if %{fedora} >= 27 || %{rhel} >= 7
|
||||||
%service lvmlockd 1
|
%service lvmlockd 1
|
||||||
|
# For RH7 require 7.4 for sanlock
|
||||||
|
%if %{rhel} != 7 || 0%{?rhel_minor_version} > 4
|
||||||
|
%global enable_lvmlockd_sanlock 1
|
||||||
|
%endif
|
||||||
%global sanlock_version 3.7.0-1
|
%global sanlock_version 3.7.0-1
|
||||||
%global enable_lvmlockd_dlm 1
|
%global enable_lvmlockd_dlm 1
|
||||||
%global enable_lvmlockd_sanlock 1
|
|
||||||
# FIXME: Check these conditions against RHEL builds!
|
# FIXME: Check these conditions against RHEL builds!
|
||||||
%if %{rhel}
|
%if %{rhel}
|
||||||
%ifnarch i686 x86_64 s390x
|
%ifnarch i686 x86_64 s390x
|
||||||
|
Loading…
Reference in New Issue
Block a user