forked from pool/lua-lpeg
Accepting request 1037590 from devel:languages:lua
Forwarded request #1037542 from michals - Fix missing dependency on lua-macros (boo#1205612) - Run test with correct lua version OBS-URL: https://build.opensuse.org/request/show/1037590 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua-lpeg?expand=0&rev=7
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 23 10:23:38 UTC 2022 - Michal Suchanek <msuchanek@suse.com>
|
||||
|
||||
- Fix missing dependency on lua-macros (boo#1205612)
|
||||
- Run test with correct lua version
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 31 17:08:45 UTC 2022 - Gordon Leung <pirateclip@protonmail.com>
|
||||
|
||||
|
@@ -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}
|
||||
|
Reference in New Issue
Block a user