nginx/nginxmods.attr
Luboš Uhliarik 4132ca2e66 Resolves: #2096174 - RFE: add nginx:1.22 module stream
switch to pcre2
add stream_geoip_module and stream_realip_module
enable kTLS support
2022-10-23 05:33:32 +02:00

15 lines
517 B
Plaintext

%__nginxmods_requires() %{lua:
-- Match buildroot paths of the form
-- /PATH/OF/BUILDROOT/usr/lib/nginx/modules/ and
-- /PATH/OF/BUILDROOT/usr/lib64/nginx/modules/
-- generating a line of the form:
-- nginx(abi) = VERSION
local path = rpm.expand("%1")
if path:match("/usr/lib%d*/nginx/modules/.*") then
local requires = "nginx(abi) = " .. rpm.expand("%{_nginx_abiversion}")
print(requires)
end
}
%__nginxmods_path ^%{_prefix}/lib(64)?/nginx/modules/.*\\.so$