SHA256
12
0
forked from pool/lua-mpack

Accepting request 1060917 from home:michals:branches:devel:languages:lua

- Fix missing dependency on lua-macros (boo#1205612)

- Opencode %make_build to prevent build failure when not defined.

OBS-URL: https://build.opensuse.org/request/show/1060917
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-mpack?expand=0&rev=14
This commit is contained in:
Matej Cepl 2023-01-25 21:14:25 +00:00 committed by Git OBS Bridge
parent ac74ccc367
commit 966dd15c6b
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Jan 25 11:52:07 UTC 2023 - Michal Suchanek <msuchanek@suse.de>
- Fix missing dependency on lua-macros (boo#1205612)
-------------------------------------------------------------------
Wed Jan 25 10:52:05 UTC 2023 - Michal Suchanek <msuchanek@suse.de>
- Opencode %make_build to prevent build failure when not defined.
-------------------------------------------------------------------
Thu Feb 18 16:01:56 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>

View File

@ -34,6 +34,7 @@ Source1: https://github.com/libmpack/libmpack/archive/%{libmpack_version}
Patch0: lua51-mpack-fix-gcc7.patch
# PATCH-FIX-UPSTREAM lua51-mpack-fix-compilation.patch gh#libmpack/libmpack-lua#2 -- Fix compilation error when using `USE_SYSTEM_LUA=1`.
Patch1: lua51-mpack-fix-compilation.patch
BuildRequires: lua-macros
BuildRequires: %{flavor}-devel
BuildRequires: gcc
BuildRequires: libtool
@ -66,7 +67,7 @@ popd
sed -i 's|LUA_CMOD_INSTALLDIR :=.*|LUA_CMOD_INSTALLDIR := $(shell echo "%{lua_archdir}")|g' Makefile
%build
%make_build \
make %{?_make_output_sync} %{?_smp_mflags} \
USE_SYSTEM_LUA=yes \
MPACK_LUA_VERSION=%{lua_version} \
CFLAGS="%{optflags} -fPIC"