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