Accepting request 1120604 from devel:languages:lua

OBS-URL: https://build.opensuse.org/request/show/1120604
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua-luarocks?expand=0&rev=14
This commit is contained in:
Ana Guerrero 2023-10-27 20:27:37 +00:00 committed by Git OBS Bridge
commit 8636bbc67c
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>

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
#
# All modifications and additions to the file contributed by third parties
@ -39,7 +39,7 @@ Requires: openssl
Requires: unzip
Requires: zip
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
%lua_provides
%if "%{flavor}" == ""
@ -85,7 +85,7 @@ mkdir -p %{buildroot}%{luarocks_treedir}
%post
%{_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
if [ "$1" = 0 ] ; then