Disable gpm on ELN

gpm is unwanted in RHEL 10:

https://github.com/minimization/content-resolver-input/pull/1084
This commit is contained in:
Yaakov Selkowitz 2024-02-06 13:13:34 -05:00
parent cf16c68635
commit de8c5bea57

12
mc.spec
View File

@ -1,11 +1,12 @@
# NOTE: disabled sftp (needs to be ported to use libssh instead of libssh2) # NOTE: disabled sftp (needs to be ported to use libssh instead of libssh2)
%bcond_without slang %bcond gpm %[!(0%{?rhel} >= 10)]
%bcond slang 1
Summary: User-friendly text console file manager and visual shell Summary: User-friendly text console file manager and visual shell
Name: mc Name: mc
Epoch: 1 Epoch: 1
Version: 4.8.30 Version: 4.8.30
Release: 3%{?dist} Release: 4%{?dist}
License: GPL-3.0-or-later License: GPL-3.0-or-later
URL: https://midnight-commander.org/ URL: https://midnight-commander.org/
VCS: https://github.com/MidnightCommander/mc/ VCS: https://github.com/MidnightCommander/mc/
@ -18,7 +19,9 @@ BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
BuildRequires: gcc BuildRequires: gcc
BuildRequires: gettext-devel BuildRequires: gettext-devel
%if %{with gpm}
BuildRequires: gpm-devel BuildRequires: gpm-devel
%endif
BuildRequires: groff-base BuildRequires: groff-base
BuildRequires: libtool BuildRequires: libtool
BuildRequires: make BuildRequires: make
@ -65,7 +68,7 @@ Midnight Commander s3+ and UC1541 EXTFS backend scripts.
--enable-vfs-ftp \ --enable-vfs-ftp \
--enable-vfs-sfs \ --enable-vfs-sfs \
--enable-vfs-tar \ --enable-vfs-tar \
--with-gpm-mouse \ --with%{!?with_gpm:out}-gpm-mouse \
--with-screen=%[%{?with_slang}?"slang":"ncurses"] \ --with-screen=%[%{?with_slang}?"slang":"ncurses"] \
--with-x \ --with-x \
%{nil} %{nil}
@ -101,6 +104,9 @@ Midnight Commander s3+ and UC1541 EXTFS backend scripts.
%{_libexecdir}/mc/extfs.d/{s3+,uc1541} %{_libexecdir}/mc/extfs.d/{s3+,uc1541}
%changelog %changelog
* Tue Feb 06 2024 Yaakov Selkowitz <yselkowi@redhat.com> - 1:4.8.30-4
- Disable gpm on ELN
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.8.30-3 * Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.8.30-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild