Name: spawn Version: 0.1 Release: 1 Summary: Simple tool to run several AIX command-lines in parallel Group: Applications/System License: GPLv3+ URL: http://code.google.com/p/spawntool/ Source0: http://spawntool.googlecode.com/files/%{name}-%{version}.tar.gz Patch0: %{name}-%{version}-aix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description spawn is a simple parallel execution utility written to appeal to the Unix mindset. spawn reads shell command lines from stdin, one per line, and then executes them as maximum of N child processes in parallel, and waits for all of the children to exit. If a child process fails with a non-zero exit code, no new children are spawned. Then spawn waits for all existing children to exit and returns the failed exit code. %prep %setup -q %patch0 %build ./configure \ --prefix=%{_prefix} make %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make install DESTDIR=${RPM_BUILD_ROOT} /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : cd ${RPM_BUILD_ROOT} mkdir -p usr/bin cd usr/bin ln -sf ../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc AUTHORS COPYING README %{_bindir}/%{name} /usr/bin/%{name} %changelog * Thu Dec 02 2010 Michael Perzl - 0.1-1 - first version for AIX V5.1 and higher