From 6c94cd3bcc5f9cae45fa80e3048d7cb395f05796 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 31 Oct 2024 07:11:45 +0000 Subject: automatic import of nginx --- nginxmods.attr | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 nginxmods.attr (limited to 'nginxmods.attr') diff --git a/nginxmods.attr b/nginxmods.attr new file mode 100644 index 0000000..102da1a --- /dev/null +++ b/nginxmods.attr @@ -0,0 +1,14 @@ +%__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$ -- cgit v1.2.3