LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File cronolog.spec of Package cronolog-enhanced (Project home:mdecker)

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

Group:           Applications/System
License:         GPL
URL:             http://burbon04.gmxhome.de/linux/cronolog.html
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

%description
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 http://cronolog.org, but seems gone.

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

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

%install
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

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

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

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_sbindir}/*
%{_bindir}/*
%{_mandir}/man1/*
%{_infodir}/*

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