diff --git a/lua-penlight.changes b/lua-penlight.changes index 7dc2723..088321a 100644 --- a/lua-penlight.changes +++ b/lua-penlight.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jul 7 20:02:42 UTC 2020 - Matej Cepl + +- Add lua54.patch adding compatiblity with Lua 5.4 + ------------------------------------------------------------------- Mon Jul 6 19:07:38 UTC 2020 - Matej Cepl diff --git a/lua-penlight.spec b/lua-penlight.spec index 14c7c3e..ccd3644 100644 --- a/lua-penlight.spec +++ b/lua-penlight.spec @@ -29,6 +29,9 @@ License: MIT Group: Development/Languages/Other URL: http://stevedonovan.github.com/Penlight Source: https://github.com/stevedonovan/Penlight/archive/%{version}.tar.gz#/Penlight-%{version}.tar.gz +# PATCH-{FIX|FEATURE}-{OPENSUSE|SLE|UPSTREAM} name-of-file.patch bsc#[0-9]+ mcepl@suse.com +# this patch makes things totally awesome +Patch0: lua54.patch BuildRequires: %{flavor}-devel BuildRequires: %{flavor}-ldoc BuildRequires: %{flavor}-luafilesystem @@ -63,6 +66,7 @@ Documentation for the package %{name} %prep %setup -q -n Penlight-%{version} +%autopatch -p1 %build diff --git a/lua54.patch b/lua54.patch new file mode 100644 index 0000000..1f975a7 --- /dev/null +++ b/lua54.patch @@ -0,0 +1,11 @@ +--- a/tests/lua/mod52.lua ++++ b/tests/lua/mod52.lua +@@ -12,7 +12,7 @@ function answer () + -- so define it as a local up above, or use utils.import(_G). + test.assertraise(function() + print 'hello' +- end,(LUA_VERSION~="Lua 5.3") and "attempt to call global 'print'" or "attempt to call a nil value") ++ end,(LUA_VERSION~="Lua 5.3" and LUA_VERSION~="Lua 5.4") and "attempt to call global 'print'" or "attempt to call a nil value") + + -- but all the Penlight modules are available + return pretty.write(utils.split '10 20 30', '')