forked from pool/lua-macros
Fix %luarocks_* macros.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 14 23:16:09 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Fix %luarocks_* macros.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Oct 13 20:24:01 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
Mon Oct 13 20:24:01 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
|||||||
14
macros.lua
14
macros.lua
@@ -89,11 +89,15 @@ Obsoletes: lua-%{mod_name} < %{version}-%{release}
|
|||||||
%endif
|
%endif
|
||||||
]])
|
]])
|
||||||
}
|
}
|
||||||
|
|
||||||
# LuaRocks
|
# LuaRocks
|
||||||
%luarocks_build \
|
%luarocks_build \
|
||||||
luarocks --lua-version "%{lua_version}" \\\
|
luarocks --lua-version "%{lua_version}" make --deps-mode none --pack-binary-rock
|
||||||
make --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}
|
%luarocks_treedir %{_prefix}/lib/luarocks/rocks-%{lua_version}
|
||||||
|
|
||||||
|
%luarocks_install \
|
||||||
|
/bin/sh -c 'luarocks --lua-version="%{lua_version}" --tree="%{buildroot}%{_prefix}" install --deps-mode=none --no-manifest "$@" && \
|
||||||
|
source_dir="%{buildroot}%{luarocks_treedir}/%{mod_name}/%{rock_version}" && \
|
||||||
|
[ -d "${source_dir}" ] && [ "$(ls -A "${source_dir}" | wc -l)" -gt 0 ] && \
|
||||||
|
mv -v "${source_dir}" __rocktree' --
|
||||||
|
|||||||
Reference in New Issue
Block a user