1.1 --- a/webalizer/webalizer.spec Thu Apr 09 15:05:22 2009 +0200 1.2 +++ b/webalizer/webalizer.spec Tue Apr 14 13:13:43 2009 +0200 1.3 @@ -37,17 +37,19 @@ 1.4 Group: Logfile 1.5 License: GPL 1.6 Version: %{V_here} 1.7 -Release: 20090408 1.8 +Release: 20090414 1.9 1.10 # package options 1.11 %option with_dns no 1.12 %option with_geoip no 1.13 +%option with_gwidth 512 1.14 1.15 # list of sources 1.16 Source0: ftp://ftp.mrunix.net/pub/webalizer/webalizer-%{V_real}-src.tgz 1.17 Source1: ftp://ftp.mrunix.net/pub/webalizer/geodb/webalizer-geodb-%{V_geodb}.tgz 1.18 Source2: ftp://ftp.mrunix.net/pub/webalizer/webalizer-flags.tgz 1.19 Source3: rc.webalizer 1.20 +Patch0: webalizer.patch 1.21 1.22 # build information 1.23 Prefix: %{l_prefix} 1.24 @@ -85,6 +87,11 @@ 1.25 %{l_gzip} -d -c %{SOURCE1} | %{l_tar} xf - 1.26 %{l_gzip} -d -c %{SOURCE2} | %{l_tar} xf - 1.27 ) || exit $? 1.28 + %patch -p0 1.29 + %{l_shtool} subst \ 1.30 + -e "s;@l_gwidth@;%{with_gwidth};g" \ 1.31 + graphs.c \ 1.32 + output.c 1.33 1.34 %build 1.35 CC="%{l_cc}" \