From 11ca6a8588ded9448a1029306567cedcd0fa5f9ce1c99b7dac79b28133872257 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 26 Feb 2021 14:30:52 +0000 Subject: [PATCH] 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 --- macros.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/macros.lua b/macros.lua index 90a55ef..3696f28 100644 --- a/macros.lua +++ b/macros.lua @@ -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}