fix the hwmixvolume python3 interpreter selection

This commit is contained in:
Jaroslav Kysela 2018-10-16 12:42:13 +02:00
parent 340eb3713e
commit 9acb3d9616
2 changed files with 11 additions and 0 deletions

View File

@ -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

8
hwmixvolume-python.patch Normal file
View File

@ -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