1
0
forked from pool/lua-luasystem

Accepting request 871156 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/871156
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luasystem?expand=0&rev=10
This commit is contained in:
Matej Cepl 2021-02-11 10:56:24 +00:00 committed by Git OBS Bridge
parent 1a53801a6a
commit a70e706bc7
2 changed files with 8 additions and 5 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Feb 11 09:51:45 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
- Use %lua_provides: add the lua-mod_name provides/obsoletes to
the lua version matching the distro default.
-------------------------------------------------------------------
Mon Jul 6 19:06:32 UTC 2020 - Matej Cepl <mcepl@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package lua-luasystem
#
# 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
@ -27,10 +27,7 @@ URL: https://github.com/o-lim/luasystem
Source: https://github.com/o-lim/luasystem/archive/v%{upversion}.tar.gz#/%{mod_name}-%{upversion}.tar.gz
BuildRequires: %{flavor}-devel
Requires: %{flavor}
%if "%{flavor}" == "lua53"
Provides: lua-luasystem = %{version}
Obsoletes: lua-luasystem < %{version}
%endif
%lua_provides
%if "%{flavor}" == ""
Name: lua-luasystem
ExclusiveArch: do_not_build