From e32e9bb47c64fb2833c0270a964d69b59c29ddbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= Date: Mon, 29 May 2023 20:30:08 +0200 Subject: [PATCH] Add testing patch from https://github.com/neovim/neovim/pull/23818 --- neovim.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/neovim.spec b/neovim.spec index 590358f..4936306 100644 --- a/neovim.spec +++ b/neovim.spec @@ -45,7 +45,7 @@ Requires: python3-neovim %bcond_with luajit %endif Name: neovim -Version: 0.9.0+git.1685321092.9dd48f783 +Version: 0.9.0+git.1685369641.2028d1e2b Release: 0 Summary: Vim-fork focused on extensibility and agility License: Apache-2.0 AND Vim @@ -59,6 +59,9 @@ Source3: suse-spec-template # we need /usr/bin/luajit. Fake it. Source10: lj-busted.sh Source99: neovim-rpmlintrc +# PATCH-FIX-UPSTREAM 23818.patch gh#neovim/neovim#23814 mcepl@suse.com +# this patch makes things totally awesome +Patch0: 23818.patch BuildRequires: desktop-file-utils BuildRequires: fdupes BuildRequires: filesystem @@ -93,6 +96,8 @@ Recommends: xsel BuildRequires: lua-macros BuildRequires: lua51-lpeg BuildRequires: lua51-bit32 +BuildRequires: lua51-coxpcall +BuildRequires: lua51-luacheck BuildRequires: lua51-luarocks BuildRequires: lua51-luv BuildRequires: libluv-devel @@ -157,6 +162,8 @@ parts of Vim, without compromise, and more. ( cd %{_sourcedir}/neovim ) cp -a %{_sourcedir}/neovim/* . +%autopatch -p1 + install -p -m 0755 %{SOURCE10} . # Remove __DATE__ and __TIME__. @@ -233,7 +240,7 @@ export NO_BRP_CHECK_RPATH=true HOSTNAME=OBS USERNAME=OBS pushd build -%make_build USE_BUNDLED_LUAROCKS=OFF BUSTED_PRG=$(readlink -f ../lj-busted.sh) test +%make_build BUSTED_PRG=$(readlink -f ../lj-busted.sh) test popd %endif %endif