]> git.pld-linux.org Git - packages/analog.git/blob - analog.spec
- added Group(es/pt_BR)
[packages/analog.git] / analog.spec
1 Summary:        WWW server logfile analysis program
2 Summary(pl):    Analizator logów serwera www
3 Name:           analog
4 Version:        5.03
5 Release:        1
6 License:        distributable
7 Group:          Networking/Utilities
8 Group(de):      Netzwerkwesen/Werkzeuge
9 Group(es):      Red/Utilitarios
10 Group(pl):      Sieciowe/Narzêdzia
11 Group(pt_BR):   Rede/Utilitários
12 Source0:        ftp://ftp.nhl.nl/pub/unix/analog/%{name}-%{version}.tar.gz
13 Patch0:         %{name}-config.patch
14 Requires:       webserver
15 URL:            http://www.statslab.cam.ac.uk/~sret1/analog/
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 WWW server logfile analysis program with lots of features.
20
21 %description -l pl
22 Analizator logów serwera www z wieloma opcjami.
23
24 %package form
25 Summary:        Form interface to analog
26 Summary(pl):    Interfejs w postaci formularza do analoga
27 Group:          Networking/Utilities
28 Group(de):      Netzwerkwesen/Werkzeuge
29 Group(es):      Red/Utilitarios
30 Group(pl):      Sieciowe/Narzêdzia
31 Group(pt_BR):   Rede/Utilitários
32 Requires:       %{name} = %{version}
33
34 %description form
35 Form interface to the analog httpd log analysis program. You should
36 regenerate the form file to customize it for your server by running
37 'analog -form +O/home/httpd/html/anlgform.html' after you have
38 modified /etc/analog.cfg.
39
40 %description -l pl form
41 Interfejs w postaci formularza do programu analog. Powiniene¶
42 wygenerowaæ nowy plik formularza po ustawieniu odpowiednich opcji w
43 /etc/analog.cfg poprzez wykonanie polecenia: 'analog -form
44 +O/home/httpd/html/anlgform.html'
45
46 %prep
47 %setup -q
48 %patch0 -p1
49
50 %build
51 %{__make} CFLAGS="%{rpmcflags}" CEXTRAFLAGS="%{rpmcflags}" %{name}
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT/home/httpd/{icons,cgi-bin,html/usage} \
56         $RPM_BUILD_ROOT{%{_var}/lib/%{name},%{_datadir}/%{name}/lang} \
57         $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir}}
58
59 install analog $RPM_BUILD_ROOT%{_bindir}
60 install analog.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.cfg
61 install lang/* $RPM_BUILD_ROOT%{_datadir}/%{name}/lang
62 install analog.cfg $RPM_BUILD_ROOT%{_sysconfdir}
63 install images/* $RPM_BUILD_ROOT/home/httpd/icons
64 install anlgform.html $RPM_BUILD_ROOT/home/httpd/html/usage
65 install anlgform.pl $RPM_BUILD_ROOT/home/httpd/cgi-bin
66
67 touch $RPM_BUILD_ROOT/home/httpd/html/usage/analog.html
68
69 gzip -9nf docs/*.txt lang/*.html
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %files
75 %defattr(644,root,root,755)
76 %doc docs/* lang/*.gz
77 %attr(755,root,root) %dir %{_datadir}/analog/lang
78 %attr(755,root,root) %dir %{_datadir}/analog
79 %attr(775,root,http) %dir /var/lib/analog
80 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/analog.cfg
81 %attr(755,root,root) %{_bindir}/analog
82 %{_datadir}/analog/lang/*.*
83 /home/httpd/icons/*.gif
84 %attr(755,root,root) %dir /home/httpd/html/usage
85 %verify(not size mtime md5) /home/httpd/html/usage/analog.html
86
87 %files form
88 %defattr(644,root,root,755)
89 %config(noreplace) %verify(not size mtime md5) /home/httpd/html/usage/anlgform.html
90 %attr(755,root,root) /home/httpd/cgi-bin/anlgform.pl
This page took 0.136591 seconds and 4 git commands to generate.