From 920021bc63118e503aa14617ea823851e7de4152 Mon Sep 17 00:00:00 2001 From: Sergey Cherevko Date: Tue, 6 Jun 2023 18:45:06 +0300 Subject: [PATCH] Initial import from EPEL 9 upstream --- .gitignore | 1 + .parallel.metadata | 1 + SPECS/parallel.spec | 84 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 86 insertions(+) create mode 100644 .gitignore create mode 100644 .parallel.metadata create mode 100644 SPECS/parallel.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0b2f45a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/parallel-20230422.tar.bz2 diff --git a/.parallel.metadata b/.parallel.metadata new file mode 100644 index 0000000..69a9fba --- /dev/null +++ b/.parallel.metadata @@ -0,0 +1 @@ +a33a4485686c8789068cd15dd253fe2f0d119508 SOURCES/parallel-20230422.tar.bz2 diff --git a/SPECS/parallel.spec b/SPECS/parallel.spec new file mode 100644 index 0000000..c5cafe3 --- /dev/null +++ b/SPECS/parallel.spec @@ -0,0 +1,84 @@ +Name: parallel +Summary: Shell tool for executing jobs in parallel +Version: 20230422 +Release: %autorelease + +License: GFDL and GPLv3+ +URL: https://www.gnu.org/software/parallel/ +Source0: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.bz2 +BuildArch: noarch + +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-podlators +BuildRequires: perl-FileHandle +BuildRequires: sed + +%define __requires_exclude sh$ + +# Due to a naming conflict, both packages cannot be installed in parallel +# To prevent user confusion, GNU parallel is installed in a compatibility +# mode to be commandline compatible to moreutils' parallel. +# This mode can be turned off system wide or on a per-user base. +Conflicts: moreutils-parallel + +%description +GNU Parallel is a shell tool for executing jobs in parallel using one or more +machines. A job is typically a single command or a small script that has to be +run for each of the lines in the input. The typical input is a list of files, a +list of hosts, a list of users, or a list of tables. + +If you use xargs today you will find GNU Parallel very easy to use. If you +write loops in shell, you will find GNU Parallel may be able to replace most of +the loops and make them run faster by running jobs in parallel. If you use ppss +or pexec you will find GNU Parallel will often make the command easier to read. + +GNU Parallel also makes sure output from the commands is the same output as you +would get had you run the commands sequentially. This makes it possible to use +output from GNU Parallel as input for other programs. + +GNU Parallel is command-line-compatible with moreutils' parallel, but offers +additional features. + +%prep +%autosetup +# Replace shebang by replacing "env" by removing "env ". +# FIXME: this is quite a hack +sed -i '1s:/env :/:' src/env_parallel.* + +%build +autoreconf -ivf +%configure +%make_build + +%install +%make_install +rm -vrf %{buildroot}%{_pkgdocdir} + +%files +%license LICENSES/GPL-3.0-or-later.txt LICENSES/GFDL-1.3-or-later.txt +%doc README NEWS +%{_bindir}/parallel +%{_bindir}/parcat +%{_bindir}/parset +%{_bindir}/parsort +%{_mandir}/man1/parallel.1* +%{_mandir}/man1/parcat.1* +%{_mandir}/man1/parset.1* +%{_mandir}/man1/parsort.1* +%{_mandir}/man7/parallel* +%{_bindir}/env_parallel* +%{_mandir}/man1/env_parallel.1* +%{_bindir}/sem +%{_mandir}/man1/sem.1* +%{_bindir}/sql +%{_mandir}/man1/sql.1* +%{_bindir}/niceload +%{_mandir}/man1/niceload.1* +%{_datadir}/bash-completion/completions/parallel +%{_datadir}/zsh/site-functions/_parallel + +%changelog +%autochangelog