diff --git a/lua-moonscript.changes b/lua-moonscript.changes index a69e496..e018988 100644 --- a/lua-moonscript.changes +++ b/lua-moonscript.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 18 16:01:33 UTC 2021 - Callum Farmer + +- Use %lua_provides macro for default lua versioning + ------------------------------------------------------------------- Mon Jul 6 19:07:18 UTC 2020 - Matej Cepl diff --git a/lua-moonscript.spec b/lua-moonscript.spec index d1772e4..a58a1e2 100644 --- a/lua-moonscript.spec +++ b/lua-moonscript.spec @@ -18,7 +18,7 @@ %define flavor @BUILD_FLAVOR@ %if "%{flavor}" == "test" -%define flavor lua51 +%define flavor lua54 %bcond_without test %else %bcond_with test @@ -48,20 +48,17 @@ Requires(post): update-alternatives Requires(postun): update-alternatives # optionally BuildRequires: %%{flavor}-lnotify BuildArch: noarch -%if "%{flavor}" == "lua53" -Provides: lua-moonscript = %{version} -Obsoletes: lua-moonscript < %{version} -%endif +%lua_provides +%if ! %{with test} %if "%{flavor}" == "" -Name: lua-moonscript +Name: lua-%{mod_name} ExclusiveArch: do_not_build %else -%if %{with test} +Name: %{flavor}-%{mod_name} +%endif +%else Name: %{flavor}-moonscript-test BuildRequires: %{flavor}-busted -%else -Name: %{flavor}-moonscript -%endif %endif %description