cleanup build conditionals and fix the previous change for the is_opensuse. update to 1.19.7
OBS-URL: https://build.opensuse.org/package/show/server:http/nginx-macros?expand=0&rev=7
This commit is contained in:
parent
744e8519f2
commit
882687d472
@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 16 23:31:02 UTC 2021 - Marcus Rueckert <mrueckert@suse.de>
|
||||
|
||||
- Since we only target sle 12 and above we can skip all
|
||||
conditionals which apply to suse_version before 1315
|
||||
|
||||
With changes in nginx itself we will drop support for sysvinit.
|
||||
http2, libatomic support and pcre_jit will always be on now.
|
||||
and we build all binaries with PIE now.
|
||||
- Moved the last 2 path macros from nginx.spec to the macros file.
|
||||
(pid and lock path)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 11 08:43:09 UTC 2021 - Felix Schnizlein <fschnizlein@suse.com>
|
||||
|
||||
|
19
nginx.macros
19
nginx.macros
@ -14,17 +14,10 @@
|
||||
%ngx_tmp_uwsgi %{ngx_home}/uwsgi/
|
||||
%ngx_user_group nginx
|
||||
%ngx_doc_dir %{_docdir}/%{name}
|
||||
%ngx_pid_path /run/nginx.pid
|
||||
%ngx_lock_path /run/nginx.lock
|
||||
|
||||
%ngx_conditionals \
|
||||
%if 0%{?suse_version} > 1220 \
|
||||
%bcond_without ngx_http2 \
|
||||
%bcond_without ngx_pcre_jit \
|
||||
%bcond_without systemd \
|
||||
%else \
|
||||
%bcond_with ngx_http2 \
|
||||
%bcond_with ngx_pcre_jit \
|
||||
%bcond_with systemd \
|
||||
%endif \
|
||||
%bcond_with ngx_cpp_test \
|
||||
%bcond_with ngx_google_perftools \
|
||||
%{nil}
|
||||
@ -51,9 +44,7 @@
|
||||
--with-file-aio \\\
|
||||
--with-ipv6 \\\
|
||||
--with-http_ssl_module \\\
|
||||
%if %{with ngx_http2} \
|
||||
--with-http_v2_module \\\
|
||||
%endif \
|
||||
--with-http_realip_module \\\
|
||||
--with-http_addition_module \\\
|
||||
--with-http_xslt_module=dynamic \\\
|
||||
@ -79,21 +70,15 @@
|
||||
--with-stream_realip_module \\\
|
||||
--with-stream_ssl_preread_module \\\
|
||||
--with-pcre \\\
|
||||
%if %{with ngx_pcre_jit} \
|
||||
--with-pcre-jit \\\
|
||||
%endif \
|
||||
%if %{with ngx_google_perftools} \
|
||||
--with-google_perftools_module \\\
|
||||
%endif \
|
||||
%if %{with ngx_cpp_test} \
|
||||
--with-cpp_test_module \\\
|
||||
%endif \
|
||||
%if 0%{?suse_version} > 1220 \
|
||||
--with-cc-opt="%{optflags} -fPIC -D_GNU_SOURCE" \\\
|
||||
--with-ld-opt="-Wl,-z,relro,-z,now -pie" \\\
|
||||
%else \
|
||||
--with-cc-opt="%{optflags}" \\\
|
||||
%endif \
|
||||
--with-compat
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user