]> git.pld-linux.org Git - packages/analog.git/blame_incremental - analog.spec
- fix file listed twice
[packages/analog.git] / analog.spec
... / ...
CommitLineData
1# TODO:
2# - /home/services/httpd ? Is it right place?
3# - support for webapps
4Summary: WWW server logfile analysis program
5Summary(pl.UTF-8): Analizator logów serwera WWW
6Name: analog
7Version: 6.0
8Release: 7
9License: GPL v2
10Group: Networking/Utilities
11#Source0Download: http://www.analog.cx/download.html
12Source0: http://www.analog.cx/%{name}-%{version}.tar.gz
13# Source0-md5: 743d03a16eb8c8488205ae63cdb671cd
14Patch0: %{name}-config.patch
15Requires: webserver
16URL: http://www.analog.cx/
17BuildRoot: %{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
25WWW server logfile analysis program with lots of features.
26
27%description -l pl.UTF-8
28Analizator logów serwera WWW z wieloma opcjami.
29
30%package form
31Summary: Form interface to analog
32Summary(pl.UTF-8): Interfejs w postaci formularza do analoga
33Group: Networking/Utilities
34Requires: %{name} = %{version}-%{release}
35
36%description form
37Form interface to the analog httpd log analysis program. You should
38regenerate the form file to customize it for your server by running
39'analog -form +O%{_appdir}/html/anlgform.html'
40after you have modified /etc/analog.cfg.
41
42%description form -l pl.UTF-8
43Interfejs w postaci formularza do programu analog. Powinieneś
44wygenerować 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
59rm -rf $RPM_BUILD_ROOT
60install -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
64install analog $RPM_BUILD_ROOT%{_bindir}
65install analog.cfg $RPM_BUILD_ROOT/etc/%{name}.cfg
66install lang/* $RPM_BUILD_ROOT%{_appdir}/lang
67install analog.cfg $RPM_BUILD_ROOT%{_sysconfdir}
68install images/* $RPM_BUILD_ROOT%{_appdir}/icons
69install anlgform.html $RPM_BUILD_ROOT%{_appdir}/html/usage
70install anlgform.pl $RPM_BUILD_ROOT%{_appdir}/cgi-bin
71install analog.man $RPM_BUILD_ROOT%{_mandir}/man1/analog.1
72
73touch $RPM_BUILD_ROOT%{_appdir}/html/usage/analog.html
74
75%clean
76rm -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}
82%attr(775,root,http) %dir %{_var}/lib/%{name}
83%dir %{_sysconfdir}
84%config(noreplace) %verify(not md5 mtime size) /etc/%{name}.cfg
85%attr(755,root,root) %{_bindir}/analog
86%dir %{_appdir}/lang
87%{_appdir}/lang/*.*
88%dir %{_appdir}/icons
89%{_appdir}/icons/*.gif
90%{_appdir}/icons/*.png
91%dir %{_appdir}/html
92%attr(755,root,root) %dir %{_appdir}/html/usage
93%verify(not md5 mtime size) %{_appdir}/html/usage/analog.html
94%{_mandir}/man1/*.1*
95
96%files form
97%defattr(644,root,root,755)
98%config(noreplace) %verify(not md5 mtime size) %{_appdir}/html/usage/anlgform.html
99%dir %{_appdir}/cgi-bin
100%attr(755,root,root) %{_appdir}/cgi-bin/anlgform.pl
This page took 0.163944 seconds and 5 git commands to generate.