!7 fix build error for loongarch64

From: @zhangwenlong01 
Reviewed-by: @imjoey, @gitee-cmd 
Signed-off-by: @imjoey
This commit is contained in:
openeuler-ci-bot 2023-03-21 02:09:21 +00:00 committed by Gitee
commit 301a453cc5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -8,7 +8,7 @@
Name: luarocks
Version: 3.5.0
Release: 2
Release: 3
Summary: A deployment and management system for Lua modules
License: MIT
@ -45,8 +45,12 @@ repositories, and multiple local rocks trees.
%build
./configure \
--prefix=%{_prefix} \
%if 0%(test `uname -m` == "loongarch64" && echo 1)
--lua-version=%{lua_version}
%else
--lua-version=%{lua_version} \
--with-lua=%{openresty_luajit}
%endif
%make_build
%install
@ -71,6 +75,9 @@ mkdir -p %{buildroot}%{_prefix}/lib/luarocks/rocks-%{lua_version}
%changelog
* Thu Jan 5 2023 Wenlong Zhang<zhangwenlong@loongson.cn> - 3.5.0-3
- fix build error for loongarch64
* Thu Mar 24 2022 liyanan <liyanan32@huawei.com> - 3.5.0-2
- remove %dist