diff --git a/nginx.spec b/nginx.spec index 7c829da5b093dd9ff3ba5b5d64216a82c179da8b..8ffc83b229c2434eb0be81fc6a3c6bd801d3a5e6 100644 --- a/nginx.spec +++ b/nginx.spec @@ -6,6 +6,9 @@ %bcond_with geoip %global with_gperftools 1 +%ifarch sw_64 +%global with_gperftools 0 +%endif %global with_mailcap_mimetypes 0 @@ -17,7 +20,7 @@ Name: nginx Epoch: 1 Version: 1.21.5 -Release: 5 +Release: 6 Summary: A HTTP server, reverse proxy and mail proxy server License: BSD URL: http://nginx.org/ @@ -181,13 +184,16 @@ if ! ./configure \ --with-http_addition_module --with-http_xslt_module=dynamic --with-http_image_filter_module=dynamic \ %if %{with geoip} --with-http_geoip_module=dynamic \ +%endif +%if 0%{?with_gperftools} + --with-google_perftools_module \ %endif --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module \ --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module \ --with-http_secure_link_module --with-http_degradation_module --with-http_slice_module \ --with-http_perl_module=dynamic --with-http_auth_request_module \ --with-mail=dynamic --with-mail_ssl_module --with-pcre --with-pcre-jit --with-stream=dynamic \ - --with-stream_ssl_module --with-google_perftools_module --with-debug \ + --with-stream_ssl_module --with-debug \ --with-cc-opt="%{optflags} $(pcre2-config --cflags) $nginx_ccopts" --with-ld-opt="$nginx_ldopts"; then : configure failed cat objs/autoconf.err @@ -388,6 +394,9 @@ fi %{_mandir}/man8/nginx.8* %changelog +* Fri Aug 18 2023 panchenbo - 1:1.21.5-6 +- fix sw_64 build error + * Wed Dec 21 2022 snoweay - 1:1.21.5-5 - add safety compile options