|
|
b941a86 |
Name: parallel
|
|
|
b941a86 |
Summary: Shell tool for executing jobs in parallel
|
|
|
4bf5661 |
Version: 20230822
|
|
|
7deccce |
Release: %autorelease
|
|
|
7deccce |
License: GFDL and GPLv3+
|
|
|
7deccce |
URL: https://www.gnu.org/software/parallel/
|
|
|
7deccce |
Source0: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.bz2
|
|
|
b941a86 |
BuildArch: noarch
|
|
|
7deccce |
BuildRequires: autoconf
|
|
|
7deccce |
BuildRequires: automake
|
|
|
33a4266 |
BuildRequires: make
|
|
|
b941a86 |
BuildRequires: perl-generators
|
|
|
7deccce |
BuildRequires: perl-podlators
|
|
|
9a55e6f |
BuildRequires: perl-FileHandle
|
|
|
7deccce |
BuildRequires: sed
|
|
golfu |
a382514 |
|
|
Jirka Hladky |
4473a79 |
%define __requires_exclude sh$
|
|
Jirka Hladky |
4473a79 |
|
|
golfu |
a382514 |
# Due to a naming conflict, both packages cannot be installed in parallel
|
|
golfu |
a382514 |
# To prevent user confusion, GNU parallel is installed in a compatibility
|
|
golfu |
a382514 |
# mode to be commandline compatible to moreutils' parallel.
|
|
golfu |
a382514 |
# This mode can be turned off system wide or on a per-user base.
|
|
|
b941a86 |
Conflicts: moreutils-parallel
|
|
golfu |
a382514 |
|
|
golfu |
a382514 |
%description
|
|
golfu |
a382514 |
GNU Parallel is a shell tool for executing jobs in parallel using one or more
|
|
golfu |
a382514 |
machines. A job is typically a single command or a small script that has to be
|
|
golfu |
a382514 |
run for each of the lines in the input. The typical input is a list of files, a
|
|
golfu |
a382514 |
list of hosts, a list of users, or a list of tables.
|
|
golfu |
a382514 |
|
|
golfu |
a382514 |
If you use xargs today you will find GNU Parallel very easy to use. If you
|
|
golfu |
a382514 |
write loops in shell, you will find GNU Parallel may be able to replace most of
|
|
golfu |
a382514 |
the loops and make them run faster by running jobs in parallel. If you use ppss
|
|
golfu |
a382514 |
or pexec you will find GNU Parallel will often make the command easier to read.
|
|
golfu |
a382514 |
|
|
golfu |
a382514 |
GNU Parallel also makes sure output from the commands is the same output as you
|
|
golfu |
a382514 |
would get had you run the commands sequentially. This makes it possible to use
|
|
golfu |
a382514 |
output from GNU Parallel as input for other programs.
|
|
golfu |
a382514 |
|
|
golfu |
a382514 |
GNU Parallel is command-line-compatible with moreutils' parallel, but offers
|
|
golfu |
a382514 |
additional features.
|
|
golfu |
a382514 |
|
|
golfu |
a382514 |
%prep
|
|
|
b941a86 |
%autosetup
|
|
|
7deccce |
# Replace shebang by replacing "env" by removing "env ".
|
|
|
7deccce |
# FIXME: this is quite a hack
|
|
|
7deccce |
sed -i '1s:/env :/:' src/env_parallel.*
|
|
golfu |
a382514 |
|
|
golfu |
a382514 |
%build
|
|
|
7deccce |
autoreconf -ivf
|
|
|
7deccce |
%configure
|
|
|
b941a86 |
%make_build
|
|
golfu |
a382514 |
|
|
golfu |
a382514 |
%install
|
|
|
b941a86 |
%make_install
|
|
|
b941a86 |
rm -vrf %{buildroot}%{_pkgdocdir}
|
|
golfu |
a382514 |
|
|
golfu |
a382514 |
%files
|
|
|
7deccce |
%license LICENSES/GPL-3.0-or-later.txt LICENSES/GFDL-1.3-or-later.txt
|
|
|
b941a86 |
%doc README NEWS
|
|
golfu |
a382514 |
%{_bindir}/parallel
|
|
|
8d105f1 |
%{_bindir}/parcat
|
|
|
8d105f1 |
%{_bindir}/parset
|
|
|
03da025 |
%{_bindir}/parsort
|
|
|
b941a86 |
%{_mandir}/man1/parallel.1*
|
|
|
8d105f1 |
%{_mandir}/man1/parcat.1*
|
|
|
8d105f1 |
%{_mandir}/man1/parset.1*
|
|
|
03da025 |
%{_mandir}/man1/parsort.1*
|
|
|
8d105f1 |
%{_mandir}/man7/parallel*
|
|
|
7deccce |
%{_bindir}/env_parallel*
|
|
|
7deccce |
%{_mandir}/man1/env_parallel.1*
|
|
golfu |
a382514 |
%{_bindir}/sem
|
|
|
b941a86 |
%{_mandir}/man1/sem.1*
|
|
golfu |
a382514 |
%{_bindir}/sql
|
|
|
b941a86 |
%{_mandir}/man1/sql.1*
|
|
golfu |
a382514 |
%{_bindir}/niceload
|
|
|
b941a86 |
%{_mandir}/man1/niceload.1*
|
|
|
9a55e6f |
%{_datadir}/bash-completion/completions/parallel
|
|
|
9a55e6f |
%{_datadir}/zsh/site-functions/_parallel
|
|
golfu |
a382514 |
|
|
golfu |
a382514 |
%changelog
|
|
|
7deccce |
%autochangelog
|