File xjobs.spec of Package xjobs
# vim: set ts=4 sw=4 et:
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
Name: xjobs
Version: 20120412
Release: 0
Summary: Load Limiter For Executing Multiple Jobs In Parallel
Source: http://www.maier-komor.de/xjobs/xjobs-%{version}.tgz
Patch2: xjobs-fix_warnings.patch
URL: http://www.maier-komor.de/xjobs.html
Group: Productivity/Clustering/Computing
License: GPL-2.0+
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: make gcc glibc-devel flex
%description
xjobs runs several jobs in parallel and limits the number of jobs running at
once so that every processor of the machine is busy, but not overloaded. A
batch of long-running processes invoked from the shell are normally executed
one after another, no matter how many processors are available. xjobs allows
batching those jobs while still keeping the machine busy. The interface of
xjobs is similar to that of xargs.
%prep
%setup -q
%patch2
%__chmod 0644 ChangeLog
%build
export CFLAGS="-D_XOPEN_SOURCE=500 %{optflags}"
%configure
%__make %{?_smp_flags}
%install
%makeinstall
%__chmod 644 "%{buildroot}%{_mandir}/man1"/*
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc README COPYING ChangeLog
%{_bindir}/xjobs
%doc %{_mandir}/man1/xjobs.1*
%changelog