]> git.pld-linux.org Git - packages/logtool.git/blob - logtool.spec
small cleanup
[packages/logtool.git] / logtool.spec
1 Summary:        A handy syslog file(s) manipulation/monitoring/parsing tool
2 Vendor:         A.L.Lambert <al@9b.com>
3 Name:           logtool
4 Version:        1.0.5
5 Release:        1
6 License:        GPL
7 Source0:        http://users.digitex.net/~max/logtool/%{name}-%{version}.tar.gz
8 Group:          Applications/Text
9 Group(de):      Applikationen/Text
10 Group(pl):      Aplikacje/Tekst
11 Buildroot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13 %define         _sysconfdir /etc/logtool
14
15 %description
16 Logtool is a handy little tool for manipulation/monitoring/parsing of
17 syslog (and syslog-like) files. It produces output in ANSI, ASCII,
18 CSV, HTML format, and is easily configured to your needs via the
19 /etc/logtool/* files. It is suitable for use in generating easy to
20 read logfile reports, webpages, and online monitoring of logfiles.
21
22 %prep
23 %setup -q  
24
25 %build
26 %{__make} clean
27 %configure 
28 %{__make}
29
30 %install
31 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir},%{_mandir}/man1}
33
34 install conf/{include,exclude,logtool.conf,green,yellow} \
35                                         $RPM_BUILD_ROOT%{_sysconfdir}
36 install logtool/logtool logtail/logtail $RPM_BUILD_ROOT%{_bindir}
37 install doc/logtool.1                   $RPM_BUILD_ROOT%{_mandir}/man1
38
39 ln -sf ./logtool $RPM_BUILD_ROOT%{_bindir}/lt
40
41
42 gzip -9nf README TODO CHANGES USAGE CREDITS doc/logtool.txt doc/examples/*
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %doc {README,TODO,CHANGES,USAGE,CREDITS}.gz doc/*.gz doc/examples
50 %attr(750,root,root) %dir %{_sysconfdir}
51 %config(noreplace) %verify(not size md5 mtime) %{_sysconfdir}/*
52 %attr(755,root,root) %{_bindir}/*
53 %{_mandir}/man1/*
This page took 0.365667 seconds and 4 git commands to generate.