Accepting request 875343 from home:gmbr3:Lua

add -e option

OBS-URL: https://build.opensuse.org/request/show/875343
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-macros?expand=0&rev=11
This commit is contained in:
Matej Cepl 2021-02-26 14:30:52 +00:00 committed by Git OBS Bridge
parent 7d02c2c64e
commit 11ca6a8588

View File

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