nginx/nginxmods.attr
Luboš Uhliarik 9379947f8d Resolves: RHEL-14713 - add nginx:1.24 to RHEL 9.4
Added new nginx stream 1.24
2024-01-18 21:08:36 +01: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$