From 3580d750613978b69ba4663b7410547dc7a22dffcef4d3cbb2465aee28630607 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 18 Feb 2021 17:58:50 +0000 Subject: [PATCH] Accepting request 873489 from home:gmbr3:Lua upd OBS-URL: https://build.opensuse.org/request/show/873489 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-moonscript?expand=0&rev=14 --- lua-moonscript.changes | 5 +++++ lua-moonscript.spec | 17 +++++++---------- 2 files changed, 12 insertions(+), 10 deletions(-) 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