From: Elan Ruusamäe Date: Fri, 6 Nov 2020 14:27:23 +0000 (+0200) Subject: Rename bcond to prefer_lua, fix for x32 X-Git-Tag: auto/th/neovim-0.3.8-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=1b20afad447fdd4c4282b1737cc18196b50ce84b;hp=58461eb4d0e5b6bff6a66a83d07e84ad69b82e33;p=packages%2Fneovim.git Rename bcond to prefer_lua, fix for x32 luajit not available on x32 --- 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 \