summaryrefslogtreecommitdiff
path: root/nginxmods.attr
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-10-31 07:11:45 +0000
committerCoprDistGit <infra@openeuler.org>2024-10-31 07:11:45 +0000
commit6c94cd3bcc5f9cae45fa80e3048d7cb395f05796 (patch)
treed912ce6e29bf07d987257bba72caf31c5473c4b6 /nginxmods.attr
parent85df9bedbac03a69d4687d8a3d75fe5e6ba2dce7 (diff)
automatic import of nginxopeneuler24.03_LTS
Diffstat (limited to 'nginxmods.attr')
-rw-r--r--nginxmods.attr14
1 files changed, 14 insertions, 0 deletions
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$