diff --git a/gnu_parallel.spec b/gnu_parallel.spec index d909256..062d460 100644 --- a/gnu_parallel.spec +++ b/gnu_parallel.spec @@ -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/