From 80a03cce0ce13c36b2ee36fc2067248b794ae02b65d1c0a7c26feb0dab833eef Mon Sep 17 00:00:00 2001 From: Andrey Karepin Date: Thu, 27 Nov 2014 17:00:16 +0000 Subject: [PATCH] Accepting request 263184 from home:Ledest:bashisms fix bashisms in qmi-network script OBS-URL: https://build.opensuse.org/request/show/263184 OBS-URL: https://build.opensuse.org/package/show/network/libqmi?expand=0&rev=5 --- libqmi-1.10.2-fix-bashisms.patch | 16 ++++++++++++++++ libqmi.changes | 7 +++++++ libqmi.spec | 2 ++ 3 files changed, 25 insertions(+) create mode 100644 libqmi-1.10.2-fix-bashisms.patch diff --git a/libqmi-1.10.2-fix-bashisms.patch b/libqmi-1.10.2-fix-bashisms.patch new file mode 100644 index 0000000..531e7cb --- /dev/null +++ b/libqmi-1.10.2-fix-bashisms.patch @@ -0,0 +1,16 @@ +diff -Ndur libqmi-1.10.2/utils/qmi-network.in libqmi-1.10.2-fix-bashisms/utils/qmi-network.in +--- libqmi-1.10.2/utils/qmi-network.in 2014-06-16 17:39:11.000000000 +0300 ++++ libqmi-1.10.2-fix-bashisms/utils/qmi-network.in 2014-11-27 03:10:12.692197726 +0200 +@@ -47,10 +47,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/libqmi.changes b/libqmi.changes index 40c4965..b747a64 100644 --- a/libqmi.changes +++ b/libqmi.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Nov 27 01:11:00 UTC 2014 - Led + +- fix bashisms in qmi-network script +- add patches: + * libqmi-1.10.2-fix-bashisms.patch + ------------------------------------------------------------------- Mon Oct 6 06:51:48 UTC 2014 - mardnh@gmx.de diff --git a/libqmi.spec b/libqmi.spec index 5a3376d..a908529 100644 --- a/libqmi.spec +++ b/libqmi.spec @@ -28,6 +28,7 @@ Group: System/Libraries Url: http://cgit.freedesktop.org/libqmi/ Source0: http://www.freedesktop.org/software/libqmi/%{name}-%{version}.tar.xz Source99: libqmi-rpmlintrc +Patch0: %{name}-1.10.2-fix-bashisms.patch BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(glib-2.0) >= 2.32 BuildRequires: pkgconfig(gobject-2.0) @@ -66,6 +67,7 @@ This package contains files required to link sources against libqmi. %prep %setup -q +%patch0 -p1 %build %configure \