From: Elan Ruusamäe Date: Sun, 3 May 2015 18:14:27 +0000 (+0300) Subject: add debug bcond X-Git-Tag: auto/th/nginx-1.8.0-3~19 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=0aa7dc69a77fd71a1078c4751d40eeb3fcca57b4;p=packages%2Fnginx.git add debug bcond --- diff --git a/nginx.spec b/nginx.spec index c6773d8..bb06b92 100644 --- a/nginx.spec +++ b/nginx.spec @@ -21,6 +21,7 @@ %bcond_with http_browser # header "User-agent" parser %bcond_with rtmp # rtmp support %bcond_with threads # thread pool support +%bcond_with debug # build with debug enabled: http://nginx.org/en/docs/debugging_log.html %bcond_without auth_request # auth_request module %ifarch x32 @@ -313,7 +314,7 @@ build() { --with-cc="%{__cc}" \ --with-cc-opt="%{rpmcflags}" \ --with-ld-opt="%{rpmldflags}" \ - %{?debug:--with-debug} \ + %{?with_debug:--with-debug} \ "$@" %{__make} }