Name: daemontools Version: 0.76 Release: 3%{?dist} Summary: Daemontools is a collection of tools for managing UNIX services Group: Applications/System License: Public Domain URL: http://cr.yp.to/daemontools/ Source0: http://cr.yp.to/daemontools/%{name}-%{version}.tar.gz Patch0: daemontools-0.76.patch BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) %description daemontools is a collection of tools for managing UNIX services. supervise monitors a service. It starts the service and restarts the service if it dies. Setting up a new service is easy: all supervise needs is a directory with a run script that runs the service. multilog saves error messages to one or more logs. It optionally timestamps each line and, for each log, includes or excludes lines matching specified patterns. It automatically rotates logs to limit the amount of disk space used. If the disk fills up, it pauses and tries again, without losing any data. %prep %setup -q %patch0 -p1 -b .patch %build sed -i -e \ "s!^gcc.*\$!%{__cc} ${RPM_OPT_FLAGS} -include /usr/include/errno.h!" \ src/conf-cc sed -i -e "s!^gcc.*\$!%{__cc} ${RPM_OPT_FLAGS}!" src/conf-ld package/compile %install rm -rf $RPM_BUILD_ROOT env prefix=$RPM_BUILD_ROOT package/install %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc %{_bindir}/* %changelog * Wed Jan 28 2009 pjp - 0.76-3 - Applying a new patch for package/install script in the source. Also replacing the original compile command in src/conf-cc & src/conf-ld files using sed(1) under build section. * Wed Jan 21 2009 pjp - 0.76-2 - Created a patch for original source tree and applying the same here in this rpm. * Mon Jan 19 2009 pjp - 0.76-1 - Initial RPM release of daemontools-0.76