Accepting request 762159 from home:dancermak:branches:utilities

Remove /usr/bin/env rpmlint errors

OBS-URL: https://build.opensuse.org/request/show/762159
OBS-URL: https://build.opensuse.org/package/show/utilities/gnu_parallel?expand=0&rev=115
This commit is contained in:
Jan Engelhardt 2020-01-10 09:55:01 +00:00 committed by Git OBS Bridge
parent 473969da63
commit b20f2b1c0c
3 changed files with 23 additions and 6 deletions

3
gnu_parallel-rpmlintrc Normal file
View File

@ -0,0 +1,3 @@
# env_parallel and parset are intended to be sourced and *not* executed directly
addFilter(".*env-script-interpreter.*/usr/bin/env_parallel.*")
addFilter(".*env-script-interpreter.*/usr/bin/parset")

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu Jan 9 11:14:31 UTC 2020 - Dan Čermák <dcermak@suse.com>
- Remove /usr/bin/env rpmlint errors:
* fix shebang in %{_bindir}/parallel
* add rpmlint filters for env_parallel.* and parset, as these are not intended
to be executed
- Change urls to use https instead of http
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Oct 28 12:51:56 UTC 2019 - Ismail Dönmez <idonmez@suse.com> Mon Oct 28 12:51:56 UTC 2019 - Ismail Dönmez <idonmez@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package gnu_parallel # spec file for package gnu_parallel
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -22,10 +22,10 @@ Release: 0
Summary: Shell tool for executing jobs in parallel Summary: Shell tool for executing jobs in parallel
License: GPL-3.0-or-later License: GPL-3.0-or-later
Group: Productivity/File utilities Group: Productivity/File utilities
Url: http://www.gnu.org/software/parallel/ URL: https://www.gnu.org/software/parallel/
#DL-URL: http://ftp.gnu.org/gnu/parallel/ #DL-URL: http://ftp.gnu.org/gnu/parallel/
Source: http://ftp.gnu.org/gnu/parallel/parallel-%version.tar.bz2 Source: https://ftp.gnu.org/gnu/parallel/parallel-%version.tar.bz2
Source2: http://ftp.gnu.org/gnu/parallel/parallel-%version.tar.bz2.sig Source2: https://ftp.gnu.org/gnu/parallel/parallel-%version.tar.bz2.sig
Source3: %name.keyring Source3: %name.keyring
Patch0: parallel-remove-nag-screen.patch Patch0: parallel-remove-nag-screen.patch
BuildArch: noarch BuildArch: noarch
@ -50,8 +50,7 @@ or more computers.
This subpackage contains the documentation for Parallel. This subpackage contains the documentation for Parallel.
%prep %prep
%setup -q -n parallel-%version %autosetup -n parallel-%{version} -p1
%patch0 -p1
%build %build
%configure --docdir="%_docdir/%name" %configure --docdir="%_docdir/%name"
@ -61,6 +60,11 @@ make %{?_smp_mflags}
%make_install %make_install
cp -a CITATION NEWS README cc-by-sa.txt fdl.txt "%buildroot/%_docdir/%name/" cp -a CITATION NEWS README cc-by-sa.txt fdl.txt "%buildroot/%_docdir/%name/"
# fix shebang to to not use env & preserve the time stamps
sed -i.orig "s:^#\!/usr/bin/env\s\+perl\s\?$:#!%{__perl}:" %{buildroot}/%{_bindir}/parallel
touch -r %{buildroot}/%{_bindir}/parallel.orig %{buildroot}/%{_bindir}/parallel
rm %{buildroot}/%{_bindir}/parallel.orig
%files %files
%license COPYING %license COPYING
%_bindir/env_parallel* %_bindir/env_parallel*