diff --git a/lua-mediator_lua.changes b/lua-mediator_lua.changes index 506fe0e..eb37f13 100644 --- a/lua-mediator_lua.changes +++ b/lua-mediator_lua.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 18 16:00:44 UTC 2021 - Callum Farmer + +- Use %lua_provides macro for default lua versioning + ------------------------------------------------------------------- Mon Jul 6 19:07:03 UTC 2020 - Matej Cepl diff --git a/lua-mediator_lua.spec b/lua-mediator_lua.spec index 39ef56a..bae4b4b 100644 --- a/lua-mediator_lua.spec +++ b/lua-mediator_lua.spec @@ -29,15 +29,12 @@ Source: https://github.com/Olivine-Labs/mediator_lua/archive/v%{upversio BuildRequires: %{flavor}-devel Requires: %{flavor} BuildArch: noarch -%if "%{flavor}" == "lua53" -Provides: lua-mediator_lua = %{version} -Obsoletes: lua-mediator_lua < %{version} -%endif +%lua_provides %if "%{flavor}" == "" -Name: lua-mediator_lua +Name: lua-%{mod_name} ExclusiveArch: do_not_build %else -Name: %{flavor}-mediator_lua +Name: %{flavor}-%{mod_name} %endif %description