# - install flags in %{datadir}/%{name} and make config for apache
# - patch config in package and fix paths
Summary: Web server log analysis program
-Summary(pl): Program do analizy logów serwera WWW
+Summary(pl.UTF-8): Program do analizy logów serwera WWW
Name: awffull
-Version: 3.7.1
-Release: 1
+Version: 3.8.2
+Release: 2
License: GPL v2
Group: Applications/Networking
Source0: http://www.stedee.id.au/files/%{name}-%{version}.tar.gz
-# Source0-md5: f1cf872a64780b9b83432840d6da18a0
+# Source0-md5: 24c972e1feefb223f0a8d4528dabe8c4
Source1: %{name}.sysconfig
Source2: %{name}.cron
Source3: %{name}.crontab
+Patch0: %{name}-no_css_overwrite_warning.patch
+Patch1: %{name}-geoip.patch
URL: http://www.stedee.id.au/awffull/
BuildRequires: GeoIP-devel > 1.4.0-1
BuildRequires: gd-devel
BuildRequires: gettext-devel
BuildRequires: pcre-devel
+Suggests: dnshistory
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
It adds a number of new features and improvements, such as extended
frontpage history, resizable graphs, and a few more pie charts.
-%description -l pl
-AWFFull to program do analizy logów serwer WWW wywodz±cy siê z
-Webalizera. Dodaje wiele nowych mo¿liwo¶ci i ulepszeñ, takich jak
-rozszerzona historia strony g³ównej, skalowalne wykresy i nieco wiêcej
-wykresów ko³owych.
+%description -l pl.UTF-8
+AWFFull to program do analizy logów serwer WWW wywodzący się z
+Webalizera. Dodaje wiele nowych możliwości i ulepszeń, takich jak
+rozszerzona historia strony głównej, skalowalne wykresy i nieco więcej
+wykresów kołowych.
%prep
%setup -q
+%patch0 -p1
+%patch1 -p1
%build
%configure
DESTDIR=$RPM_BUILD_ROOT
install sample.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
-install %{name}_history_regen.pl %{_sbindir}
+install contrib/%{name}_history_regen.pl $RPM_BUILD_ROOT%{_sbindir}
install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
install %{SOURCE2} $RPM_BUILD_ROOT%{_sbindir}/%{name}.cron
install %{SOURCE3} $RPM_BUILD_ROOT/etc/cron.d/%{name}