]> git.pld-linux.org Git - packages/webalizer.git/blob - webalizer.spec
- spec adapterized.
[packages/webalizer.git] / webalizer.spec
1 %define         ver     2.00
2 %define         patchlvl 12
3 Summary:        The Webalizer - A web server log file analysis thingie
4 Summary(pl):    Webalizer - analizator logów serwera www
5 Name:           webalizer
6 Version:        %{ver}_%{patchlvl}
7 Release:        1
8 License:        GPL
9 Group:          Networking/Utilities
10 Group(pl):      Sieciowe/Narzêdzia
11 Source0:        ftp://ftp.mrunix.net/pub/webalizer/pre-release/%{name}-%{ver}-%{patchlvl}-src.tar.bz2
12 Patch0:         webalizer-shared_gd.patch
13 Icon:           webalizer.gif
14 URL:            http://www.mrunix.net/webalizer/
15 BuildRequires:  gd-devel >= 1.6.2
16 BuildRequires:  libpng-devel
17 BuildRequires:  zlib-devel
18 BuildRequires:  autoconf
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 The Webalizer is a web server log file analysis program which produces
23 usage statistics in HTML format for viewing with a browser. The
24 results are presented in both columnar and graphical format, which
25 facilitates interpretation. Yearly, monthly, daily and hourly usage
26 statistics are presented, along with the ability to display usage by
27 site, URL, referrer, user agent (browser) and country (user agent and
28 referrer are only available if your web server produces combined log
29 format files).
30
31 %description -l pl
32 Webalizer to program analizuj±cy logi serwera www i tworz±cy strony w
33 formacie HTML zawieraj±ce statystyki u¿ycia tego¿ serwera www.
34
35 %prep
36 %setup -q -n %{name}-%{ver}-%{patchlvl}
37 %patch -p1
38
39 %build
40 aclocal
41 autoconf
42 %configure \
43         --with-gd \
44         --enable-dns 
45 #--with-language=polish
46 make CFLAGS="$RPM_OPT_FLAGS -fsigned-char"  
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_mandir}/man1} \
51         $RPM_BUILD_ROOT/home/httpd/html/usage
52
53 install sample.conf $RPM_BUILD_ROOT%{_sysconfdir}/webalizer.conf
54 install -s webalizer $RPM_BUILD_ROOT%{_bindir}
55 install webalizer.1 $RPM_BUILD_ROOT%{_mandir}/man1/webalizer.1
56 install msfree.png $RPM_BUILD_ROOT/home/httpd/html/usage
57
58 gzip -9nf CHANGES *README* country-codes.txt \
59         $RPM_BUILD_ROOT%{_mandir}/man1/webalizer.1
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %files
65 %defattr(644,root,root,755)
66 %doc *.gz
67 %config(noreplace) %verify(not size md5 mtime) %{_sysconfdir}/webalizer.conf
68 %attr(755,root,root) %{_bindir}/webalizer
69 %{_mandir}/man1/*
70 /home/httpd/html/usage
This page took 0.051273 seconds and 4 git commands to generate.