]> git.pld-linux.org Git - packages/analog.git/blob - analog.spec
- merge png patch from MDK (use by default png images).
[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.31
5 Release:        1
6 License:        distributable
7 Group:          Networking/Utilities
8 #Source0Download:       http://www.analog.cx/download.html
9 Source0:        http://www.analog.cx/%{name}-%{version}.tar.gz
10 Patch0:         %{name}-config.patch
11 Patch1:         %{name}-png.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 Requires:       %{name} = %{version}
27
28 %description form
29 Form interface to the analog httpd log analysis program. You should
30 regenerate the form file to customize it for your server by running
31 'analog -form +O/home/httpd/html/anlgform.html' after you have
32 modified /etc/analog.cfg.
33
34 %description form -l pl
35 Interfejs w postaci formularza do programu analog. Powiniene¶
36 wygenerowaæ nowy plik formularza po ustawieniu odpowiednich opcji w
37 /etc/analog.cfg poprzez wykonanie polecenia: 'analog -form
38 +O/home/httpd/html/anlgform.html'
39
40 %prep
41 %setup  -q
42 %patch0 -p1
43 %patch1 -p1
44
45 %build
46 %{__make} CFLAGS="%{rpmcflags}" CEXTRAFLAGS="%{rpmcflags}" %{name}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT/home/httpd/{icons,cgi-bin,html/usage} \
51         $RPM_BUILD_ROOT{%{_var}/lib/%{name},%{_datadir}/%{name}/lang} \
52         $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir}}
53
54 install analog $RPM_BUILD_ROOT%{_bindir}
55 install analog.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.cfg
56 install lang/* $RPM_BUILD_ROOT%{_datadir}/%{name}/lang
57 install analog.cfg $RPM_BUILD_ROOT%{_sysconfdir}
58 install images/* $RPM_BUILD_ROOT/home/httpd/icons
59 install anlgform.html $RPM_BUILD_ROOT/home/httpd/html/usage
60 install anlgform.pl $RPM_BUILD_ROOT/home/httpd/cgi-bin
61
62 touch $RPM_BUILD_ROOT/home/httpd/html/usage/analog.html
63
64 %clean
65 rm -rf $RPM_BUILD_ROOT
66
67 %files
68 %defattr(644,root,root,755)
69 %doc docs/* lang/*
70 %attr(755,root,root) %dir %{_datadir}/analog/lang
71 %attr(755,root,root) %dir %{_datadir}/analog
72 %attr(775,root,http) %dir /var/lib/analog
73 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/analog.cfg
74 %attr(755,root,root) %{_bindir}/analog
75 %{_datadir}/analog/lang/*.*
76 /home/httpd/icons/*.gif
77 %attr(755,root,root) %dir /home/httpd/html/usage
78 %verify(not size mtime md5) /home/httpd/html/usage/analog.html
79
80 %files form
81 %defattr(644,root,root,755)
82 %config(noreplace) %verify(not size mtime md5) /home/httpd/html/usage/anlgform.html
83 %attr(755,root,root) /home/httpd/cgi-bin/anlgform.pl
This page took 0.087736 seconds and 4 git commands to generate.