forked from pool/lua-macros
Accepting request 1312655 from devel:languages:lua
- Rewrite %luarocks_install to use a shell script install-lua-rock.sh, which is packaged as well. OBS-URL: https://build.opensuse.org/request/show/1312655 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua-macros?expand=0&rev=14
This commit is contained in:
@@ -97,7 +97,4 @@ luarocks --lua-version "%{lua_version}" make --deps-mode none --pack-binary-rock
|
||||
%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' --
|
||||
%{_rpmconfigdir}/install-lua-rock.sh "%{lua_version}" "%{buildroot}%{_prefix}" "%{buildroot}%{luarocks_treedir}/%{mod_name}"
|
||||
|
||||
Reference in New Issue
Block a user