1
0
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:
Marian Csontos 2022-07-27 18:02:01 +02:00
parent c30881fd95
commit 09fc3a985d
2 changed files with 15 additions and 0 deletions

View File

@ -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

View File

@ -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