File cronolog.spec of Package cronolog-enhanced

Name:            cronolog
Version:         1.7.2
Release:         105.1
Summary:         Web log rotation program for Apache, Tomcat, JBoss 

Group:           Applications/System
License:         GPL
Source0:         cronolog-1.7.0-beta.tar.gz
BuildRoot:       %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:	 zlib-devel
Requires(post):  /sbin/install-info
Requires(preun): /sbin/install-info
Patch0:		 cronolog-1.7.0-strncat-compilefix.patch
Patch1:          cronolog-1.7.0_mde5.patch
Patch2:          cronolog-1.7.0_zlibfix.patch

cronolog is a simple filter program that reads log file entries from
standard input and writes each entry to the output file specified
by a filename template and the current date and time. When the
expanded filename changes, the current file is closed and a new one
opened. cronolog is intended to be used in conjunction with a Web server,
such as Apache, to split the access log into daily or monthly logs.
Official project home was, but seems gone.

%setup -q -n cronolog-1.7.0
%patch0 -p 1
%patch1 -p 1
%patch2 -p 1

%configure --enable-zlib
make %{_smp_mflags}

rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
sed -i 's|/www/sbin|/usr/sbin|g' %{buildroot}/%{_mandir}/man1/*
mkdir -p %{buildroot}/%{_bindir}
mv %{buildroot}/%{_sbindir}/cronosplit %{buildroot}/%{_bindir}
rm -f %{buildroot}%{_infodir}/dir

/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :

if [ $1 = 0 ]; then
   /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :

rm -rf %{buildroot}

%defattr(-, root, root)

* Sun Jul 12 2015 Maximilian Decker <>
- be more precise on compression blocks to avoid potential duplicate lines while rotating logs
* Sat Jul 11 2015 Maximilian Decker <>
- fix for failed zlib dependencies with osc SLES 12 and openSuSE 13.2+ 
* Sat Mar 07 2015 Maximilian Decker <>
- v. 1.7.1 (i.e. 1.7.0 beta + strncat fix + zip patch + rotate patch)
- initial suse build service release
openSUSE Build Service is sponsored by