Sophie

Sophie

distrib > Mandriva > 2010.2 > x86_64 > by-pkgid > d87a2d5bc63100b48dad8917ce5ede43 > files > 4

cronolog-1.6.2-7mdv2010.0.src.rpm

Summary:	A flexible log file rotation program for Apache
Name:		cronolog
Version:	1.6.2
Release:	%mkrel 7
License: 	Apache License
Group:		System/Servers
URL: 		http://cronolog.org/
Source0:	http://cronolog.org/download/%{name}-%{version}.tar.bz2
# http://cronolog.org/patches/cronolog-jumbo-patch.txt
Patch0:		cronolog-jumbo-patch.txt
# http://cronolog.org/mailing-list/msg00266.html
Patch1:		cronolog-1.6.2-filemode.diff
Requires(post): info-install
Requires(preun): info-install
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
"cronolog" is a simple program that reads log messages from its input and
writes them to a set of output files, the names of which are constructed using
template and the current date and time. The template uses the same format
specifiers as the Unix date command (which are the same as the standard C
strftime library function).

%prep

%setup -q -n %{name}-%{version}
%patch0 -p1
%patch1 -p0

%build
export CFLAGS="%{optflags} -DFILE_MODE=0640 -DDIR_MODE=0711"
%configure2_5x
%make

%install
rm -rf %{buildroot}

%makeinstall_std

install -m0755 src/zip_send_rm.sh %{buildroot}%{_sbindir}/zip_send_rm

%post
%_install_info %name

%preun
%_remove_install_info %name

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%attr(0755,root,root) %{_sbindir}/cronolog
%attr(0755,root,root) %{_sbindir}/cronosplit
%attr(0755,root,root) %{_sbindir}/zip_send_rm
%attr(0644,root,root) %{_mandir}/man1/*.1*
%{_infodir}/cronolog*


%changelog
* Wed Sep 02 2009 Thierry Vignaud <tvignaud@mandriva.com> 1.6.2-7mdv2010.0
+ Revision: 425295
- rebuild

* Tue Jun 17 2008 Oden Eriksson <oeriksson@mandriva.com> 1.6.2-6mdv2009.0
+ Revision: 222106
- fix dir mode (thanks Andre Nathan)

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request

* Fri Sep 07 2007 Oden Eriksson <oeriksson@mandriva.com> 1.6.2-5mdv2008.0
+ Revision: 81838
- rebuild


* Sun Aug 13 2006 Oden Eriksson <oeriksson@mandriva.com> 1.6.2-4mdv2007.0
- use tighter attribs
- fix url
- added one more patch

* Mon Mar 13 2006 Oden Eriksson <oeriksson@mandriva.com> 1.6.2-3mdk
- added the official "jumbo" patch (P0)

* Sun Jan 08 2006 Oden Eriksson <oeriksson@mandriva.com> 1.6.2-2mdk
- rebuild

* Mon Dec 06 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 1.6.2-1mdk
- inital mandrake package
- used parts of the provided spec file