[packages/vim] - require gcc version that supports specified -std; dropped "ac" support
qboosh
qboosh at pld-linux.org
Tue Feb 17 18:14:22 CET 2026
commit b44da704ae22f0eaddbaf337d5639768fe776a52
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Feb 17 18:14:18 2026 +0100
- require gcc version that supports specified -std; dropped "ac" support
vim.spec | 19 +++----------------
1 file changed, 3 insertions(+), 16 deletions(-)
---
diff --git a/vim.spec b/vim.spec
index 8afb41d..4e7efab 100644
--- a/vim.spec
+++ b/vim.spec
@@ -112,13 +112,9 @@ URL: http://www.vim.org/
BuildRequires: acl-devel
BuildRequires: attr-devel
BuildRequires: autoconf >= 2.50
+# -std=gnu17
+BuildRequires: gcc >= 6:7
BuildRequires: gpm-devel
-%if "%{pld_release}" == "ac"
-%if %{with athena} || %{with x11} || %{with x}
-BuildRequires: XFree86-devel
-%endif
-BuildRequires: gettext-devel
-%else
BuildRequires: gettext-tools
%{?with_athena:BuildRequires: xorg-lib-libXaw-devel}
%if %{with x11} || %{with gui} || %{with x}
@@ -130,7 +126,6 @@ BuildRequires: xorg-lib-libXdmcp-devel
BuildRequires: xorg-lib-libXpm-devel
BuildRequires: xorg-lib-libXt-devel
%endif
-%endif
BuildRequires: grep
%if %{with gtk} || %{with heavy}
BuildRequires: gdk-pixbuf2-devel >= 2.31
@@ -840,11 +835,7 @@ build() {
shift
%configure \
-%if "%{pld_release}" == "ac"
- --with-tlib="ncurses -ltinfo"
-%else
--with-tlib="ncursesw"
-%endif
%{__make} -j1 distclean
# add common options, can override (disable) if needed with args
@@ -860,17 +851,13 @@ build() {
--enable-gpm \
--enable-multibyte \
--enable-nls \
-%if "%{pld_release}" == "ac"
- --with-tlib="ncurses -ltinfo" \
-%else
--with-tlib="ncursesw" \
-%endif
--with-modified-by="PLD Linux Distribution" \
--with-compiledby="PLD Linux Distribution" \
"$@"
%{__make} vim
- mv -f vim bin/$target
+ %{__mv} vim bin/$target
}
%if %{with static}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/vim.git/commitdiff/b44da704ae22f0eaddbaf337d5639768fe776a52
More information about the pld-cvs-commit
mailing list