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