diff --git a/ShellCheck.spec b/ShellCheck.spec index 2ccfa46..a8e0d34 100644 --- a/ShellCheck.spec +++ b/ShellCheck.spec @@ -91,10 +91,12 @@ install -Dpm 0644 shellcheck.1 %{buildroot}%{_mandir}/man1/shellcheck.1 ## modify: #%%ghc_fix_dynamic_rpath shellcheck # since shellcheck-%{version}/ != %{pkg_name}-%{version}/ +%if %{undefined ghc_without_dynamic} PDIR=$(cd ..; pwd) PROG=%{buildroot}%{_bindir}/shellcheck NEWRPATH=$(chrpath $PROG | sed -e "s@^$PROG: RPATH=@@" | sed -e "s@$PDIR/shellcheck@%{ghclibdir}/%{pkg_name}@" -e "s@/dist/build@@g") chrpath -r $NEWRPATH $PROG +%endif %check