Files
angie/angiemods.attr

15 lines
517 B
Plaintext

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