]> git.pld-linux.org Git - packages/analog.git/blob - analog.spec
- adapterized (sorted %verify attrs)
[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:        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 %define         httpdir /home/services/httpd
17
18 %description
19 WWW server logfile analysis program with lots of features.
20
21 %description -l pl
22 Analizator logów serwera WWW z wieloma opcjami.
23
24 %package form
25 Summary:        Form interface to analog
26 Summary(pl):    Interfejs w postaci formularza do analoga
27 Group:          Networking/Utilities
28 Requires:       %{name} = %{version}-%{release}
29
30 %description form
31 Form interface to the analog httpd log analysis program. You should
32 regenerate the form file to customize it for your server by running
33 'analog -form +O/home/services/httpd/html/anlgform.html' after you
34 have modified /etc/analog.cfg.
35
36 %description form -l pl
37 Interfejs w postaci formularza do programu analog. Powiniene¶
38 wygenerowaæ nowy plik formularza po ustawieniu odpowiednich opcji w
39 /etc/analog.cfg poprzez wykonanie polecenia: 'analog -form
40 +O/home/services/httpd/html/anlgform.html'
41
42 %prep
43 %setup  -q
44 %patch0 -p1
45
46 %build
47 %{__make} %{name} \
48         CFLAGS="%{rpmcflags}" \
49         CEXTRAFLAGS="%{rpmcflags}"
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT%{httpdir}/{icons,cgi-bin,html/usage} \
54         $RPM_BUILD_ROOT{%{_var}/lib/%{name},%{_datadir}/%{name}/lang} \
55         $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir}}
56
57 install analog $RPM_BUILD_ROOT%{_bindir}
58 install analog.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.cfg
59 install lang/* $RPM_BUILD_ROOT%{_datadir}/%{name}/lang
60 install analog.cfg $RPM_BUILD_ROOT%{_sysconfdir}
61 install images/* $RPM_BUILD_ROOT%{httpdir}/icons
62 install anlgform.html $RPM_BUILD_ROOT%{httpdir}/html/usage
63 install anlgform.pl $RPM_BUILD_ROOT%{httpdir}/cgi-bin
64
65 touch $RPM_BUILD_ROOT%{httpdir}/html/usage/analog.html
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %files
71 %defattr(644,root,root,755)
72 %doc docs/* lang/*
73 %attr(755,root,root) %dir %{_datadir}/analog/lang
74 %attr(755,root,root) %dir %{_datadir}/analog
75 %attr(775,root,http) %dir /var/lib/analog
76 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/analog.cfg
77 %attr(755,root,root) %{_bindir}/analog
78 %{_datadir}/analog/lang/*.*
79 %{httpdir}/icons/*.gif
80 %{httpdir}/icons/*.png
81 %attr(755,root,root) %dir %{httpdir}/html/usage
82 %verify(not md5 mtime size) %{httpdir}/html/usage/analog.html
83
84 %files form
85 %defattr(644,root,root,755)
86 %config(noreplace) %verify(not md5 mtime size) %{httpdir}/html/usage/anlgform.html
87 %attr(755,root,root) %{httpdir}/cgi-bin/anlgform.pl
This page took 0.197129 seconds and 3 git commands to generate.