%define name cronolog %define version 1.6.2 %define release 1mdk Summary: A flexible log file rotation program for Apache Name: %{name} Version: %{version} Release: %{release} License: Apache License Group: System/Servers URL: http://www.ford-mason.co.uk/resources/cronolog/ Source0: http://www.ford-mason.co.uk/resources/cronolog/cronolog-%version.tar.bz2 Prereq: /sbin/install-info BuildRoot: %{_tmppath}/%{name}-%{version}-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} %build %configure2_5x %make %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %makeinstall_std %post %_install_info %name %preun %_remove_install_info %name %clean [ "%{buildroot}" != "/" ] && 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(0644,root,root) %{_mandir}/man1/*.1* %{_infodir}/cronolog* %changelog * Mon Dec 06 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 1.6.2-1mdk - inital mandrake package - used parts of the provided spec file