From eaf178df3607e67bf71247dfd8d6c7e6778eb9b058cd7ab8e306c66d7c8b5c94 Mon Sep 17 00:00:00 2001 From: Alexei Sorokin Date: Mon, 16 May 2016 12:19:59 +0000 Subject: [PATCH] Accepting request 395960 from home:jengelh:branches:devel:tools:building - Avoid unnecessary bashism in %install script (run with /bin/sh) OBS-URL: https://build.opensuse.org/request/show/395960 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/meson?expand=0&rev=13 --- meson.changes | 5 +++++ meson.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/meson.changes b/meson.changes index 4b81c9f..064f40d 100644 --- a/meson.changes +++ b/meson.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 9 16:47:26 UTC 2016 - jengelh@inai.de + +- Avoid unnecessary bashism in %install script (run with /bin/sh) + ------------------------------------------------------------------- Sat May 7 07:12:54 UTC 2016 - sor.alexei@meowr.ru diff --git a/meson.spec b/meson.spec index 3b1711a..cdafc36 100644 --- a/meson.spec +++ b/meson.spec @@ -88,7 +88,7 @@ python3 setup.py install \ --root=%{buildroot} --prefix=%{_prefix} for file in %{buildroot}%{_bindir}/*.py; do - mv -f "$file" "${file/.py}" + mv -fv "$file" "${file%.py}" done install -Dm 0644 data/macros.%{name} %{buildroot}%{_rpmconfigdir}/macros.d/macros.%{name}