f0a7d8e
Summary:		A robust log colorizer
f0a7d8e
Summary(ru):	Мощный коллоризатор логов
f0a7d8e
Name:		ccze
f0a7d8e
Version:		0.2.1
c5e1204
Release:		10%{?dist}
f0a7d8e
# http://web.archive.org/web/20040803024236/bonehunter.rulez.org/CCZE.phtml
f0a7d8e
URL:			http://bonehunter.rulez.org/CCZE.html
f0a7d8e
License:		GPLv2+
f0a7d8e
Group:		Applications/Text
f0a7d8e
Source:		ftp://bonehunter.rulez.org/pub/ccze/stable/ccze-%{version}.tar.gz
f0a7d8e
# Package intended to EL-5 too, so we still need define BuildRoot
f0a7d8e
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
f0a7d8e
BuildRequires:	ncurses-devel >= 5.0, pcre-devel >= 3.1
f0a7d8e
# Upstream is dead. So, patch himself.
f0a7d8e
Patch0:		ccze-0.2.1-Wmulticharacter.patch
613d73e
# Upstream is dead, port Debian patch to correct handle -o switch
613d73e
Patch1:		ccze-opts.diff
f0a7d8e
f0a7d8e
%description
f0a7d8e
CCZE is a roboust and modular log colorizer, with plugins for apm,
f0a7d8e
exim, fetchmail, httpd, postfix, procmail, squid, syslog, ulogd,
f0a7d8e
vsftpd, xferlog and more.
f0a7d8e
f0a7d8e
%description -l ru
f0a7d8e
CCZE это мощный и модульный раскрашиватель логов. Имеются модули-
f0a7d8e
-плагины для: apm, exim, fetchmail, httpd, postfix, procmail, squid,
f0a7d8e
syslog, ulogd, vsftpd, xferlog и другие.
f0a7d8e
f0a7d8e
%prep
f0a7d8e
%setup -q
f0a7d8e
%patch0 -p1 -b .-Wmulticharacter
613d73e
%patch1 -p1 -b .-Wmulticharacter
f0a7d8e
f0a7d8e
%build
f0a7d8e
%configure --with-builtins=all
f0a7d8e
# To avoid problem: /usr/include/errno.h:69: error: two or more data types in declaration specifiers
f0a7d8e
# we add -D__error_t_defined=1 to inform what errno_t already defined.
f0a7d8e
make %{?_smp_mflags} CFLAGS="%{optflags} -D__error_t_defined=1"
f0a7d8e
f0a7d8e
%install
f0a7d8e
rm -rf %{buildroot}
f0a7d8e
f0a7d8e
iconv -f ISO-8859-1 -t UTF-8 THANKS > THANKS.new
f0a7d8e
touch --reference THANKS THANKS.new
f0a7d8e
mv -f THANKS.new THANKS
f0a7d8e
f0a7d8e
#% makeinstall
f0a7d8e
make install DESTDIR="%{buildroot}"
f0a7d8e
f0a7d8e
install -d %{buildroot}/%{_sysconfdir}
f0a7d8e
src/ccze-dump > %{buildroot}/%{_sysconfdir}/cczerc
f0a7d8e
f0a7d8e
rm %{buildroot}/%{_includedir}/ccze.h
f0a7d8e
f0a7d8e
%clean
f0a7d8e
rm -rf %{buildroot}
f0a7d8e
f0a7d8e
%files
f0a7d8e
%defattr(-,root,root,-)
f0a7d8e
%doc AUTHORS COPYING ChangeLog ChangeLog-0.1 NEWS README THANKS FAQ
f0a7d8e
%config(noreplace) %{_sysconfdir}/cczerc
f0a7d8e
%{_bindir}/ccze
f0a7d8e
%{_bindir}/ccze-cssdump
f0a7d8e
%{_mandir}/man1/ccze.1*
f0a7d8e
%{_mandir}/man1/ccze-cssdump.1*
f0a7d8e
%{_mandir}/man7/ccze-plugin.7*
f0a7d8e
f0a7d8e
%changelog
c5e1204
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-10
c5e1204
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c5e1204
66c26ca
* Fri Feb 10 2012 Petr Pisar <ppisar@redhat.com> - 0.2.1-9
66c26ca
- Rebuild against PCRE 8.30
66c26ca
33f6a2a
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-8
33f6a2a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
33f6a2a
1d5a8bc
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-7
1d5a8bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
1d5a8bc
613d73e
* Mon Apr 5 2010 Pavel Alexeev <Pahan@Hubbitus.info> - 0.2.1-6
613d73e
- Port from Debian Patch1:		ccze-opts.diff. BZ#578958
613d73e
f0a7d8e
* Tue Aug 4 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.2.1-5
f0a7d8e
- Things of Martin Gieseking in informal review:
f0a7d8e
- Add %%{?_smp_mflags} to make.
f0a7d8e
- Change BuildRoot.
f0a7d8e
f0a7d8e
* Sat Jul 11 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.2.1-4
f0a7d8e
- %%makeinstall replaced by make install DESTDIR="%%{buildroot}" as pointed by Jussi Lehtola.
f0a7d8e
f0a7d8e
* Sat Jul 11 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.2.1-3
f0a7d8e
- Import form ftp://ftp.pbone.net/mirror/norlug.org/norlug/redhat-7.3/SRPMS/ccze-0.2.1-2.norlug.src.rpm
f0a7d8e
- Reformat with tabs.
f0a7d8e
- Remove unneded defines, and replece it by direct values in appropriate tags:
f0a7d8e
	%%define version 0.2.1, %%define dist stable, %%define release 2.norlug
f0a7d8e
- Add %%{?dist} part into release
f0a7d8e
- Add Fedora system optflags to build
f0a7d8e
- Add Patch0: ccze-0.2.1-Wmulticharacter.patch
f0a7d8e
- Add -D__error_t_defined=1 into CFLAGS.
f0a7d8e
- Add clan buildroot in %%install
f0a7d8e
- License changed from GPL to GPLv2+
f0a7d8e
- Add noreplace option to %%config file
f0a7d8e
- Remove devel file %%{_includedir}/ccze.h
f0a7d8e
- Add COPYING to %%doc files.
f0a7d8e
- iconv'ed THANKS from ISO-8859-1 (guessed)
f0a7d8e
- Add Summary and description on Russian.
f0a7d8e
f0a7d8e
* Thu Sep 4 2003 Chip Cuccio <chipster@norlug.org> 0.2.1-2
f0a7d8e
- initial build