vim cronolog.spec
%define name cronolog
%define version 1.6.2
%define release 1
%define group System Networking/Daemons
Summary: a flexible logfilerotation programforApache
Name: %{name}
Version: %{version}
Release: %{release}
Copyright: Apache license
Group: %{group}
Packager: Andrew Ford <A.Ford@ford-mason.co.uk>
URL: http://www.ford-mason.co.uk/resources/cronolog/
Source: http://www.ford-mason.co.uk/resources/cronolog/cronolog-%version.tar.gz
BuildRoot: /tmp/%{name}-root
%description
"
cronolog"is a simple program that reads log messages from its input
and writes them to asetof output files, the names ofwhichare
constructed using template and the currentdateandtime. The
template uses the sameformatspecifiers as the Unixdatecommand
(whichare the same as the standard C strftime libraryfunction).
%changelog
%prep
%setup -n %{name}-%{version}
%build
./configure
make
%install
rm-rf $RPM_BUILD_ROOT
mkdir-p $RPM_BUILD_ROOT/usr/share/doc/%{name}-${RPM_PACKAGE_VERSION} -m 755
makeprefix=$RPM_BUILD_ROOT/usrmandir=$RPM_BUILD_ROOT/usr/share/maninstall
install-m 644 README $RPM_BUILD_ROOT/usr/share/doc/%name-${RPM_PACKAGE_VERSION}
#install -m 644 $RPM_SOURCE_DIR/doc/cronolog.1m $RPM_BUILD_ROOT/usr/man/man1/cronolog.1
#install -m 755 $RPM_SOURCE_DIR/src/cronolog $RPM_BUILD_ROOT/usr/sbin/cronolog
#strip $RPM_BUILD_ROOT/usr/sbin/* || echo Ignored strip on a non-binary file
%post
%preun
%postun
%clean
rm-rf $RPM_BUILD_ROOT
%files
#%attr(-,root,root) /usr/share/doc/%{name}-%{version}/README
%attr(-,root,root)/usr/sbin/cronolog
%attr(-,root,root)/usr/sbin/cronosplit
#%files man
%attr(644,root,root)/usr/share/man/man1/*.1*
%doc README