Summary: headers-more module for nginx Name: nginx-module-headers-more Version: 0.34 Release: 4 Vendor: OpenResty, Inc. URL: https://github.com/openresty/headers-more-nginx-module %define _modname headers-more %define _modver %{version} %define _nginxver 1.20.1 %define nginx_config_dir %{_sysconfdir}/nginx %define nginx_build_dir %{_builddir}/nginx-%{_nginxver} Source0: https://nginx.org/download/nginx-%{_nginxver}.tar.gz Source1: https://github.com/openresty/%{_modname}-nginx-module/archive/v%{_modver}.tar.gz Source2: copyright Requires: nginx = 1:%{_nginxver} BuildRequires: zlib-devel BuildRequires: pcre-devel BuildRequires: nginx BuildRequires: openssl-devel BuildRequires: libtool BuildRequires: autoconf BuildRequires: automake BuildRequires: openssl-devel BuildRequires: perl-devel BuildRequires: gd-devel BuildRequires: libmaxminddb-devel BuildRequires: libxslt-devel BuildRequires: perl-devel BuildRequires: perl(ExtUtils::Embed) BuildRequires: gperftools-devel License: 2-clause BSD-like license BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description nginx ngx_headers_more dynamic module. Set and clear input and output headers... more than "add"! %define NGINX_COMPILED_FLAGS $(nginx -V 2>&1 | grep ^config | cut -c22-) %define BASE_CONFIGURE_ARGS $(echo "%{NGINX_COMPILED_FLAGS}" | sed 's/--with-cc-opt=.*//; s/--with-ld-opt=.*//') %define WITH_CC_OPT $(echo "%{NGINX_COMPILED_FLAGS}" | grep -Eo \"\\\--with-cc-opt='[^']+'\" | tr -d "'" | cut -c15-) %define WITH_LD_OPT $(echo "%{NGINX_COMPILED_FLAGS}" | grep -Eo \"\\\--with-ld-opt='[^']+'\" | tr -d "'" | cut -c15-) %define MODULE_CONFIGURE_ARGS $(echo "--add-dynamic-module=modules/nginx-module-headers-more") %prep %setup -q -n nginx-%{_nginxver} %setup -T -D -b 1 -n %{_modname}-nginx-module-%{_modver} %build cd %{_builddir}/nginx-%{_nginxver} ./configure %(nginx -V 2>&1 | grep 'configure arguments' | sed -r 's@^[^:]+: @@') --add-dynamic-module=../%{_modname}-nginx-module-%{_modver} make modules %install %{__rm} -rf %{buildroot} %{__install} -Dm755 %{nginx_build_dir}/objs/ngx_http_headers_more_filter_module.so \ $RPM_BUILD_ROOT%{_libdir}/nginx/modules/ngx_http_headers_more_filter_module.so %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root) %{_libdir}/nginx/modules/*.so %changelog * Wed Jul 1 2020 Dzmitry Stremkouski - 0.33-1.1 - Removing debug libs from main package * Wed Jun 17 2020 Dzmitry Stremkouski - 0.33-1 - Compiled for nginx base version 1.18.0, module version 0.33