99dfe5
%_nginx_abiversion @@NGINX_ABIVERSION@@
99dfe5
%_nginx_srcdir @@NGINX_SRCDIR@@
99dfe5
%_nginx_buildsrcdir nginx-src
99dfe5
%_nginx_modsrcdir ..
99dfe5
%_nginx_modbuilddir ../%{_vpath_builddir}
99dfe5
%nginx_moddir @@NGINX_MODDIR@@
99dfe5
%nginx_modconfdir @@NGINX_MODCONFDIR@@
99dfe5
99dfe5
%nginx_modrequires Requires: nginx(abi) = %{_nginx_abiversion}
99dfe5
99dfe5
%nginx_modconfigure(:-:) \\\
99dfe5
  %undefine _strict_symbol_defs_build \
99dfe5
  cp -a "%{_nginx_srcdir}" "%{_nginx_buildsrcdir}" \
99dfe5
  cd "%{_nginx_buildsrcdir}" \
99dfe5
  nginx_ldopts="$RPM_LD_FLAGS -Wl,-E" \
99dfe5
  ./configure --with-compat --with-cc-opt="%{optflags} $(pcre-config --cflags)" --with-ld-opt="$nginx_ldopts" \\\
99dfe5
              --add-dynamic-module=$(realpath %{_nginx_modsrcdir}) --builddir=$(realpath %{_nginx_modbuilddir}) %{**} \
99dfe5
  cd -
99dfe5
99dfe5
%nginx_modbuild %{__make} -C "%{_nginx_buildsrcdir}" %{_make_output_sync} %{?_smp_mflags} modules