disable gpm integration for RHEL 10+

Resolves: RHEL-23701
This commit is contained in:
Lukáš Zaoral 2024-02-01 17:08:22 +01:00
parent 384573d99d
commit 8df9bf4ae5
No known key found for this signature in database
GPG Key ID: 39157506DD67752D

View File

@ -1,7 +1,13 @@
%if 0%{?rhel} >= 10 || 0%{?rescue}
%bcond_with gpm
%else
%bcond_without gpm
%endif
Name: elinks Name: elinks
Summary: A text-mode Web browser Summary: A text-mode Web browser
Version: 0.17.0 Version: 0.17.0
Release: 3%{?dist} Release: 4%{?dist}
License: GPL-2.0-only License: GPL-2.0-only
URL: https://github.com/rkd77/elinks URL: https://github.com/rkd77/elinks
Source: https://github.com/rkd77/elinks/releases/download/v%{version}/elinks-%{version}.tar.xz Source: https://github.com/rkd77/elinks/releases/download/v%{version}/elinks-%{version}.tar.xz
@ -12,7 +18,9 @@ BuildRequires: bzip2-devel
BuildRequires: expat-devel BuildRequires: expat-devel
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: gettext BuildRequires: gettext
%if %{with gpm}
BuildRequires: gpm-devel BuildRequires: gpm-devel
%endif
BuildRequires: krb5-devel BuildRequires: krb5-devel
BuildRequires: libidn2-devel BuildRequires: libidn2-devel
BuildRequires: lua-devel BuildRequires: lua-devel
@ -70,12 +78,14 @@ export CFLAGS="$RPM_OPT_FLAGS $(getconf LFS_CFLAGS) -D_GNU_SOURCE"
# make the code build with lua-5.4.x # make the code build with lua-5.4.x
CFLAGS="$CFLAGS -DLUA_COMPAT_5_3" CFLAGS="$CFLAGS -DLUA_COMPAT_5_3"
%configure %{?rescue:--without-gpm} \ %configure \
--enable-256-colors \ --enable-256-colors \
--enable-bittorrent \ --enable-bittorrent \
--with-gssapi \ --with-gssapi \
--with-lua \ --with-lua \
--with-openssl \ --with-openssl \
%{?with_gpm:--with-gpm} \
%{!?with_gpm:--without-gpm} \
--without-gnutls \ --without-gnutls \
--without-spidermonkey \ --without-spidermonkey \
--without-x --without-x
@ -126,6 +136,9 @@ exit 0
%{_mandir}/man5/* %{_mandir}/man5/*
%changelog %changelog
* Thu Feb 01 2024 Lukáš Zaoral <lzaoral@redhat.com> - 0.17.0-4
- disable gpm integration for RHEL 10 (RHEL-23701)
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.0-3 * Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild