From 830291e483607402d390c17fcc81c04abda8f082bc1a02fbd8e0beebf33ab9d8 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 9 Feb 2021 20:47:03 +0000 Subject: [PATCH] Accepting request 870576 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/870576 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-lgi?expand=0&rev=24 --- lua-lgi.changes | 6 ++++++ lua-lgi.spec | 7 ++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/lua-lgi.changes b/lua-lgi.changes index a43ed51..81cf313 100644 --- a/lua-lgi.changes +++ b/lua-lgi.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Feb 9 14:32:38 UTC 2021 - Dominique Leuenberger + +- Use %lua_provides: add the lua-mod_name provides/obsoletes to + the lua version matching the distro default. + ------------------------------------------------------------------- Thu Jul 9 13:23:34 UTC 2020 - Callum Farmer diff --git a/lua-lgi.spec b/lua-lgi.spec index bb9c37d..3c04260 100644 --- a/lua-lgi.spec +++ b/lua-lgi.spec @@ -1,7 +1,7 @@ # # spec file for package lua-lgi # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # Copyright (c) 2012 Adam Mizerski # # All modifications and additions to the file contributed by third parties @@ -33,10 +33,7 @@ BuildRequires: pkgconfig(gmodule-2.0) BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.10.8 BuildRequires: pkgconfig(libffi) Requires: %{flavor} -%if "%{flavor}" == "lua53" -Provides: lua-%{mod_name} = %{version} -Obsoletes: lua-%{mod_name} < %{version} -%endif +%lua_provides %if "%{flavor}" == "" Name: lua-%{mod_name} ExclusiveArch: do_not_build