diff --git a/neovim.changes b/neovim.changes index 16f5467..61c806a 100644 --- a/neovim.changes +++ b/neovim.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Apr 8 10:06:46 UTC 2021 - Guillaume GARDET + +- Build against lua 5.3 (for non-luajit) for Leap/SLE since + lua 5.4 is in Tumbleweed only + ------------------------------------------------------------------- Tue Jan 12 09:36:47 UTC 2021 - Guillaume GARDET diff --git a/neovim.spec b/neovim.spec index 7e48780..a84b365 100644 --- a/neovim.spec +++ b/neovim.spec @@ -26,8 +26,13 @@ %define luaver 5.1 %define luaver_nopoint 51 %else +%if 0%{?suse_version} > 1500 %define luaver 5.4 %define luaver_nopoint 54 +%else +%define luaver 5.3 +%define luaver_nopoint 53 +%endif %endif %define luv_min_ver 1.30.0 @@ -88,9 +93,11 @@ BuildRequires: lua%{luaver_nopoint}-luv-devel >= %{luv_min_ver} BuildRequires: lua%{luaver_nopoint}-mpack Requires: lua%{luaver_nopoint}-luv >= %{luv_min_ver} # built-in bit32 removed in Lua 5.4 +%if %{luaver_nopoint} > 53 BuildRequires: lua%{luaver_nopoint}-compat-5.3 Requires: lua%{luaver_nopoint}-compat-5.3 %endif +%endif BuildRequires: make BuildRequires: msgpack-devel BuildRequires: pkgconfig