]>
Commit | Line | Data |
---|---|---|
99040023 PG |
1 | # TODO: |
2 | # - fix outdated url | |
6507de75 | 3 | Summary: A robust log colorizer |
ae1f4d40 | 4 | Summary(pl.UTF-8): Program w C do kolorowania logów |
6507de75 | 5 | Name: ccze |
6 | Version: 0.2.1 | |
71b32239 | 7 | Release: 6 |
6507de75 | 8 | Epoch: 1 |
9 | License: GPL | |
d5aebe15 | 10 | Group: Applications/Text |
6507de75 | 11 | Source0: ftp://bonehunter.rulez.org/pub/ccze/stable/%{name}-%{version}.tar.gz |
d5aebe15 | 12 | # Source0-md5: 221966bce7c5f011eca38157241a0432 |
99040023 PG |
13 | Patch0: %{name}-ldflags.patch |
14 | Patch1: %{name}-segfault.patch | |
15 | Patch2: %{name}-fbsd.patch | |
16 | Patch3: %{name}-Wmulticharacter.patch | |
17 | Patch4: %{name}-error.patch | |
18 | Patch5: %{name}-tinfo.patch | |
0c292e1b | 19 | Patch6: %{name}-debian.patch |
6507de75 | 20 | URL: http://bonehunter.rulez.org/CCZE.html |
f6e626d3 | 21 | BuildRequires: autoconf |
22 | BuildRequires: automake | |
6507de75 | 23 | BuildRequires: ncurses-devel >= 5.0 |
24 | BuildRequires: pcre-devel >= 3.1 | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
99040023 PG |
27 | #define filterout_ld -Wl,--as-needed |
28 | ||
6507de75 | 29 | %description |
30 | CCZE is a roboust and modular log colorizer, with plugins for apm, | |
31 | exim, fetchmail, httpd, postfix, procmail, squid, syslog, ulogd, | |
32 | vsftpd, xferlog and more. | |
33 | ||
bea2a16f JR |
34 | %description -l pl.UTF-8 |
35 | CCZE jest programem napisanym w C. Umożliwia kolorowanie logów | |
36 | systemowych, FTP, WWW i mail. Posiada wtyczki, może korzystać z plików | |
37 | konfiguracyjnych, umie generować wyniki w postaci kolorowej strony | |
6507de75 | 38 | html. |
39 | ||
d5aebe15 JB |
40 | %package devel |
41 | Summary: Header file for CCZE plugins | |
ae1f4d40 | 42 | Summary(pl.UTF-8): Plik nagłówkowy dla wtyczek CCZE |
d5aebe15 JB |
43 | Group: Development/Libraries |
44 | Requires: ncurses-devel >= 5.0 | |
45 | Requires: pcre-devel >= 3.1 | |
46 | # doesn't require base | |
47 | ||
48 | %description devel | |
49 | Header file for CCZE plugins. | |
50 | ||
bea2a16f JR |
51 | %description devel -l pl.UTF-8 |
52 | Plik nagłówkowy dla wtyczek CCZE. | |
d5aebe15 | 53 | |
6507de75 | 54 | %prep |
55 | %setup -q | |
99040023 PG |
56 | %patch0 -p1 |
57 | %patch1 -p1 | |
58 | %patch2 -p0 | |
59 | %patch3 -p1 | |
60 | %patch4 -p1 | |
61 | %patch5 -p1 | |
0c292e1b | 62 | %patch6 -p1 |
6507de75 | 63 | |
64 | %build | |
f6e626d3 | 65 | %{__aclocal} |
66 | %{__autoheader} | |
67 | %{__autoconf} | |
d5aebe15 JB |
68 | CFLAGS="%{rpmcflags} -I/usr/include/ncurses" |
69 | %configure \ | |
70 | --with-builtins=all | |
71 | ||
6507de75 | 72 | %{__make} |
73 | ||
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
d5aebe15 JB |
76 | install -d $RPM_BUILD_ROOT%{_sysconfdir} |
77 | ||
6507de75 | 78 | %{__make} install \ |
79 | DESTDIR=$RPM_BUILD_ROOT | |
d5aebe15 JB |
80 | |
81 | src/ccze-dump >$RPM_BUILD_ROOT%{_sysconfdir}/cczerc | |
6507de75 | 82 | |
83 | %clean | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %files | |
87 | %defattr(644,root,root,755) | |
88 | %doc AUTHORS ChangeLog ChangeLog-0.1 NEWS README THANKS FAQ | |
b1a4418f | 89 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cczerc |
6507de75 | 90 | %attr(755,root,root) %{_bindir}/ccze |
91 | %attr(755,root,root) %{_bindir}/ccze-cssdump | |
6507de75 | 92 | %{_mandir}/man1/ccze.1* |
93 | %{_mandir}/man1/ccze-cssdump.1* | |
d5aebe15 JB |
94 | |
95 | %files devel | |
96 | %defattr(644,root,root,755) | |
97 | %{_includedir}/ccze.h | |
6507de75 | 98 | %{_mandir}/man7/ccze-plugin.7* |