anchor.diff:  		--add-dynamic-module=`pwd`/../src/nginx_module && \
   		echo '#define NGX_HTTP_HEADERS 1' >> objs/ngx_auto_config.h && \
   		make -f objs/Makefile modules && \
  -		mv objs/ngx_http_passenger_module.so ../debian/ || \
  -		mv modules/ngx_http_passenger_module.so ../debian/
  -<% else -%>
  -	rm debian/libnginx-mod-http-passenger.*
  -<% end -%>
  +		mv objs/ngx_http_passenger_module.so %{_nginx_moddir} || \
  +		mv modules/ngx_http_passenger_module.so %{_nginx_moddir}
  +%endif
   
   # Build SELinux policy modules.
   %{__cp} %{SOURCE3} %{SOURCE4} .
  
positive.code: %description doc
  This package contains documentation files for Phusion Passenger®.
  
  
  %prep
  %setup -q -n %{tarball_name}-%{tarball_version}
  
negative.code: # /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4
  %{!?_httpd_modconfdir:  %{expand: %%global _httpd_modconfdir  %%{_sysconfdir}/httpd/conf.d}}
  %{!?_httpd_moddir:      %{expand: %%global _httpd_moddir      %%{_libdir}/httpd/modules}}
  
  %{!?_nginx_confdir:     %{expand: %%global _nginx_confdir     %%{_sysconfdir}/nginx/conf.d}}
  %{!?_nginx_modconfdir:  %{expand: %%global _nginx_modconfdir  %%{_datadir}/nginx/modules}}
  %{!?_nginx_moddir:      %{expand: %%global _nginx_moddir      %%{_libdir}/nginx/modules}}
  
  %{!?ruby_vendorlibdir: %global ruby_vendorlibdir %(ruby -rrbconfig -e 'puts RbConfig::CONFIG["vendorlibdir"]')}
  %{!?ruby_vendorarchdir: %global ruby_vendorarchdir %(ruby -rrbconfig -e 'puts RbConfig::CONFIG["vendorarchdir"]')}
  