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