SHA256
10
0
forked from pool/lua-toluapp

- Add patch to fix build with lua5.2 tolua++-1.0.93-lua52.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-toluapp?expand=0&rev=4
This commit is contained in:
Tomáš Chvátal
2017-07-14 11:52:30 +00:00
committed by Git OBS Bridge
parent 561a292cd2
commit f780ee856e
3 changed files with 562 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ Source: https://github.com/LuaDist/toluapp/archive/%{version}/toluapp-%{
Patch0: toluapp-libdir.patch
Patch1: toluapp-versioned-shared-lib.patch
Patch2: toluapp-build-compare.patch
Patch3: tolua++-1.0.93-lua52.patch
BuildRequires: %{flavor}-devel
BuildRequires: gcc-c++
BuildRequires: pkgconfig
@@ -81,6 +82,7 @@ This package provides development headers for tolua++.
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
sed -i "s/@SUFFIX@/%{lua_version}/" SConstruct
%build
@@ -98,7 +100,8 @@ scons %{?_smp_mflags} \
prefix="%{_prefix}" \
libdir="%{_libdir}" \
shared=1 \
lib bin
lib bin \
-Q CCFLAGS="%{optflags} -I%{lua_incdir} -fPIC"
%install
CCFLAGS="%{optflags} -fPIC -I%{lua_incdir}" \