diff --git a/luarocks.spec b/luarocks.spec index d989985fca4e0433231a078eec29e0de6e8183ec..87a26709a33845f1769c32aec39db7e4429b0f1c 100644 --- a/luarocks.spec +++ b/luarocks.spec @@ -1,5 +1,9 @@ # Use luajit within openresty, which is compatible with lua 5.1 +%if 0%(test `uname -m` == "loongarch64" && echo 1) +%global lua_version 5.4 +%else %global lua_version 5.1 +%endif %{!?lua_pkgdir: %global lua_pkgdir %{_datadir}/lua/%{lua_version}} # Use luajit within openresty to build luarocks @@ -8,7 +12,7 @@ Name: luarocks Version: 3.5.0 -Release: 3 +Release: 4 Summary: A deployment and management system for Lua modules License: MIT @@ -21,6 +25,7 @@ BuildArch: noarch BuildRequires: make BuildRequires: openresty-openssl111-devel >= 1.1.1h-1 BuildRequires: openresty >= 1.19.3.1-1 +BuildRequires: lua-devel Requires: unzip Requires: zip @@ -75,6 +80,9 @@ mkdir -p %{buildroot}%{_prefix}/lib/luarocks/rocks-%{lua_version} %changelog +* Mon Jun 12 2023 Wenlong Zhang - 3.5.0-4 +- fix build error for luarocks + * Thu Jan 5 2023 Wenlong Zhang - 3.5.0-3 - fix build error for loongarch64