From 227278cbe9d21efb09b25ed4d6a38bfb8aea46da Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Feb 05 2024 13:23:55 +0000 Subject: enable building without GPM support - build with GPM in Fedora --- diff --git a/vim.spec b/vim.spec index e86ea9c..adf6a9c 100644 --- a/vim.spec +++ b/vim.spec @@ -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="" --enable-cscope \ --with-modified-by="" \ +%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="" \ +%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 - 2:9.1.076-2 +- enable building without GPM support - build with GPM in Fedora + * Mon Feb 05 2024 Zdenek Dohnal - 2:9.1.076-1 - patchlevel 076