1 Summary: Shell tool for executing jobs in parallel
6 Group: Applications/System
7 Source0: https://ftp.gnu.org/gnu/parallel/%{name}-%{version}.tar.bz2
8 # Source0-md5: c2649715d1fb099a70f6c0402071b31f
9 URL: https://www.gnu.org/software/parallel/
10 BuildRequires: perl-tools-pod
11 BuildRequires: rpm-perlprov
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 GNU Parallel is a shell tool for executing jobs in parallel using one
17 or more machines. A job is typically a single command or a small
18 script that has to be run for each of the lines in the input. The
19 typical input is a list of files, a list of hosts, a list of users, or
22 If you use xargs today you will find GNU Parallel very easy to use. If
23 you write loops in shell, you will find GNU Parallel may be able to
24 replace most of the loops and make them run faster by running jobs in
25 parallel. If you use ppss or pexec you will find GNU Parallel will
26 often make the command easier to read.
28 GNU Parallel also makes sure output from the commands is the same
29 output as you would get had you run the commands sequentially. This
30 makes it possible to use output from GNU Parallel as input for other
33 GNU Parallel is command-line-compatible with moreutils' parallel, but
34 offers additional features.
36 %package -n env_parallel
38 Group: Applications/System
39 Requires: %{name} = %{version}-%{release}
41 %description -n env_parallel
42 env_parallel is a shell function that exports the current environment
48 %{__sed} -i -e '1s,^#!.*perl,#!%{__perl},' src/{parallel,sem}
49 %{__sed} -i -e '1{\@^#!@d}' src/env_parallel.*
50 %{__sed} -i -e '1s,^#!/usr/bin/env ,#!/bin/,' src/env_* src/parset
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT%{_sysconfdir}/parallel
60 DESTDIR=$RPM_BUILD_ROOT
62 mv $RPM_BUILD_ROOT%{_mandir}/man1/{sql,parallel-sql}.1
63 touch $RPM_BUILD_ROOT%{_sysconfdir}/parallel/config
64 rm -rv $RPM_BUILD_ROOT%{_docdir}/parallel
67 rm -rf $RPM_BUILD_ROOT
70 %defattr(644,root,root,755)
72 %doc src/parallel.html src/sem.html src/sql.html src/niceload.html
74 %dir %{_sysconfdir}/parallel
75 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/parallel/config
76 %attr(755,root,root) %{_bindir}/niceload
77 %attr(755,root,root) %{_bindir}/parallel
78 %attr(755,root,root) %{_bindir}/parcat
79 %attr(755,root,root) %{_bindir}/parset
80 %attr(755,root,root) %{_bindir}/sem
81 %attr(755,root,root) %{_bindir}/sql
82 %{_mandir}/man1/niceload.1*
83 %{_mandir}/man1/parallel.1*
84 %{_mandir}/man1/parallel-sql.1*
85 %{_mandir}/man1/parcat.1*
86 %{_mandir}/man1/parset.1*
87 %{_mandir}/man1/sem.1*
88 %{_mandir}/man7/parallel_alternatives.7*
89 %{_mandir}/man7/parallel_book.7*
90 %{_mandir}/man7/parallel_design.7*
91 %{_mandir}/man7/parallel_tutorial.7*
93 %files -n env_parallel
94 %defattr(644,root,root,755)
95 %attr(755,root,root) %{_bindir}/env_parallel
96 %attr(755,root,root) %{_bindir}/env_parallel.ash
97 %attr(755,root,root) %{_bindir}/env_parallel.bash
98 %attr(755,root,root) %{_bindir}/env_parallel.csh
99 %attr(755,root,root) %{_bindir}/env_parallel.dash
100 %attr(755,root,root) %{_bindir}/env_parallel.fish
101 %attr(755,root,root) %{_bindir}/env_parallel.ksh
102 %attr(755,root,root) %{_bindir}/env_parallel.mksh
103 %attr(755,root,root) %{_bindir}/env_parallel.pdksh
104 %attr(755,root,root) %{_bindir}/env_parallel.sh
105 %attr(755,root,root) %{_bindir}/env_parallel.tcsh
106 %attr(755,root,root) %{_bindir}/env_parallel.zsh
107 %{_mandir}/man1/env_parallel.1*