diff --git a/kmix-4.14.3-fix-bashisms.patch b/kmix-4.14.3-fix-bashisms.patch new file mode 100644 index 0000000..1deb4c0 --- /dev/null +++ b/kmix-4.14.3-fix-bashisms.patch @@ -0,0 +1,39 @@ +diff -Ndur kmix-4.14.3/apps/kmixremote kmix-4.14.3-fix-bashisms/apps/kmixremote +--- kmix-4.14.3/apps/kmixremote 2014-07-16 11:24:17.000000000 +0300 ++++ kmix-4.14.3-fix-bashisms/apps/kmixremote 2014-11-23 06:46:36.616308340 +0200 +@@ -7,7 +7,7 @@ + # Mute + ################################################################################# + +-function usage ++usage() + { + echo "Usage:" + echo "List mixers # $0 list" +@@ -18,7 +18,7 @@ + echo + } + +-function exit_with_error ++exit_with_error() + { + echo "Error: $1" + echo +@@ -27,7 +27,7 @@ + } + + # Prints the mixer DBUS ID's on the console. leaving out the "/Mixers/" prefix +-function listMixers ++listMixers() + { + qdbus org.kde.kmix /Mixers org.freedesktop.DBus.Properties.Get org.kde.KMix.MixSet mixers | cut -f3 -d/ + errorCode=$? +@@ -37,7 +37,7 @@ + } + + # Prints the mixer control DBUS ID's of the given mixer on the console. leaving out the "/Mixers/" prefix +-function listControls ++listControls() + { + qdbus org.kde.kmix $1 org.freedesktop.DBus.Properties.Get org.kde.KMix.Mixer controls | cut -f4 -d/ + errorCode=$? diff --git a/kmix.changes b/kmix.changes index 086f8f3..269af7b 100644 --- a/kmix.changes +++ b/kmix.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sun Nov 23 04:49:00 UTC 2014 - Led + +- fix bashisms in kmixremote script +- add patches: + * kmix-4.14.3-fix-bashisms.patch + ------------------------------------------------------------------- Sun Nov 9 20:39:19 UTC 2014 - tittiatcoke@gmail.com diff --git a/kmix.spec b/kmix.spec index b191448..6ca4aec 100644 --- a/kmix.spec +++ b/kmix.spec @@ -33,6 +33,7 @@ Source0: %{name}-%{version}.tar.xz # PATCH-FIX-OPENSUSE Who-needs-event-slider.patch -- since KNotify will no longer be able pretending it can # control volume, also remove the Event slider within KMix Patch0: Who-needs-event-slider.patch +Patch1: kmix-4.14.3-fix-bashisms.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %kde4_runtime_requires @@ -44,6 +45,7 @@ KDE's full featured mini mixer %if 0%{?suse_version} >= 1310 %patch0 -p1 %endif +%patch1 -p1 %build %cmake_kde4 -d build