diff --git a/ncurses.spec b/ncurses.spec index 01f52f6..9010006 100644 --- a/ncurses.spec +++ b/ncurses.spec @@ -1,7 +1,9 @@ %if 0%{?rhel} >= 10 %bcond_with compat_libs +%bcond_with gpm %else %bcond_without compat_libs +%bcond_without gpm %endif %global revision 20240127 Summary: Ncurses support utilities @@ -17,7 +19,8 @@ Source2: https://invisible-island.net/public/dickey@invisible-island.net-rsa3072 Patch8: ncurses-config.patch Patch9: ncurses-libs.patch Patch11: ncurses-urxvt.patch -BuildRequires: gcc gcc-c++ gpm-devel gnupg2 make pkgconfig +BuildRequires: gcc gcc-c++ gnupg2 make pkgconfig +%{?with_gpm:BuildRequires: gpm-devel} Requires: %{name}-libs%{?_isa} = %{version}-%{release} @@ -144,6 +147,7 @@ common_options="\ --with-termlib=tinfo \ --with-ticlib=tic \ --with-xterm-kbs=DEL \ +%{!?with_gpm:--without-gpm} \ --without-ada" abi5_options="--with-chtype=long"