diff --git a/exim.spec b/exim.spec index 1ddd18c..bafa36c 100644 --- a/exim.spec +++ b/exim.spec @@ -22,6 +22,9 @@ BuildRequires: XFree86-devel XFree86-libs %else BuildRequires: libXaw-devel libXext-devel libXt-devel openssl-devel tcp_wrappers xorg-x11-server-sdk %endif +%if %{?build_with_mysql:1}0 +BuildRequires: mysql-devel +%endif URL: http://www.exim.org/ Conflicts: sendmail sendmail-tls postfix License: GPL @@ -140,7 +143,9 @@ cat <<-EOF > Local/Makefile LOOKUP_DNSDB=yes LOOKUP_DSEARCH=yes LOOKUP_LDAP=yes - # LOOKUP_MYSQL=yes +%if %{?build_with_mysql:1}0 + LOOKUP_MYSQL=yes +%endif # LOOKUP_NIS=yes # LOOKUP_NISPLUS=yes # LOOKUP_ORACLE=yes @@ -154,6 +159,10 @@ cat <<-EOF > Local/Makefile # LOOKUP_INCLUDE=-I /usr/local/ldap/include -I /usr/local/mysql/include -I /usr/local/pgsql/include # LOOKUP_LIBS=-L/usr/local/lib -lldap -llber -lmysqlclient -lpq LOOKUP_LIBS=-lldap -llber +%if %{?build_with_mysql:1}0 + LOOKUP_INCLUDE=-I /usr/include/mysql + LOOKUP_LIBS=-lldap -llber -lmysqlclient +%endif EXIM_MONITOR=eximon.bin @@ -393,6 +402,9 @@ exit 0 %{_sbindir}/eximstats-html-update.py %changelog -n exim +* Fri Aug 04 2006 - poeml@suse.de +- add support for building with mysql lookup support, by defining + %%build_with_mysql at the top of the spec file [#188586] * Thu Aug 03 2006 - poeml@suse.de - update to 4.63 * Use a glob alias rather than an array ref in eximstats generated