%include /usr/lib/rpm/macros.perl
Summary: Shell tool for executing jobs in parallel
Name: parallel
-Version: 20140522
+Version: 20181122
Release: 1
License: GPL v3+
Group: Applications/System
-Source0: http://ftp.gnu.org/gnu/parallel/%{name}-%{version}.tar.bz2
-# Source0-md5: 581ec94b81121bb923ce0aa47df516ae
-URL: http://www.gnu.org/software/parallel/
+Source0: https://ftp.gnu.org/gnu/parallel/%{name}-%{version}.tar.bz2
+# Source0-md5: 2b0d799aef98e0684ac6dc4868d880fe
+URL: https://www.gnu.org/software/parallel/
BuildRequires: perl-tools-pod
BuildRequires: rpm-perlprov
BuildArch: noarch
GNU Parallel is command-line-compatible with moreutils' parallel, but
offers additional features.
+%package -n env_parallel
+Summary: env_parallel
+Group: Applications/System
+Requires: %{name} = %{version}-%{release}
+
+%description -n env_parallel
+env_parallel is a shell function that exports the current environment
+to GNU parallel.
+
%prep
%setup -q
DESTDIR=$RPM_BUILD_ROOT
mv $RPM_BUILD_ROOT%{_mandir}/man1/{sql,parallel-sql}.1
-:> $RPM_BUILD_ROOT%{_sysconfdir}/parallel/config
+touch $RPM_BUILD_ROOT%{_sysconfdir}/parallel/config
rm -rv $RPM_BUILD_ROOT%{_docdir}/parallel
%clean
%doc src/*.texi
%dir %{_sysconfdir}/parallel
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/parallel/config
+%attr(755,root,root) %{_bindir}/niceload
%attr(755,root,root) %{_bindir}/parallel
+%attr(755,root,root) %{_bindir}/parcat
+%attr(755,root,root) %{_bindir}/parset
%attr(755,root,root) %{_bindir}/sem
%attr(755,root,root) %{_bindir}/sql
-%attr(755,root,root) %{_bindir}/niceload
%{_mandir}/man1/niceload.1*
%{_mandir}/man1/parallel.1*
-%{_mandir}/man1/sem.1*
%{_mandir}/man1/parallel-sql.1*
-%{_mandir}/man1/parallel_tutorial.1*
+%{_mandir}/man1/parcat.1*
+%{_mandir}/man1/parset.1*
+%{_mandir}/man1/sem.1*
+%{_mandir}/man7/parallel_alternatives.7*
+%{_mandir}/man7/parallel_book.7*
+%{_mandir}/man7/parallel_design.7*
+%{_mandir}/man7/parallel_tutorial.7*
+
+%files -n env_parallel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/env_parallel
+%attr(755,root,root) %{_bindir}/env_parallel.ash
+%attr(755,root,root) %{_bindir}/env_parallel.bash
+%attr(755,root,root) %{_bindir}/env_parallel.csh
+%attr(755,root,root) %{_bindir}/env_parallel.dash
+%attr(755,root,root) %{_bindir}/env_parallel.fish
+%attr(755,root,root) %{_bindir}/env_parallel.ksh
+%attr(755,root,root) %{_bindir}/env_parallel.mksh
+%attr(755,root,root) %{_bindir}/env_parallel.pdksh
+%attr(755,root,root) %{_bindir}/env_parallel.sh
+%attr(755,root,root) %{_bindir}/env_parallel.tcsh
+%attr(755,root,root) %{_bindir}/env_parallel.zsh
+%{_mandir}/man1/env_parallel.1*