1 Summary: WWW server logfile analysis program
2 Summary(pl.UTF-8): Analizator logów serwera WWW
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
13 URL: http://www.analog.cx/
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 %define _appdir %{_datadir}/%{name}
17 %define _webapps /etc/webapps
18 %define _webapp %{name}
19 %define _sysconfdir %{_webapps}/%{_webapp}
22 WWW server logfile analysis program with lots of features.
24 %description -l pl.UTF-8
25 Analizator logów serwera WWW z wieloma opcjami.
28 Summary: Form interface to analog
29 Summary(pl.UTF-8): Interfejs w postaci formularza do analoga
30 Group: Networking/Utilities
31 Requires: %{name} = %{version}-%{release}
34 Form interface to the analog httpd log analysis program. You should
35 regenerate the form file to customize it for your server by running
36 'analog -form +O%{_appdir}/html/anlgform.html'
37 after you have modified /etc/analog.cfg.
39 %description form -l pl.UTF-8
40 Interfejs w postaci formularza do programu analog. Powinieneś
41 wygenerować nowy plik formularza po ustawieniu odpowiednich opcji w
42 /etc/analog.cfg poprzez wykonanie polecenia:
43 'analog -form +O%{_appdir}/html/anlgform.html'
52 CFLAGS="%{rpmcflags}" \
53 CEXTRAFLAGS="%{rpmcflags}"
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT%{_appdir}/{icons,cgi-bin,html/usage,lang} \
58 $RPM_BUILD_ROOT{%{_var}/lib/%{name},%{_bindir},%{_sysconfdir}} \
59 $RPM_BUILD_ROOT%{_mandir}/man1
61 install analog $RPM_BUILD_ROOT%{_bindir}
62 install analog.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.cfg
63 install lang/* $RPM_BUILD_ROOT%{_appdir}/lang
64 install analog.cfg $RPM_BUILD_ROOT%{_sysconfdir}
65 install images/* $RPM_BUILD_ROOT%{_appdir}/icons
66 install anlgform.html $RPM_BUILD_ROOT%{_appdir}/html/usage
67 install anlgform.pl $RPM_BUILD_ROOT%{_appdir}/cgi-bin
68 install analog.man $RPM_BUILD_ROOT%{_mandir}/man1/analog.1
70 touch $RPM_BUILD_ROOT%{_appdir}/html/usage/analog.html
73 rm -rf $RPM_BUILD_ROOT
76 %defattr(644,root,root,755)
77 %doc docs/* lang/* examples how-to
78 %attr(755,root,root) %dir %{_appdir}/lang
79 %attr(755,root,root) %dir %{_appdir}
80 %attr(775,root,http) %dir %{_var}/lib/%{name}
81 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.cfg
82 %attr(755,root,root) %{_bindir}/analog
84 %{_appdir}/icons/*.gif
85 %{_appdir}/icons/*.png
86 %attr(755,root,root) %dir %{_appdir}/html/usage
87 %verify(not md5 mtime size) %{_appdir}/html/usage/analog.html
91 %defattr(644,root,root,755)
92 %config(noreplace) %verify(not md5 mtime size) %{_appdir}/html/usage/anlgform.html
93 %attr(755,root,root) %{_appdir}/cgi-bin/anlgform.pl