2013-03-04 17:58:17 +01:00
|
|
|
#
|
|
|
|
# spec file for package gnu_parallel
|
|
|
|
#
|
2018-03-08 00:26:41 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-03-04 17:58:17 +01:00
|
|
|
#
|
|
|
|
# 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: gnu_parallel
|
2018-03-08 00:26:41 +01:00
|
|
|
Version: 20180222
|
2013-03-04 17:58:17 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Shell tool for executing jobs in parallel
|
2018-03-08 00:26:41 +01:00
|
|
|
License: GPL-3.0-or-later
|
2013-03-04 17:58:17 +01:00
|
|
|
Group: Productivity/File utilities
|
|
|
|
Url: http://www.gnu.org/software/parallel/
|
2013-05-08 19:37:34 +02:00
|
|
|
#DL-URL: http://ftp.gnu.org/gnu/parallel/
|
2015-11-23 13:17:42 +01:00
|
|
|
Source: http://ftp.gnu.org/gnu/parallel/parallel-%version.tar.bz2
|
|
|
|
Source2: http://ftp.gnu.org/gnu/parallel/parallel-%version.tar.bz2.sig
|
|
|
|
Source3: %name.keyring
|
2017-07-07 17:57:31 +02:00
|
|
|
Patch0: parallel-remove-nag-screen.patch
|
2013-03-04 17:58:17 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
GNU Parallel is a shell tool for executing jobs in parallel using one
|
|
|
|
or more computers. A job can be 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, a list of
|
|
|
|
URLs, or a list of tables. A job can also be a command that reads from
|
|
|
|
a pipe. GNU Parallel can then split the input and pipe it into
|
|
|
|
commands in parallel.
|
|
|
|
|
2015-03-22 21:26:28 +01:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation for GNU parallel
|
2018-03-08 00:26:41 +01:00
|
|
|
License: GFDL-1.3-only AND CC-BY-SA-3.0
|
2015-03-22 21:26:28 +01:00
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
GNU Parallel is a shell tool for executing jobs in parallel using one
|
|
|
|
or more computers.
|
|
|
|
This subpackage contains the documentation for Parallel.
|
|
|
|
|
2013-03-04 17:58:17 +01:00
|
|
|
%prep
|
2015-11-23 13:17:42 +01:00
|
|
|
%setup -q -n parallel-%version
|
2017-07-07 17:57:31 +02:00
|
|
|
%patch0 -p1
|
2013-03-04 17:58:17 +01:00
|
|
|
|
|
|
|
%build
|
2015-11-23 13:17:42 +01:00
|
|
|
%configure --docdir="%_docdir/%name"
|
2013-03-04 17:58:17 +01:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2015-03-05 20:57:46 +01:00
|
|
|
%make_install
|
2017-09-07 00:52:45 +02:00
|
|
|
cp -a CITATION COPYING NEWS README cc-by-sa.txt fdl.txt "%buildroot/%_docdir/%name/"
|
2018-03-08 00:26:41 +01:00
|
|
|
pushd "%buildroot/%_bindir/"
|
|
|
|
perl -i -lpe 's{^#!/usr/bin/env (\w*sh)}{#!/bin/$1}g' env_* parset
|
|
|
|
perl -i -lpe 's{^#!/usr/bin/env perl}{#!/usr/bin/perl}g' parallel
|
|
|
|
popd
|
2013-03-04 17:58:17 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2016-03-22 23:07:48 +01:00
|
|
|
%_bindir/env_parallel*
|
2015-11-23 13:17:42 +01:00
|
|
|
%_bindir/niceload
|
|
|
|
%_bindir/parallel
|
2016-10-24 23:03:13 +02:00
|
|
|
%_bindir/parcat
|
2018-03-08 00:26:41 +01:00
|
|
|
%_bindir/parset
|
2015-11-23 13:17:42 +01:00
|
|
|
%_bindir/sem
|
|
|
|
%_bindir/sql
|
|
|
|
%_mandir/man1/*.1*
|
|
|
|
%_mandir/man7/*.7*
|
2015-03-22 21:26:28 +01:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
2015-11-23 13:17:42 +01:00
|
|
|
%_docdir/%name/
|
2013-03-04 17:58:17 +01:00
|
|
|
|
|
|
|
%changelog
|