diff --git a/libmbim-1.10.0-fix-bashisms.patch b/libmbim-1.10.0-fix-bashisms.patch new file mode 100644 index 0000000..2c482cd --- /dev/null +++ b/libmbim-1.10.0-fix-bashisms.patch @@ -0,0 +1,16 @@ +diff -Ndur libmbim-1.10.0/utils/mbim-network.in libmbim-1.10.0-fix-bashisms/utils/mbim-network.in +--- libmbim-1.10.0/utils/mbim-network.in 2014-01-22 12:17:48.000000000 +0200 ++++ libmbim-1.10.0-fix-bashisms/utils/mbim-network.in 2014-11-27 02:57:48.792248052 +0200 +@@ -50,10 +50,10 @@ + } + + if [ $# -ne 2 ]; then +- if [ $1 == "--help" ]; then ++ if [ "$1" = "--help" ]; then + help + exit 0 +- elif [ $1 == "--version" ]; then ++ elif [ "$1" = "--version" ]; then + version + exit 0 + fi diff --git a/libmbim.changes b/libmbim.changes index a959b02..f1672aa 100644 --- a/libmbim.changes +++ b/libmbim.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Sun Nov 30 04:21:00 UTC 2014 - Led + +- add patch tag for libmbim-1.10.0-fix-bashisms.patch + +------------------------------------------------------------------- +Thu Nov 27 01:00:00 UTC 2014 - Led + +- fix bashisms in mbim-network script +- add patches: + * libmbim-1.10.0-fix-bashisms.patch + ------------------------------------------------------------------- Mon Oct 20 12:09:00 UTC 2014 - dimstar@opensuse.org diff --git a/libmbim.spec b/libmbim.spec index 7fb890c..d591983 100644 --- a/libmbim.spec +++ b/libmbim.spec @@ -25,6 +25,8 @@ License: GPL-2.0+ and LGPL-2.0+ Group: Productivity/Networking/System Url: http://www.freedesktop.org/wiki/Software/libmbim/ Source: http://www.freedesktop.org/software/libmbim/libmbim-%{version}.tar.xz +# PATCH-FIX-UPSTREAM libmbim-1.10.0-fix-bashisms.patch ledest@gmail.com +Patch1: libmbim-1.10.0-fix-bashisms.patch BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(glib-2.0) >= 2.32 BuildRequires: pkgconfig(gobject-2.0) @@ -56,6 +58,7 @@ which speak the Mobile Interface Broadband Model (MBIM) protocol. %prep %setup -q +%patch1 -p1 %build %configure \