]> git.pld-linux.org Git - packages/analog.git/blob - analog.spec
- updated to 6.0, builds but not tested, NFY
[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:        6.0
5 Release:        0.1
6 License:        GPL
7 Group:          Networking/Utilities
8 #Source0Download:       http://www.analog.cx/download.html
9 Source0:        http://www.analog.cx/%{name}-%{version}.tar.gz
10 # Source0-md5:  743d03a16eb8c8488205ae63cdb671cd
11 Patch0:         %{name}-config.patch
12 Requires:       webserver
13 URL:            http://www.analog.cx/
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
44 %build
45 %{__make} %{name} \
46         CFLAGS="%{rpmcflags}" \
47         CEXTRAFLAGS="%{rpmcflags}"
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 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %files
69 %defattr(644,root,root,755)
70 %doc docs/* lang/*
71 %attr(755,root,root) %dir %{_datadir}/analog/lang
72 %attr(755,root,root) %dir %{_datadir}/analog
73 %attr(775,root,http) %dir /var/lib/analog
74 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/analog.cfg
75 %attr(755,root,root) %{_bindir}/analog
76 %{_datadir}/analog/lang/*.*
77 /home/httpd/icons/*.gif
78 /home/httpd/icons/*.png
79 %attr(755,root,root) %dir /home/httpd/html/usage
80 %verify(not size mtime md5) /home/httpd/html/usage/analog.html
81
82 %files form
83 %defattr(644,root,root,755)
84 %config(noreplace) %verify(not size mtime md5) /home/httpd/html/usage/anlgform.html
85 %attr(755,root,root) /home/httpd/cgi-bin/anlgform.pl
This page took 0.107095 seconds and 4 git commands to generate.