3
0
forked from pool/lua-macros

Accepting request 867226 from home:gmbr3:Lua

- Add lua_provides macro for default lua naming

OBS-URL: https://build.opensuse.org/request/show/867226
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-macros?expand=0&rev=9
This commit is contained in:
Matej Cepl 2021-01-28 14:21:31 +00:00 committed by Git OBS Bridge
parent 6f5d372c3e
commit 7d02c2c64e
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 27 15:51:37 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
- Add lua_provides macro for default lua naming
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Apr 12 13:22:39 UTC 2020 - Matej Cepl <mcepl@suse.com> Sun Apr 12 13:22:39 UTC 2020 - Matej Cepl <mcepl@suse.com>

View File

@ -11,3 +11,11 @@
# lua includes folder # lua includes folder
%lua_incdir %{_includedir}/lua%{lua_version} %lua_incdir %{_includedir}/lua%{lua_version}
# Lua default version
%lua_provides \
%if "%{flavor}" == "lua54" \
Provides: lua-%{mod_name} = %{version}-%{release} \
Obsoletes: lua-%{mod_name} < %{version}-%{release} \
%endif \
%{nil}