diff --git a/icinga2.spec b/icinga2.spec index 02c49d5..e3ebaeb 100644 --- a/icinga2.spec +++ b/icinga2.spec @@ -287,6 +287,10 @@ Provides Nano syntax highlighting for icinga2. %prep %setup -q -n %{name}-%{version} +# use absolute shebang instead of env on SUSE distributions +%if "%{_vendor}" == "suse" +find . -type f -name '*.sh' -exec sed -i -e 's|\/usr\/bin\/env bash|\/bin\/bash|g' {} \; +%endif %build CMAKE_OPTS="-DCMAKE_INSTALL_PREFIX=/usr \