From 7d02c2c64e312e70af0115f77a6cd5c22f53cfc211144ffda7cbc22625edcc53 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 28 Jan 2021 14:21:31 +0000 Subject: [PATCH] Accepting request 867226 from home:gmbr3:Lua - Add lua_provides macro for default lua naming OBS-URL: https://build.opensuse.org/request/show/867226 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-macros?expand=0&rev=9 --- lua-macros.changes | 5 +++++ macros.lua | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/lua-macros.changes b/lua-macros.changes index 012fffe..644c5e3 100644 --- a/lua-macros.changes +++ b/lua-macros.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jan 27 15:51:37 UTC 2021 - Callum Farmer + +- Add lua_provides macro for default lua naming + ------------------------------------------------------------------- Sun Apr 12 13:22:39 UTC 2020 - Matej Cepl diff --git a/macros.lua b/macros.lua index 124b8ed..90a55ef 100644 --- a/macros.lua +++ b/macros.lua @@ -11,3 +11,11 @@ # lua includes folder %lua_incdir %{_includedir}/lua%{lua_version} + +# Lua default version +%lua_provides \ +%if "%{flavor}" == "lua54" \ +Provides: lua-%{mod_name} = %{version}-%{release} \ +Obsoletes: lua-%{mod_name} < %{version}-%{release} \ +%endif \ +%{nil}