SHA256
1
0
forked from pool/quassel
Dominique Leuenberger 2018-07-12 07:20:24 +00:00 committed by Git OBS Bridge
commit 6ebbcaae9a
2 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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 \