modify buildrequire openresty to luajit-devel
This commit is contained in:
parent
e6d3f29e44
commit
c0c262e7ec
@ -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 <zhangxianting@uniontech.com> - 3.5.0-3
|
||||
- modify buildrequire openresty to luajit-devel
|
||||
|
||||
* Thu Mar 24 2022 liyanan <liyanan32@huawei.com> - 3.5.0-2
|
||||
- remove %dist
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user