diff --git a/.cvsignore b/.cvsignore index e69de29..2db042a 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +ccze-0.2.1.tar.gz diff --git a/ccze-0.2.1-Wmulticharacter.patch b/ccze-0.2.1-Wmulticharacter.patch new file mode 100644 index 0000000..641c3bf --- /dev/null +++ b/ccze-0.2.1-Wmulticharacter.patch @@ -0,0 +1,12 @@ +diff -NaurEbBH ccze-0.2.1.orig/src/Makefile.in ccze-0.2.1/src/Makefile.in +--- ccze-0.2.1.orig/src/Makefile.in 2003-05-13 14:09:30.000000000 -0400 ++++ ccze-0.2.1/src/Makefile.in 2009-07-11 15:06:20.000000000 -0400 +@@ -22,7 +22,7 @@ + -Wbad-function-cast -Wsign-compare -Wchar-subscripts \ + -Wcomment -Wformat -Wformat-nonliteral -Wformat-security \ + -Wimplicit -Wmain -Wmissing-braces -Wparentheses \ +- -Wreturn-type -Wswitch -Wmulticharacter \ ++ -Wreturn-type -Wswitch \ + -Wmissing-noreturn -Wmissing-declarations @WFLAGS_3X@ + WFLAGS_ICC = -Wall -wd193,279,810,869,1418,1419 + WFLAGS_3X = -Wsequence-point -Wdiv-by-zero -W -Wunused \ diff --git a/ccze.spec b/ccze.spec new file mode 100644 index 0000000..44baca5 --- /dev/null +++ b/ccze.spec @@ -0,0 +1,92 @@ +Summary: A robust log colorizer +Summary(ru): Мощный коллоризатор логов +Name: ccze +Version: 0.2.1 +Release: 5%{?dist} +# http://web.archive.org/web/20040803024236/bonehunter.rulez.org/CCZE.phtml +URL: http://bonehunter.rulez.org/CCZE.html +License: GPLv2+ +Group: Applications/Text +Source: ftp://bonehunter.rulez.org/pub/ccze/stable/ccze-%{version}.tar.gz +# Package intended to EL-5 too, so we still need define BuildRoot +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: ncurses-devel >= 5.0, pcre-devel >= 3.1 +# Upstream is dead. So, patch himself. +Patch0: ccze-0.2.1-Wmulticharacter.patch + +%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. + +%description -l ru +CCZE это мощный и модульный раскрашиватель логов. Имеются модули- +-плагины для: apm, exim, fetchmail, httpd, postfix, procmail, squid, +syslog, ulogd, vsftpd, xferlog и другие. + +%prep +%setup -q +%patch0 -p1 -b .-Wmulticharacter + +%build +%configure --with-builtins=all +# To avoid problem: /usr/include/errno.h:69: error: two or more data types in declaration specifiers +# we add -D__error_t_defined=1 to inform what errno_t already defined. +make %{?_smp_mflags} CFLAGS="%{optflags} -D__error_t_defined=1" + +%install +rm -rf %{buildroot} + +iconv -f ISO-8859-1 -t UTF-8 THANKS > THANKS.new +touch --reference THANKS THANKS.new +mv -f THANKS.new THANKS + +#% makeinstall +make install DESTDIR="%{buildroot}" + +install -d %{buildroot}/%{_sysconfdir} +src/ccze-dump > %{buildroot}/%{_sysconfdir}/cczerc + +rm %{buildroot}/%{_includedir}/ccze.h + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc AUTHORS COPYING ChangeLog ChangeLog-0.1 NEWS README THANKS FAQ +%config(noreplace) %{_sysconfdir}/cczerc +%{_bindir}/ccze +%{_bindir}/ccze-cssdump +%{_mandir}/man1/ccze.1* +%{_mandir}/man1/ccze-cssdump.1* +%{_mandir}/man7/ccze-plugin.7* + +%changelog +* Tue Aug 4 2009 Pavel Alexeev - 0.2.1-5 +- Things of Martin Gieseking in informal review: +- Add %%{?_smp_mflags} to make. +- Change BuildRoot. + +* Sat Jul 11 2009 Pavel Alexeev - 0.2.1-4 +- %%makeinstall replaced by make install DESTDIR="%%{buildroot}" as pointed by Jussi Lehtola. + +* Sat Jul 11 2009 Pavel Alexeev - 0.2.1-3 +- Import form ftp://ftp.pbone.net/mirror/norlug.org/norlug/redhat-7.3/SRPMS/ccze-0.2.1-2.norlug.src.rpm +- Reformat with tabs. +- Remove unneded defines, and replece it by direct values in appropriate tags: + %%define version 0.2.1, %%define dist stable, %%define release 2.norlug +- Add %%{?dist} part into release +- Add Fedora system optflags to build +- Add Patch0: ccze-0.2.1-Wmulticharacter.patch +- Add -D__error_t_defined=1 into CFLAGS. +- Add clan buildroot in %%install +- License changed from GPL to GPLv2+ +- Add noreplace option to %%config file +- Remove devel file %%{_includedir}/ccze.h +- Add COPYING to %%doc files. +- iconv'ed THANKS from ISO-8859-1 (guessed) +- Add Summary and description on Russian. + +* Thu Sep 4 2003 Chip Cuccio 0.2.1-2 +- initial build diff --git a/import.log b/import.log new file mode 100644 index 0000000..6167492 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +ccze-0_2_1-5_fc11:HEAD:ccze-0.2.1-5.fc11.src.rpm:1249596890 diff --git a/sources b/sources index e69de29..33b2ded 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +221966bce7c5f011eca38157241a0432 ccze-0.2.1.tar.gz