summaryrefslogtreecommitdiff
path: root/nginxmods.attr
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-09-06 12:18:13 +0000
committerCoprDistGit <infra@openeuler.org>2023-09-06 12:18:13 +0000
commit7a547bdcd571687f3ee5a9a0b60b5d99b871de4a (patch)
tree66c24cc526176ff4ffbd83a538619ff03bbba857 /nginxmods.attr
parent66be5e6ca9d9e35e9978bd0ed1ab7f967de6c30f (diff)
automatic import of nginxopeneuler22.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$