source: spec/trunk/SPECS/webalizer.spec@ 1711

Last change on this file since 1711 was 1687, checked in by Yuri Dario, 6 years ago

spec: webalizer: release version 2.23-08-1.

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