3
0
forked from pool/lua-macros

Accepting request 1000926 from home:gmbr3:Lua

- Add LuaRocks macros:
  * %luarocks_build
  * %luarocks_install
  * %luarocks_treedir

OBS-URL: https://build.opensuse.org/request/show/1000926
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-macros?expand=0&rev=22
This commit is contained in:
Callum Farmer 2022-09-02 15:13:59 +00:00 committed by Git OBS Bridge
parent 98504c2468
commit 21b379c736
2 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Sep 2 15:13:06 UTC 2022 - Callum Farmer <gmbr3@opensuse.org>
- Add LuaRocks macros:
* %luarocks_build
* %luarocks_install
* %luarocks_treedir
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Aug 28 09:42:55 UTC 2021 - Callum Farmer <gmbr3@opensuse.org> Sat Aug 28 09:42:55 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>

View File

@ -39,3 +39,14 @@ Obsoletes: lua-%{mod_name} < %{version}-%{release} \
%endif \ %endif \
%endif \ %endif \
%{nil} %{nil}
# LuaRocks
%luarocks_build \
luarocks --lua-version "%{lua_version}" \\\
make --pack-binary-rock --deps-mode none
%luarocks_install \
luarocks --lua-version="%{lua_version}" --tree="%{buildroot}%{_prefix}" \\\
install --deps-mode=none --no-manifest
%luarocks_treedir %{_prefix}/lib/luarocks/rocks-%{lua_version}