]> git.pld-linux.org Git - packages/analog.git/blob - analog.spec
- new url
[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.32
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 # Source0-md5:  077a2d43c8f5c2bddf37129ca63ec1f8
11 Patch0:         %{name}-config.patch
12 Patch1:         %{name}-png.patch
13 Requires:       webserver
14 URL:            http://www.analog.cx/
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 WWW server logfile analysis program with lots of features.
19
20 %description -l pl
21 Analizator logów serwera www z wieloma opcjami.
22
23 %package form
24 Summary:        Form interface to analog
25 Summary(pl):    Interfejs w postaci formularza do analoga
26 Group:          Networking/Utilities
27 Requires:       %{name} = %{version}
28
29 %description form
30 Form interface to the analog httpd log analysis program. You should
31 regenerate the form file to customize it for your server by running
32 'analog -form +O/home/httpd/html/anlgform.html' after you have
33 modified /etc/analog.cfg.
34
35 %description form -l pl
36 Interfejs w postaci formularza do programu analog. Powiniene¶
37 wygenerowaæ nowy plik formularza po ustawieniu odpowiednich opcji w
38 /etc/analog.cfg poprzez wykonanie polecenia: 'analog -form
39 +O/home/httpd/html/anlgform.html'
40
41 %prep
42 %setup  -q
43 %patch0 -p1
44 %patch1 -p1
45
46 %build
47 %{__make} CFLAGS="%{rpmcflags}" 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 %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 %attr(755,root,root) %dir /home/httpd/html/usage
79 %verify(not size mtime md5) /home/httpd/html/usage/analog.html
80
81 %files form
82 %defattr(644,root,root,755)
83 %config(noreplace) %verify(not size mtime md5) /home/httpd/html/usage/anlgform.html
84 %attr(755,root,root) /home/httpd/cgi-bin/anlgform.pl
This page took 0.07081 seconds and 4 git commands to generate.