From 9acb3d9616a45b16be3b9a1cdf92887d113d26c3 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 16 Oct 2018 12:42:13 +0200 Subject: [PATCH] fix the hwmixvolume python3 interpreter selection --- alsa-tools.spec | 3 +++ hwmixvolume-python.patch | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 hwmixvolume-python.patch diff --git a/alsa-tools.spec b/alsa-tools.spec index 04d1925..902b448 100644 --- a/alsa-tools.spec +++ b/alsa-tools.spec @@ -36,6 +36,8 @@ Source: ftp://ftp.alsa-project.org/pub/tools/%{name}-%{version}.tar.bz2 Source1: 90-alsa-tools-firmware.rules +Patch1: hwmixvolume-python.patch + BuildRequires: gcc gcc-c++ BuildRequires: alsa-lib-devel >= %{version} %if 0%{!?_without_tools:1} @@ -92,6 +94,7 @@ The following tools are available: %prep %setup -q -n %{name}-%{version} +%patch1 -p1 -b .hwmixvolume-python %build mv seq/sbiload . ; rm -rf seq diff --git a/hwmixvolume-python.patch b/hwmixvolume-python.patch new file mode 100644 index 0000000..6cbb12f --- /dev/null +++ b/hwmixvolume-python.patch @@ -0,0 +1,8 @@ +--- alsa-tools-1.1.7/hwmixvolume/hwmixvolume~ 2018-10-16 10:08:36.000000000 +0200 ++++ alsa-tools-1.1.7/hwmixvolume/hwmixvolume 2018-10-16 12:39:39.639476411 +0200 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python3 + + # hwmixvolume - ALSA hardware mixer volume control applet + # Copyright (c) 2009-2010 Clemens Ladisch