From c2ed7ad4ec4cac43e8c5b35c2af36607efa2a690 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Tue, 22 Jun 2021 19:48:19 -0400 Subject: [PATCH] spec: Remove shebang fixup redhat-rpm-config brp-mangle-shebangs added in 2018 will do /usr/bin/env python3 -> /usr/bin/python3 automatically for us Signed-off-by: Cole Robinson --- virt-manager.spec | 6 ------ 1 file changed, 6 deletions(-) diff --git a/virt-manager.spec b/virt-manager.spec index 08e4d443..99dfab52 100644 --- a/virt-manager.spec +++ b/virt-manager.spec @@ -122,12 +122,6 @@ machine). %py_byte_compile %{__python3} %{buildroot}%{_datadir}/virt-manager/ %endif -# Replace '#!/usr/bin/env python3' with '#!/usr/bin/python3' -# The format is ideal for upstream, but not a distro. See: -# https://fedoraproject.org/wiki/Features/SystemPythonExecutablesUseSystemPython -for f in $(find %{buildroot} -type f -executable -print); do - sed -i "1 s|^#!/usr/bin/env python3|#!%{__python3}|" $f || : -done %files