diff options
author | CoprDistGit <infra@openeuler.org> | 2024-10-31 07:11:45 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-10-31 07:11:45 +0000 |
commit | 6c94cd3bcc5f9cae45fa80e3048d7cb395f05796 (patch) | |
tree | d912ce6e29bf07d987257bba72caf31c5473c4b6 /macros.nginxmods.in | |
parent | 85df9bedbac03a69d4687d8a3d75fe5e6ba2dce7 (diff) |
automatic import of nginxopeneuler24.03_LTS
Diffstat (limited to 'macros.nginxmods.in')
-rw-r--r-- | macros.nginxmods.in | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/macros.nginxmods.in b/macros.nginxmods.in new file mode 100644 index 0000000..9b612b2 --- /dev/null +++ b/macros.nginxmods.in @@ -0,0 +1,20 @@ +%_nginx_abiversion @@NGINX_ABIVERSION@@ +%_nginx_srcdir @@NGINX_SRCDIR@@ +%_nginx_buildsrcdir nginx-src +%_nginx_modsrcdir .. +%_nginx_modbuilddir ../%{_vpath_builddir} +%nginx_moddir @@NGINX_MODDIR@@ +%nginx_modconfdir @@NGINX_MODCONFDIR@@ + +%nginx_modrequires Requires: nginx(abi) = %{_nginx_abiversion} + +%nginx_modconfigure(:-:) \\\ + %undefine _strict_symbol_defs_build \ + cp -a "%{_nginx_srcdir}" "%{_nginx_buildsrcdir}" \ + cd "%{_nginx_buildsrcdir}" \ + nginx_ldopts="$RPM_LD_FLAGS -Wl,-E" \ + ./configure --with-compat --with-cc-opt="%{optflags} $(pcre-config --cflags)" --with-ld-opt="$nginx_ldopts" \\\ + --add-dynamic-module=$(realpath %{_nginx_modsrcdir}) --builddir=$(realpath %{_nginx_modbuilddir}) %{**} \ + cd - + +%nginx_modbuild %{__make} -C "%{_nginx_buildsrcdir}" %{_make_output_sync} %{?_smp_mflags} %{_make_verbose} modules |