]> git.pld-linux.org Git - packages/analog.git/blob - analog.spec
- missing dirs
[packages/analog.git] / analog.spec
1 # TODO:
2 # - /home/services/httpd ? Is it right place?
3 # - support for webapps
4 Summary:        WWW server logfile analysis program
5 Summary(pl.UTF-8):      Analizator logów serwera WWW
6 Name:           analog
7 Version:        6.0
8 Release:        5
9 License:        GPL v2
10 Group:          Networking/Utilities
11 #Source0Download:       http://www.analog.cx/download.html
12 Source0:        http://www.analog.cx/%{name}-%{version}.tar.gz
13 # Source0-md5:  743d03a16eb8c8488205ae63cdb671cd
14 Patch0:         %{name}-config.patch
15 Requires:       webserver
16 URL:            http://www.analog.cx/
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         _appdir         %{_datadir}/%{name}
20 %define         _webapps        /etc/webapps
21 %define         _webapp         %{name}
22 %define         _sysconfdir     %{_webapps}/%{_webapp}
23
24 %description
25 WWW server logfile analysis program with lots of features.
26
27 %description -l pl.UTF-8
28 Analizator logów serwera WWW z wieloma opcjami.
29
30 %package form
31 Summary:        Form interface to analog
32 Summary(pl.UTF-8):      Interfejs w postaci formularza do analoga
33 Group:          Networking/Utilities
34 Requires:       %{name} = %{version}-%{release}
35
36 %description form
37 Form interface to the analog httpd log analysis program. You should
38 regenerate the form file to customize it for your server by running
39 'analog -form +O%{_appdir}/html/anlgform.html'
40 after you have modified /etc/analog.cfg.
41
42 %description form -l pl.UTF-8
43 Interfejs w postaci formularza do programu analog. Powinieneś
44 wygenerować nowy plik formularza po ustawieniu odpowiednich opcji w
45 /etc/analog.cfg poprzez wykonanie polecenia:
46 'analog -form +O%{_appdir}/html/anlgform.html'
47
48 %prep
49 %setup  -q
50 %patch0 -p1
51
52 %build
53 %{__make} %{name} \
54         CC="%{__cc}" \
55         CFLAGS="%{rpmcflags}" \
56         CEXTRAFLAGS="%{rpmcflags}"
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{_appdir}/{icons,cgi-bin,html/usage,lang} \
61         $RPM_BUILD_ROOT{%{_var}/lib/%{name},%{_bindir},%{_sysconfdir}} \
62         $RPM_BUILD_ROOT%{_mandir}/man1
63
64 install analog $RPM_BUILD_ROOT%{_bindir}
65 install analog.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.cfg
66 install lang/* $RPM_BUILD_ROOT%{_appdir}/lang
67 install analog.cfg $RPM_BUILD_ROOT%{_sysconfdir}
68 install images/* $RPM_BUILD_ROOT%{_appdir}/icons
69 install anlgform.html $RPM_BUILD_ROOT%{_appdir}/html/usage
70 install anlgform.pl $RPM_BUILD_ROOT%{_appdir}/cgi-bin
71 install analog.man $RPM_BUILD_ROOT%{_mandir}/man1/analog.1
72
73 touch $RPM_BUILD_ROOT%{_appdir}/html/usage/analog.html
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %files
79 %defattr(644,root,root,755)
80 %doc docs/* lang/* examples how-to
81 %attr(755,root,root) %dir %{_appdir}/lang
82 %attr(755,root,root) %dir %{_appdir}
83 %attr(775,root,http) %dir %{_var}/lib/%{name}
84 %dir %{_sysconfdir}
85 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.cfg
86 %attr(755,root,root) %{_bindir}/analog
87 %dir %{_appdir}/lang
88 %{_appdir}/lang/*.*
89 %dir %{_appdir}/icons
90 %{_appdir}/icons/*.gif
91 %{_appdir}/icons/*.png
92 %dir %{_appdir}/html
93 %attr(755,root,root) %dir %{_appdir}/html/usage
94 %verify(not md5 mtime size) %{_appdir}/html/usage/analog.html
95 %{_mandir}/man1/*.1*
96
97 %files form
98 %defattr(644,root,root,755)
99 %config(noreplace) %verify(not md5 mtime size) %{_appdir}/html/usage/anlgform.html
100 %dir %{_appdir}/cgi-bin
101 %attr(755,root,root) %{_appdir}/cgi-bin/anlgform.pl
This page took 0.058172 seconds and 4 git commands to generate.