]> git.pld-linux.org Git - packages/logtool.git/blob - logtool.spec
- really use rpmcflags
[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.1.0
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} CFLAGS="%{rpmcflags} -ansi -pedantic -DHAVE_CONFIG_H"
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
38 ln -sf ./logtool $RPM_BUILD_ROOT%{_bindir}/lt
39
40
41 gzip -9nf README TODO CHANGES USAGE CREDITS doc/logtool.txt doc/examples/*
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %files
47 %defattr(644,root,root,755)
48 %doc {README,TODO,CHANGES,USAGE,CREDITS}.gz doc/*.gz doc/examples
49 %attr(750,root,root) %dir %{_sysconfdir}
50 %config(noreplace) %verify(not size md5 mtime) %{_sysconfdir}/*
51 %attr(755,root,root) %{_bindir}/*
This page took 0.191353 seconds and 4 git commands to generate.