- Remove shebang from lldb python modules.

- Add proper conditionals.

OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm18?expand=0&rev=21
This commit is contained in:
Aaron Puchert 2024-08-21 00:52:48 +00:00 committed by Git OBS Bridge
parent e8d8e6eaa8
commit d4c29faf97

View File

@ -1373,8 +1373,13 @@ sed -i "1s|/usr/bin/env *|%{_bindir}/|;1s|/usr/bin/python\$|$(realpath /usr/bin/
# Remove shebangs where not needed. # Remove shebangs where not needed.
sed -i '1{ /^#!/d }' \ sed -i '1{ /^#!/d }' \
%if %{_plv} == %{_sonum}
%{buildroot}%{_datadir}/scan-view/{Reporter,startfile}.py \
%endif
%if %{with lldb}
%{buildroot}%{python3_sitearch}/lldb/utils/{in_call_stack,symbolication}.py \
%endif
%{buildroot}%{python3_sitelib}/optrecord.py %{buildroot}%{python3_sitelib}/optrecord.py
%{buildroot}%{_datadir}/scan-view/{Reporter,startfile}.py
# Remove executable bit where not needed. # Remove executable bit where not needed.
chmod -x \ chmod -x \