#define rc_flag rc4 %define lua_ver 5.1 %define _luapkgdir /usr/local/lib/lua/%{lua_ver} Name: lua-resty-core Version: 0.1.21 Release: 1%{dist} License: BSD URL: https://github.com/openresty/lua-resty-core Source: https://github.com/openresty/lua-resty-core/archive/refs/tags/v%{version}.tar.gz BuildArch: noarch Requires: lua == %{lua_ver} Summary: New FFI-based API for lua-nginx-module %description New FFI-based Lua API for ngx_http_lua_module and/or ngx_stream_lua_module %prep %setup -q -n %{name}-%{version} %build %install install -d %{buildroot}%{_luapkgdir}/resty/core install -d -p %{buildroot}%{_luapkgdir}/ngx/ssl install lib/resty/*.lua %{buildroot}%{_luapkgdir}/resty/ install lib/resty/core/*.lua %{buildroot}%{_luapkgdir}/resty/core/ install lib/ngx/*.lua %{buildroot}%{_luapkgdir}/ngx/ install lib/ngx/ssl/*.lua %{buildroot}%{_luapkgdir}/ngx/ssl/ %files %doc README.markdown %{_luapkgdir}/resty/* %{_luapkgdir}/ngx/* %changelog * Tue May 11 2021 Raven - 0.1.21-1 - version bump * Wed Apr 22 2020 Raven - 0.1.18rc4-1 - initial build