Accepting request 875485 from devel:languages:lua

OBS-URL: https://build.opensuse.org/request/show/875485
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua-macros?expand=0&rev=4
This commit is contained in:
Dominique Leuenberger 2021-03-10 07:47:48 +00:00 committed by Git OBS Bridge
commit 2d86a3db47
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Feb 26 15:54:56 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
- Add -e (exclude) option
-------------------------------------------------------------------
Wed Jan 27 15:51:37 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>

View File

@ -13,9 +13,15 @@
%lua_incdir %{_includedir}/lua%{lua_version}
# Lua default version
%lua_provides \
# -e: Exclude lua prefix
%lua_provides(e) \
%if "%{flavor}" == "lua54" \
%if 0%{?-e:1} \
Provides: %{mod_name} = %{version}-%{release} \
Obsoletes: %{mod_name} < %{version}-%{release} \
%else \
Provides: lua-%{mod_name} = %{version}-%{release} \
Obsoletes: lua-%{mod_name} < %{version}-%{release} \
%endif \
%endif \
%{nil}