From c0c262e7ecfddcedce3c3b4c63100c740eb4ab73 Mon Sep 17 00:00:00 2001 From: zhangxianting Date: Wed, 29 May 2024 17:43:23 +0800 Subject: [PATCH] modify buildrequire openresty to luajit-devel --- luarocks.spec | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/luarocks.spec b/luarocks.spec index ffbcfb9..96c1a75 100644 --- a/luarocks.spec +++ b/luarocks.spec @@ -2,13 +2,10 @@ %global lua_version 5.1 %{!?lua_pkgdir: %global lua_pkgdir %{_datadir}/lua/%{lua_version}} -# Use luajit within openresty to build luarocks -%global openresty_prefix %{_usr}/local/openresty -%global openresty_luajit %{openresty_prefix}/luajit Name: luarocks Version: 3.5.0 -Release: 2 +Release: 3 Summary: A deployment and management system for Lua modules License: MIT @@ -19,13 +16,10 @@ Patch0: 0001-luarocks-3.5.0-dynamic_libdir.patch BuildArch: noarch BuildRequires: make -BuildRequires: openresty-openssl111-devel >= 1.1.1h-1 -BuildRequires: openresty >= 1.19.3.1-1 +BuildRequires: luajit-devel Requires: unzip Requires: zip -Requires: openresty-openssl111 >= 1.1.1h-1 -Requires: openresty >= 1.19.3.1-1 %description @@ -46,7 +40,7 @@ repositories, and multiple local rocks trees. ./configure \ --prefix=%{_prefix} \ --lua-version=%{lua_version} \ - --with-lua=%{openresty_luajit} + --with-lua=%{_prefix} %make_build %install @@ -71,6 +65,9 @@ mkdir -p %{buildroot}%{_prefix}/lib/luarocks/rocks-%{lua_version} %changelog +* Wed May 29 2024 zhangxianting - 3.5.0-3 +- modify buildrequire openresty to luajit-devel + * Thu Mar 24 2022 liyanan - 3.5.0-2 - remove %dist -- Gitee