From 0edf0fe9c81afc8ba9b0a72231db12bf3bcc5d18 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Jul 25 2021 13:38:55 +0000 Subject: spec: Drop python3 shebang fixup for tests rpm * python -> python3 isn't required anymore for qemu.git * env -> /usr/bin is handled by rpm brp-mangle-shebangs Signed-off-by: Cole Robinson --- diff --git a/qemu.spec b/qemu.spec index 0361582..d8e212b 100644 --- a/qemu.spec +++ b/qemu.spec @@ -1578,10 +1578,6 @@ install -p -m 0755 tests/Makefile.include %{buildroot}%{testsdir}/tests/ # Install qemu-iotests cp -R tests/qemu-iotests/* %{buildroot}%{testsdir}/tests/qemu-iotests/ cp -ur %{qemu_kvm_build}/tests/qemu-iotests/* %{buildroot}%{testsdir}/tests/qemu-iotests/ -# Avoid ambiguous 'python' interpreter name -find %{buildroot}%{testsdir}/tests/qemu-iotests/* -maxdepth 1 -type f -exec sed -i -e '1 s+/usr/bin/env \(python\|python3\)+%{__python3}+' {} \; -find %{buildroot}%{testsdir}/scripts/qmp/* -maxdepth 1 -type f -exec sed -i -e '1 s+/usr/bin/env \(python\|python3\)+%{__python3}+' {} \; -find %{buildroot}%{testsdir}/scripts/qmp/* -maxdepth 1 -type f -exec sed -i -e '1 s+/usr/bin/\(python\|python3\)+%{__python3}+' {} \; # Install our custom tests README install -p -m 0644 %{_sourcedir}/README.tests %{buildroot}%{testsdir}/README