Accepting request 1120584 from home:mbjoerkelund:branches:devel:languages:lua

This revision fix the luarocks-admin link, as it was previously pointing to luarocks instead of luarocks-admin, and thus not working properly.
The luarocks-admin CLI has only a few commands such as "make-manifest", and these are not available in the default luarocks CLI. These commands may be required when building a new package and since "luarocks make-manifest" errors, it would not work.

OBS-URL: https://build.opensuse.org/request/show/1120584
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luarocks?expand=0&rev=32
This commit is contained in:
Matej Cepl 2023-10-26 14:59:24 +00:00 committed by Git OBS Bridge
parent 40d4f1e403
commit 853e3d1f10
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Oct 26 12:56:30 UTC 2023 - Marcos Bjoerkelund <marcos.bjoerkelund@suse.com>
- Fix luarocks-admin link, previously pointing to luarocks
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Nov 23 10:33:53 UTC 2022 - Michal Suchanek <msuchanek@suse.com> Wed Nov 23 10:33:53 UTC 2022 - Michal Suchanek <msuchanek@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package lua-luarocks # spec file
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2023 SUSE LLC
# Copyright (c) 2012 Togan Muftuoglu toganm@opensuse.org # Copyright (c) 2012 Togan Muftuoglu toganm@opensuse.org
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
@ -39,7 +39,7 @@ Requires: openssl
Requires: unzip Requires: unzip
Requires: zip Requires: zip
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun): update-alternatives Requires(postun):update-alternatives
BuildArch: noarch BuildArch: noarch
%lua_provides %lua_provides
%if "%{flavor}" == "" %if "%{flavor}" == ""
@ -85,7 +85,7 @@ mkdir -p %{buildroot}%{luarocks_treedir}
%post %post
%{_sbindir}/update-alternatives --install %{_bindir}/luarocks luarocks %{_bindir}/luarocks-%{lua_version} %{lua_value} \ %{_sbindir}/update-alternatives --install %{_bindir}/luarocks luarocks %{_bindir}/luarocks-%{lua_version} %{lua_value} \
--slave %{_bindir}/luarocks-admin luarocks-admin %{_bindir}/luarocks-%{lua_version} --slave %{_bindir}/luarocks-admin luarocks-admin %{_bindir}/luarocks-admin-%{lua_version}
%postun %postun
if [ "$1" = 0 ] ; then if [ "$1" = 0 ] ; then