forked from pool/lua-penlight
- Add lua54.patch adding compatiblity with Lua 5.4
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-penlight?expand=0&rev=9
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 7 20:02:42 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Add lua54.patch adding compatiblity with Lua 5.4
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 6 19:07:38 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
11
lua54.patch
Normal file
11
lua54.patch
Normal file
@@ -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', '')
|
Reference in New Issue
Block a user