| 1 | %scm_source github https://github.com/ydario/webalizer master-os2
|
|---|
| 2 |
|
|---|
| 3 | Name: webalizer
|
|---|
| 4 | Summary: A flexible Web server log file analysis program
|
|---|
| 5 | Group: Applications/Internet
|
|---|
| 6 | Version: 2.23_08
|
|---|
| 7 | Release: 1
|
|---|
| 8 | URL: http://www.mrunix.net/webalizer/
|
|---|
| 9 | Source1: webalizer.conf
|
|---|
| 10 | Source3: webalizer-httpd.conf
|
|---|
| 11 | License: GPLv2+
|
|---|
| 12 | BuildRequires: gcc
|
|---|
| 13 | BuildRequires: gd-devel, db4-devel, bzip2-devel
|
|---|
| 14 |
|
|---|
| 15 | %description
|
|---|
| 16 | The Webalizer is a Web server log analysis program. It is designed to
|
|---|
| 17 | scan Web server log files in various formats and produce usage
|
|---|
| 18 | statistics in HTML format for viewing through a browser. It produces
|
|---|
| 19 | professional looking graphs which make analyzing when and where your
|
|---|
| 20 | Web traffic is coming from easy.
|
|---|
| 21 |
|
|---|
| 22 | %prep
|
|---|
| 23 | %scm_setup
|
|---|
| 24 | autoreconf -i -v
|
|---|
| 25 |
|
|---|
| 26 | %build
|
|---|
| 27 | CPPFLAGS="-I%{_includedir}/db4" ; export CPPFLAGS
|
|---|
| 28 | LDFLAGS="-Zexe -Zhigh-mem -Zomf" ; export LDFLAGS
|
|---|
| 29 | LIBS="-lcx" ; export LIBS
|
|---|
| 30 | %configure --enable-dns --enable-bz2 --with-language=italian
|
|---|
| 31 | make %{?_smp_mflags}
|
|---|
| 32 | mv webalizer.exe webalizer_it.exe
|
|---|
| 33 | rm webalizer
|
|---|
| 34 | rm webalizer.o
|
|---|
| 35 | rm webalizer_lang.h
|
|---|
| 36 | ln -s lang/webalizer_lang.english webalizer_lang.h
|
|---|
| 37 | make %{?_smp_mflags}
|
|---|
| 38 |
|
|---|
| 39 | %install
|
|---|
| 40 | mkdir -p %{buildroot}%{_localstatedir}/www/usage \
|
|---|
| 41 | %{buildroot}%{_sysconfdir}/cron.daily
|
|---|
| 42 |
|
|---|
| 43 | mkdir -p %{buildroot}%{_localstatedir}/lib/webalizer
|
|---|
| 44 |
|
|---|
| 45 | %make_install
|
|---|
| 46 |
|
|---|
| 47 | install -p -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}
|
|---|
| 48 | install -p -m 644 *.png %{buildroot}%{_localstatedir}/www/usage
|
|---|
| 49 | mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d
|
|---|
| 50 | install -p -m 644 %{SOURCE3} \
|
|---|
| 51 | %{buildroot}%{_sysconfdir}/httpd/conf.d/webalizer.conf
|
|---|
| 52 | rm -f %{buildroot}%{_sysconfdir}/webalizer.conf.sample
|
|---|
| 53 | cp webalizer_it.exe %{buildroot}%{_bindir}
|
|---|
| 54 |
|
|---|
| 55 | %files
|
|---|
| 56 | %doc README
|
|---|
| 57 | %{_mandir}/man1/*.1*
|
|---|
| 58 | %{_bindir}/*
|
|---|
| 59 | %config(noreplace) %{_sysconfdir}/webalizer.conf
|
|---|
| 60 | %config(noreplace) %{_sysconfdir}/httpd/conf.d/webalizer.conf
|
|---|
| 61 | %attr(-, webalizer, root) %dir %{_localstatedir}/www/usage
|
|---|
| 62 | %attr(-, webalizer, root) %dir %{_localstatedir}/lib/webalizer
|
|---|
| 63 | %attr(-, webalizer, root) %{_localstatedir}/www/usage/*.png
|
|---|
| 64 |
|
|---|
| 65 | %changelog
|
|---|