%bcond_without ssl # build without SSL support
%bcond_without ldap # build without LDAP support
%bcond_without peruser # peruser MPM
-%bcond_without event # event MPM
%bcond_with itk # ITK MPM
%bcond_with distcache # distcache support
%bcond_with bucketeer # debug one
--enable-so \
--with-program-name=httpd \
--with-mpm=prefork \
- --with-mpm=worker \
- --with-mpm=event \
- --enable-mpms-shared \
+ --enable-mpms-shared=all \
--with-suexec-bin=%{_sbindir}/suexec \
--with-suexec-caller=http \
--with-suexec-docroot=%{_datadir} \
$RPM_BUILD_ROOT/usr/lib/tmpfiles.d
# prefork is default one
-%{__make} -C buildmpm-prefork install \
+%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-ln -s httpd.prefork $RPM_BUILD_ROOT%{_sbindir}/httpd
ln -s %{_libexecdir} $RPM_BUILD_ROOT%{_sysconfdir}/modules
ln -s %{_localstatedir}/run/httpd $RPM_BUILD_ROOT%{_sysconfdir}/run
ln -s %{_var}/log/httpd $RPM_BUILD_ROOT%{_sysconfdir}/logs
+mv $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf.orig
ln -s conf.d $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/httpd