From d33d744fc5c1dd41ce215b5e7bc949cfaa5cb2701eb0edd257b04ee433aba337 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 11 Feb 2021 17:19:01 +0000 Subject: [PATCH] Accepting request 871153 from home:dimstar:Factory - Use %lua_provides: add the lua-mod_name provides/obsoletes to the lua version matching the distro default. OBS-URL: https://build.opensuse.org/request/show/871153 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-copas?expand=0&rev=5 --- lua-copas.changes | 6 ++++++ lua-copas.spec | 7 ++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/lua-copas.changes b/lua-copas.changes index de285d9..4412f56 100644 --- a/lua-copas.changes +++ b/lua-copas.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Feb 11 09:48:21 UTC 2021 - Dominique Leuenberger + +- Use %lua_provides: add the lua-mod_name provides/obsoletes to + the lua version matching the distro default. + ------------------------------------------------------------------- Mon Jul 6 19:02:42 UTC 2020 - Matej Cepl diff --git a/lua-copas.spec b/lua-copas.spec index 6553534..e365219 100644 --- a/lua-copas.spec +++ b/lua-copas.spec @@ -1,7 +1,7 @@ # # spec file for package lua-copas # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -31,10 +31,7 @@ BuildRequires: %{flavor}-luasec BuildRequires: %{flavor}-luasocket Requires: %{flavor} BuildArch: noarch -%if "%{flavor}" == "lua53" -Provides: lua-copas = %{version} -Obsoletes: lua-copas < %{version} -%endif +%lua_provides %if "%{flavor}" == "" Name: lua-copas ExclusiveArch: do_not_build