]> git.pld-linux.org Git - packages/analog.git/blob - analog.spec
- started moving to webapps
[packages/analog.git] / analog.spec
1 Summary:        WWW server logfile analysis program
2 Summary(pl.UTF-8):      Analizator logów serwera WWW
3 Name:           analog
4 Version:        6.0
5 Release:        2.1
6 License:        GPL v2
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 %define         _appdir         %{_datadir}/%{name}
17 %define         _webapps        /etc/webapps
18 %define         _webapp         %{name}
19 %define         _sysconfdir     %{_webapps}/%{_webapp}
20
21 %description
22 WWW server logfile analysis program with lots of features.
23
24 %description -l pl.UTF-8
25 Analizator logów serwera WWW z wieloma opcjami.
26
27 %package form
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}
32
33 %description form
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.
38
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'
44
45 %prep
46 %setup  -q
47 %patch0 -p1
48
49 %build
50 %{__make} %{name} \
51         CC="%{__cc}" \
52         CFLAGS="%{rpmcflags}" \
53         CEXTRAFLAGS="%{rpmcflags}"
54
55 %install
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
60
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
69
70 touch $RPM_BUILD_ROOT%{_appdir}/html/usage/analog.html
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %files
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
83 %{_appdir}/lang/*.*
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
88 %{_mandir}/man1/*.1*
89
90 %files form
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
This page took 0.076263 seconds and 3 git commands to generate.