mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
spec: Use libedit for newer distributions
This commit is contained in:
parent
c30881fd95
commit
09fc3a985d
@ -28,6 +28,8 @@
|
||||
%enableif %{enable_dbusd} dbus-service
|
||||
%enableif %{enable_dbusd} notify-dbus
|
||||
%enableif %{enable_dmfilemapd} dmfilemapd
|
||||
%enableif %{enable_readline} readline
|
||||
%enableif %{enable_editline} editline
|
||||
|
||||
%build
|
||||
|
||||
|
@ -47,6 +47,14 @@
|
||||
%global req_udev udev >= 181-1
|
||||
|
||||
|
||||
%if %{fedora} >= 35 || %{rhel} >= 9
|
||||
%global enable_readline 0
|
||||
%global enable_editline 1
|
||||
%else
|
||||
%global enable_readline 1
|
||||
%global enable_editline 0
|
||||
%endif
|
||||
|
||||
%if %{fedora} >= 24 || %{rhel} >= 7
|
||||
%service lvmlockd 1
|
||||
%global sanlock_version 3.3.0-1
|
||||
@ -154,7 +162,12 @@ Source94: macros.inc
|
||||
|
||||
BuildRequires: libselinux-devel >= 1.30.19-4, libsepol-devel
|
||||
BuildRequires: ncurses-devel
|
||||
%if %{enable_readline}
|
||||
BuildRequires: readline-devel
|
||||
%endif
|
||||
%if %{enable_editline}
|
||||
BuildRequires: libedit-devel
|
||||
%endif
|
||||
BuildRequires: module-init-tools
|
||||
BuildRequires: pkgconfig
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user