forked from pool/lua-lpeg
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
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>
|
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
|
URL: http://www.inf.puc-rio.br/~roberto/lpeg
|
||||||
Source: http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-%{version}.tar.gz
|
Source: http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-%{version}.tar.gz
|
||||||
BuildRequires: %{flavor}-devel
|
BuildRequires: %{flavor}-devel
|
||||||
|
BuildRequires: lua-macros
|
||||||
Requires: %{flavor}
|
Requires: %{flavor}
|
||||||
%lua_provides
|
%lua_provides
|
||||||
%if "%{flavor}" == ""
|
%if "%{flavor}" == ""
|
||||||
@@ -73,7 +74,10 @@ install lpeg.so %{buildroot}%{lua_archdir}
|
|||||||
install -Dm 644 re.lua %{buildroot}%{lua_noarchdir}
|
install -Dm 644 re.lua %{buildroot}%{lua_noarchdir}
|
||||||
|
|
||||||
%check
|
%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
|
%files
|
||||||
%{lua_archdir}
|
%{lua_archdir}
|
||||||
|
Reference in New Issue
Block a user