From ca468a273c641450d27f8353c4e2837da81c69ec55db50a20e5ac387fae10e22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 11 Jul 2018 12:18:09 +0000 Subject: [PATCH] Accepting request 622061 from home:rkitover:branches:KDE:Extra rpmlint: env-script-interpreter Fix the rpmlint warning env-script-interpreter by rewriting the #!/usr/bin/env shebang in the scripts in /usr/share/quassel/scripts OBS-URL: https://build.opensuse.org/request/show/622061 OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/quassel?expand=0&rev=68 --- quassel.changes | 6 ++++++ quassel.spec | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/quassel.changes b/quassel.changes index e059f6a..1a155fe 100644 --- a/quassel.changes +++ b/quassel.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jul 11 10:25:08 UTC 2018 - rkitover@gmail.com + +- Fix the rpmlint warning env-script-interpreter by rewriting the + #!/usr/bin/env shebang in the scripts in /usr/share/quassel/scripts . + ------------------------------------------------------------------- Wed Jun 27 15:37:55 UTC 2018 - rkitover@gmail.com diff --git a/quassel.spec b/quassel.spec index 368ad4a..e786de7 100644 --- a/quassel.spec +++ b/quassel.spec @@ -188,6 +188,12 @@ install -d -m 751 %{buildroot}%{_localstatedir}/log/%{name} install -D -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}core install -D -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name} +# rewrite env shebang on scripts to normal shebang +sed -i '1{ + s,^#!/usr/bin/env *bash *$,#!/bin/bash, + s,^#!/usr/bin/env *\([^ ]*\) *$,#!/usr/bin/\1, +}' %{buildroot}%{_datadir}/%{name}/scripts/* + %pre core %{_bindir}/getent group %{name}core >/dev/null || %{_sbindir}/groupadd -r %{name}core %{_bindir}/getent passwd %{name}core >/dev/null || %{_sbindir}/useradd -r -d %{_localstatedir}/lib/%{name}core \