diff -r b9de35d46e4e -r dfe80a536491 webalizer/webalizer.spec --- a/webalizer/webalizer.spec Thu Apr 09 13:29:40 2009 +0200 +++ b/webalizer/webalizer.spec Thu Apr 09 14:59:46 2009 +0200 @@ -40,7 +40,8 @@ Release: 20090408 # package options -%option with_dns no +%option with_dns no +%option with_geoip no # list of sources Source0: ftp://ftp.mrunix.net/pub/webalizer/webalizer-%{V_real}-src.tgz @@ -59,6 +60,10 @@ BuildPreReq: db::with_compat = yes PreReq: db::with_compat = yes %endif +%if "%{with_geoip}" == "yes" +BuildPreReq: geoip +PreReq: geoip +%endif AutoReq: no AutoReqProv: no @@ -93,6 +98,9 @@ %if "%{with_dns}" == "yes" --enable-dns \ %endif +%if "%{with_geoip}" == "yes" + --enable-geoip \ +%endif --enable-bz2 \ --with-bz2lib=%{l_prefix}/lib \ --with-bz2=%{l_prefix}/include \