Used to run ejabberd. Workaround for 'make install' needed, as it is not
only stored in the scripts, but also used during install time.
%configure \
%{?with_pam --enable-pam} \
--with-openssl=%{_prefix} \
+ --enable-user=jabber \
--enable-full-xml \
--enable-nif \
--enable-odbc \
install -d $RPM_BUILD_ROOT{/var/lib/%{realname},/etc/{sysconfig,rc.d/init.d},%{_sbindir}}
%{__make} install -j1 \
+ CHOWN_COMMAND=true \
+ O_USER="" \
+ G_USER="" \
DESTDIR=$RPM_BUILD_ROOT
sed -e's,@libdir@,%{_libdir},g' -e 's,@EJABBERD_DOC_PATH@,%{_docdir}/%{name}-%{version}/doc,g' %{SOURCE1} > $RPM_BUILD_ROOT/etc/rc.d/init.d/%{realname}