+ %{?with_status:--with-http_stub_status_module} \
+ %{?with_ssl:--with-http_ssl_module} \
+ %{!?with_http_browser:--without-http_browser_module} \
+ --http-log-path=%{_localstatedir}/log/%{name}/access.log \
+ --http-client-body-temp-path=%{_localstatedir}/cache/%{name}/client_body_temp \
+ --http-proxy-temp-path=%{_localstatedir}/cache/%{name}/proxy_temp \
+ --http-fastcgi-temp-path=%{_localstatedir}/cache/%{name}/fastcgi_temp \
+ --with-cc="%{__cc}" \
+ --with-cc-opt="%{rpmcflags}" \
+ --with-ld-opt="%{rpmldflags}"
+%{__make}
+mv -f objs/nginx contrib/nginx.perl
+%endif
+
+%if %{with mail}
+%{__make} clean
+./configure \
+ --prefix=%{_prefix} \
+ --sbin-path=%{_sbindir}/%{name} \
+ --conf-path=%{_sysconfdir}/%{name}.conf \
+ --error-log-path=%{_localstatedir}/log/%{name}/error.log \
+ --pid-path=%{_localstatedir}/run/%{name}.pid \
+ --lock-path=%{_localstatedir}/lock/subsys/%{name} \
+ --user=nginx \
+ --group=nginx \
+ --with-imap \
+ --with-mail \
+ --with-mail_ssl_module \
+ %{?with_addition:--with-http_addition_module} \
+ %{?with_poll:--with-poll_module} \
+ %{?with_realip:--with-http_realip_module} \
+ %{?with_rtsig:--with-rtsig_module} \
+ %{?with_select:--with-select_module} \
+ %{!?with_http_browser:--without-http_browser_module} \
+ --http-log-path=%{_localstatedir}/log/%{name}/access.log \
+ --http-client-body-temp-path=%{_localstatedir}/cache/%{name}/client_body_temp \
+ --http-proxy-temp-path=%{_localstatedir}/cache/%{name}/proxy_temp \
+ --http-fastcgi-temp-path=%{_localstatedir}/cache/%{name}/fastcgi_temp \
+ --with-cc="%{__cc}" \
+ --with-cc-opt="%{rpmcflags}" \
+ --with-ld-opt="%{rpmldflags}" \
+ %{?debug:--with-debug}
+%{__make}
+mv -f objs/nginx contrib/nginx.mail
+%endif
+
+%if %{with light}
+%{__make} clean
+./configure \
+ --prefix=%{_prefix} \
+ --sbin-path=%{_sbindir}/%{name} \
+ --conf-path=%{_sysconfdir}/%{name}.conf \
+ --error-log-path=%{_localstatedir}/log/%{name}/error.log \
+ --pid-path=%{_localstatedir}/run/%{name}.pid \
+ --lock-path=%{_localstatedir}/lock/subsys/%{name} \
+ --user=nginx \
+ --group=nginx \