diff -r d02b8517b4af -r 3831ba5c7ba7 webalizer/webalizer.spec --- a/webalizer/webalizer.spec Thu Apr 09 15:05:22 2009 +0200 +++ b/webalizer/webalizer.spec Tue Apr 14 13:13:43 2009 +0200 @@ -37,17 +37,19 @@ Group: Logfile License: GPL Version: %{V_here} -Release: 20090408 +Release: 20090414 # package options %option with_dns no %option with_geoip no +%option with_gwidth 512 # list of sources Source0: ftp://ftp.mrunix.net/pub/webalizer/webalizer-%{V_real}-src.tgz Source1: ftp://ftp.mrunix.net/pub/webalizer/geodb/webalizer-geodb-%{V_geodb}.tgz Source2: ftp://ftp.mrunix.net/pub/webalizer/webalizer-flags.tgz Source3: rc.webalizer +Patch0: webalizer.patch # build information Prefix: %{l_prefix} @@ -85,6 +87,11 @@ %{l_gzip} -d -c %{SOURCE1} | %{l_tar} xf - %{l_gzip} -d -c %{SOURCE2} | %{l_tar} xf - ) || exit $? + %patch -p0 + %{l_shtool} subst \ + -e "s;@l_gwidth@;%{with_gwidth};g" \ + graphs.c \ + output.c %build CC="%{l_cc}" \