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