diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-08-19 15:17:49 +0000 | 
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-08-19 15:17:49 +0000 | 
| commit | 998c19f0244c3eacbc632e58fbdeabee90527b7c (patch) | |
| tree | 060a266a3068a7f15c4a9f0434ce23e743bf191b /nginxmods.attr | |
| parent | 7fed8a26b331c9d92c55722a5c49af7fc72f8577 (diff) | |
automatic import of nginx
Diffstat (limited to 'nginxmods.attr')
| -rw-r--r-- | nginxmods.attr | 14 | 
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$  | 
