From c81c160af117f32ec36308f0734cec27b4f0bab03f03c6cf18b03483fb8e773e Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 11 Feb 2021 17:19:11 +0000 Subject: [PATCH] Accepting request 871152 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/871152 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-argparse?expand=0&rev=8 --- lua-argparse.changes | 6 ++++++ lua-argparse.spec | 7 ++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/lua-argparse.changes b/lua-argparse.changes index cfb18d1..0c9a49f 100644 --- a/lua-argparse.changes +++ b/lua-argparse.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Feb 11 09:25: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:01:54 UTC 2020 - Matej Cepl diff --git a/lua-argparse.spec b/lua-argparse.spec index 9c85d8a..31d2865 100644 --- a/lua-argparse.spec +++ b/lua-argparse.spec @@ -1,7 +1,7 @@ # # spec file for package lua-argparse # -# 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 @@ -35,10 +35,7 @@ Source: https://github.com/luarocks/%{mod_name}/archive/%{upversion}.tar BuildRequires: %{flavor}-devel Requires: %{flavor} BuildArch: noarch -%if "%{flavor}" == "lua53" -Provides: lua-argparse = %{version} -Obsoletes: lua-argparse < %{version} -%endif +%lua_provides %if "%{flavor}" == "" Name: lua-argparse ExclusiveArch: do_not_build