From 4671ebc70e3750add017181d41825dc18835a66a7f99647ec2f7040374636842 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 23 Nov 2022 13:13:31 +0000 Subject: [PATCH] Accepting request 1037542 from Kernel:tools - Fix missing dependency on lua-macros (boo#1205612) - Run test with correct lua version OBS-URL: https://build.opensuse.org/request/show/1037542 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-lpeg?expand=0&rev=19 --- lua-lpeg.changes | 6 ++++++ lua-lpeg.spec | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lua-lpeg.changes b/lua-lpeg.changes index cb9e198..f31d0ba 100644 --- a/lua-lpeg.changes +++ b/lua-lpeg.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Nov 23 10:23:38 UTC 2022 - Michal Suchanek + +- Fix missing dependency on lua-macros (boo#1205612) +- Run test with correct lua version + ------------------------------------------------------------------- Wed Aug 31 17:08:45 UTC 2022 - Gordon Leung diff --git a/lua-lpeg.spec b/lua-lpeg.spec index 8d63bbe..8d1831c 100644 --- a/lua-lpeg.spec +++ b/lua-lpeg.spec @@ -27,6 +27,7 @@ Group: Development/Libraries/Other URL: http://www.inf.puc-rio.br/~roberto/lpeg Source: http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-%{version}.tar.gz BuildRequires: %{flavor}-devel +BuildRequires: lua-macros Requires: %{flavor} %lua_provides %if "%{flavor}" == "" @@ -73,7 +74,10 @@ install lpeg.so %{buildroot}%{lua_archdir} install -Dm 644 re.lua %{buildroot}%{lua_noarchdir} %check -lua test.lua +LUA_PATH='%{_datadir}/lua/%{lua_version}/?.lua' +LUA_PATH="%{buildroot}%{lua_noarchdir}/?/init.lua;${LUA_PATH}" +export LUA_PATH="%{buildroot}%{lua_noarchdir}/?.lua;${LUA_PATH}" +%{_bindir}/lua%{lua_version} test.lua %files %{lua_archdir}