From 1b20afad447fdd4c4282b1737cc18196b50ce84b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 6 Nov 2020 16:27:23 +0200 Subject: [PATCH] Rename bcond to prefer_lua, fix for x32 luajit not available on x32 --- neovim.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/neovim.spec b/neovim.spec index 66c7b5a..7b24fd3 100644 --- a/neovim.spec +++ b/neovim.spec @@ -4,7 +4,11 @@ # https://github.com/neovim/neovim/issues/5576 # # Conditional build: -%bcond_without lua # Prefer Lua over LuaJit +%bcond_with prefer_lua # Prefer Lua over LuaJit + +%ifarch x32 +%define with_prefer_lua 1 +%endif Summary: Vim-fork focused on extensibility and agility Name: neovim @@ -35,7 +39,7 @@ BuildRequires: msgpack-devel >= 1.1.0 BuildRequires: pkgconfig BuildRequires: rpmbuild(macros) >= 1.596 BuildRequires: unibilium-devel -%if %{with lua} +%if %{with prefer_lua} BuildRequires: lua51 BuildRequires: lua51-devel %else @@ -89,6 +93,7 @@ cd .deps cd ../build %cmake \ + -DPREFER_LUA=%{!?with_prefer_lua:OFF}%{?with_prefer_lua:ON} \ -DLUA_PRG=/usr/bin/lua5.1 \ -DENABLE_JEMALLOC=ON \ -DLUAJIT_USE_BUNDLED=OFF \ -- 2.44.0