forked from davidhrbac/specs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ccze.spec
78 lines (62 loc) · 1.76 KB
/
ccze.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
Summary: A robust log colorizer
Name: ccze
Version: 0.2.1
Release: 2%{?dist}
License: GPL
Group: Applications/Text
Source0: ftp://bonehunter.rulez.org/pub/ccze/stable/%{name}-%{version}.tar.gz
# Source0-md5: 221966bce7c5f011eca38157241a0432
Patch0: ccze-0.2.1-nosegfault-1.patch
URL: http://bonehunter.rulez.org/CCZE.html
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: ncurses-devel >= 5.0
BuildRequires: pcre-devel >= 3.1
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(id -u -n)
%description
CCZE is a roboust and modular log colorizer, with plugins for apm,
exim, fetchmail, httpd, postfix, procmail, squid, syslog, ulogd,
vsftpd, xferlog and more.
%package devel
Summary: Header file for CCZE plugins
Group: Development/Libraries
Requires: ncurses-devel >= 5.0
Requires: pcre-devel >= 3.1
%description devel
Header file for CCZE plugins.
%prep
%setup -q
%patch0 -p1
%build
%{__aclocal}
%{__autoheader}
%{__autoconf}
#CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
%configure \
--with-builtins=all
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_sysconfdir}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
src/ccze-dump >$RPM_BUILD_ROOT%{_sysconfdir}/cczerc
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog ChangeLog-0.1 NEWS README THANKS FAQ
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cczerc
%attr(755,root,root) %{_bindir}/ccze
%attr(755,root,root) %{_bindir}/ccze-cssdump
%{_mandir}/man1/ccze.1*
%{_mandir}/man1/ccze-cssdump.1*
%files devel
%defattr(644,root,root,755)
%{_includedir}/ccze.h
%{_mandir}/man7/ccze-plugin.7*
%changelog
* Tue Jul 14 2009 David Hrbáč <[email protected]> - 0.2.1-2
- segfault patch
* Wed Jun 10 2009 David Hrbáč <[email protected]> - 0.2.1-1
- initial build