modify buildrequire openresty to luajit-devel
This commit is contained in:
parent
e6d3f29e44
commit
c0c262e7ec
@ -2,13 +2,10 @@
|
|||||||
%global lua_version 5.1
|
%global lua_version 5.1
|
||||||
%{!?lua_pkgdir: %global lua_pkgdir %{_datadir}/lua/%{lua_version}}
|
%{!?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
|
Name: luarocks
|
||||||
Version: 3.5.0
|
Version: 3.5.0
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: A deployment and management system for Lua modules
|
Summary: A deployment and management system for Lua modules
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -19,13 +16,10 @@ Patch0: 0001-luarocks-3.5.0-dynamic_libdir.patch
|
|||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: openresty-openssl111-devel >= 1.1.1h-1
|
BuildRequires: luajit-devel
|
||||||
BuildRequires: openresty >= 1.19.3.1-1
|
|
||||||
|
|
||||||
Requires: unzip
|
Requires: unzip
|
||||||
Requires: zip
|
Requires: zip
|
||||||
Requires: openresty-openssl111 >= 1.1.1h-1
|
|
||||||
Requires: openresty >= 1.19.3.1-1
|
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -46,7 +40,7 @@ repositories, and multiple local rocks trees.
|
|||||||
./configure \
|
./configure \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--lua-version=%{lua_version} \
|
--lua-version=%{lua_version} \
|
||||||
--with-lua=%{openresty_luajit}
|
--with-lua=%{_prefix}
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -71,6 +65,9 @@ mkdir -p %{buildroot}%{_prefix}/lib/luarocks/rocks-%{lua_version}
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Mar 24 2022 liyanan <liyanan32@huawei.com> - 3.5.0-2
|
||||||
- remove %dist
|
- remove %dist
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user