avoid munging search pattern

OBS-URL: https://build.opensuse.org/package/show/utilities/gnu_parallel?expand=0&rev=164
This commit is contained in:
Jan Engelhardt 2022-07-25 07:45:32 +00:00 committed by Git OBS Bridge
parent bcd804005b
commit 9a632678b0

View File

@ -83,7 +83,7 @@ This subpackage contains the zsh completion for Parallel.
cp -a CITATION NEWS README "%buildroot/%_docdir/%name/"
# fix shebang to to not use env & preserve the time stamps
sed -i.orig "s:^#\!%{_bindir}/env\s\+perl\s\?$:#!%__perl:" "%buildroot/%_bindir/parallel"
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"
@ -98,10 +98,10 @@ rm "%buildroot/%_bindir/parallel.orig"
%_mandir/man7/*.7*
%files bash-completion
%{_datadir}/bash-completion/completions/parallel
%_datadir/bash-completion/
%files zsh-completion
%{_datadir}/zsh/site-functions/_parallel
%_datadir/zsh/
%files doc
%_docdir/%name/