enable building without GPM support - build with GPM in Fedora

This commit is contained in:
Zdenek Dohnal 2024-02-05 14:23:55 +01:00
parent 3dbc59bdc8
commit 227278cbe9

View File

@ -2,9 +2,11 @@
%if 0%{?fedora}
%bcond_without default_editor
%bcond_without gpm
%bcond_without libsodium_crypt
%else
%bcond_with default_editor
%bcond_with gpm
%bcond_with libsodium_crypt
%endif
@ -49,7 +51,7 @@ Summary: The VIM editor
URL: http://www.vim.org/
Name: vim
Version: %{baseversion}.%{patchlevel}
Release: 1%{?dist}
Release: 2%{?dist}
Epoch: 2
# swift.vim contains Apache 2.0 with runtime library exception:
# which is taken as Apache-2.0 WITH Swift-exception - reported to legal as https://gitlab.com/fedora/legal/fedora-license-data/-/issues/188
@ -118,8 +120,10 @@ BuildRequires: gettext
# formats during compilation.
BuildRequires: glibc-gconv-extra
%if %{with gpm}
# for mouse support in console
BuildRequires: gpm-devel
%endif
# for setting ACL on created files
BuildRequires: libacl-devel
@ -473,6 +477,11 @@ mv -f os_unix.h.save os_unix.h
--enable-fips-warning \
--with-compiledby="<bugzilla@redhat.com>" --enable-cscope \
--with-modified-by="<bugzilla@redhat.com>" \
%if %{with gpm}
--enable-gpm \
%else
--disable-gpm \
%endif
%if "%{withnetbeans}" == "1"
--enable-netbeans \
%else
@ -522,6 +531,11 @@ make clean
--with-tlib=ncurses \
--enable-fips-warning \
--with-compiledby="<bugzilla@redhat.com>" \
%if %{with gpm}
--enable-gpm \
%else
--disable-gpm \
%endif
%if "%{withnetbeans}" == "1"
--enable-netbeans \
%else
@ -1035,6 +1049,9 @@ touch %{buildroot}/%{_datadir}/%{name}/vimfiles/doc/tags
%changelog
* Mon Feb 05 2024 Zdenek Dohnal <zdohnal@redhat.com> - 2:9.1.076-2
- enable building without GPM support - build with GPM in Fedora
* Mon Feb 05 2024 Zdenek Dohnal <zdohnal@redhat.com> - 2:9.1.076-1
- patchlevel 076