All of lore.kernel.org
 help / color / mirror / Atom feed
* main - spec: Use libedit for newer distributions
@ 2022-08-09 14:18 Marian Csontos
  0 siblings, 0 replies; only message in thread
From: Marian Csontos @ 2022-08-09 14:18 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=9cdd258646d5d9da534568a61133e76f3d5548d7
Commit:        9cdd258646d5d9da534568a61133e76f3d5548d7
Parent:        2fa99164938d11221fe6afc30af4f016bbc02450
Author:        Marian Csontos <mcsontos@redhat.com>
AuthorDate:    Wed Jul 27 18:02:01 2022 +0200
Committer:     Marian Csontos <mcsontos@redhat.com>
CommitterDate: Tue Aug 9 16:17:36 2022 +0200

spec: Use libedit for newer distributions

---
 spec/build.inc  |  2 ++
 spec/source.inc | 13 +++++++++++++
 2 files changed, 15 insertions(+)

diff --git a/spec/build.inc b/spec/build.inc
index 8067e58d0..e57ecf958 100644
--- a/spec/build.inc
+++ b/spec/build.inc
@@ -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
 
diff --git a/spec/source.inc b/spec/source.inc
index d608debab..3e7573025 100644
--- a/spec/source.inc
+++ b/spec/source.inc
@@ -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
 


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-08-09 14:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-09 14:18 main - spec: Use libedit for newer distributions Marian Csontos

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.