diff --git a/inmanta.spec b/inmanta.spec index a2594c1de2..220b4f65c6 100644 --- a/inmanta.spec +++ b/inmanta.spec @@ -91,7 +91,7 @@ mkdir -p %{buildroot}/opt/inmanta %define __python %{_p3} # Fix shebang -sed --follow-symlinks -i "s|%{buildroot}||g" %{venv}/bin/* +find %{venv}/bin/ -type f | xargs sed -i "s|%{buildroot}||g" find %{venv} -name RECORD | xargs sed -i "s|%{buildroot}||g" # Put symlinks