%define ver 2.00 %define patchlvl 12 Summary: The Webalizer - A web server log file analysis thingie Summary(pl): Webalizer - analizator logów serwera www Name: webalizer Version: %{ver}_%{patchlvl} Release: 2 License: GPL Group: Networking/Utilities Group(pl): Sieciowe/Narzędzia Source0: ftp://ftp.mrunix.net/pub/webalizer/pre-release/%{name}-%{ver}-%{patchlvl}-src.tar.bz2 Patch0: webalizer-shared_gd.patch Icon: webalizer.gif URL: http://www.mrunix.net/webalizer/ BuildRequires: gd-devel >= 1.6.2 BuildRequires: libpng >= 1.0.8 BuildRequires: zlib-devel BuildRequires: autoconf BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description The Webalizer is a web server log file analysis program which produces usage statistics in HTML format for viewing with a browser. The results are presented in both columnar and graphical format, which facilitates interpretation. Yearly, monthly, daily and hourly usage statistics are presented, along with the ability to display usage by site, URL, referrer, user agent (browser) and country (user agent and referrer are only available if your web server produces combined log format files). %description -l pl Webalizer to program analizujący logi serwera www i tworzący strony w formacie HTML zawierające statystyki użycia tegoż serwera www. %prep %setup -q -n %{name}-%{ver}-%{patchlvl} %patch -p1 %build aclocal autoconf %configure \ --with-gd \ --enable-dns #--with-language=polish %{__make} CFLAGS="$RPM_OPT_FLAGS -fsigned-char" %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_mandir}/man1} \ $RPM_BUILD_ROOT/home/httpd/html/usage install sample.conf $RPM_BUILD_ROOT%{_sysconfdir}/webalizer.conf install -s webalizer $RPM_BUILD_ROOT%{_bindir} install webalizer.1 $RPM_BUILD_ROOT%{_mandir}/man1/webalizer.1 install msfree.png $RPM_BUILD_ROOT/home/httpd/html/usage gzip -9nf CHANGES *README* country-codes.txt \ $RPM_BUILD_ROOT%{_mandir}/man1/webalizer.1 %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc *.gz %config(noreplace) %verify(not size md5 mtime) %{_sysconfdir}/webalizer.conf %attr(755,root,root) %{_bindir}/webalizer %{_mandir}/man1/* /home/httpd/html/usage