From de84d1b259f6efabb4deb75beeaf628861195d4c17a3458d930bb3ca212f55ce Mon Sep 17 00:00:00 2001 From: Denisart Benjamin Date: Fri, 14 Nov 2014 15:40:11 +0000 Subject: [PATCH] Accepting request 260391 from home:Ledest:misc fix bashisms in pre script OBS-URL: https://build.opensuse.org/request/show/260391 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rsa?expand=0&rev=9 --- python-rsa.changes | 5 +++++ python-rsa.spec | 21 ++++++++++----------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/python-rsa.changes b/python-rsa.changes index af3d4d1..60edfc4 100644 --- a/python-rsa.changes +++ b/python-rsa.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Nov 08 20:23:00 UTC 2014 - Led + +- fix bashisms in pre script + ------------------------------------------------------------------- Fri Oct 11 23:06:55 UTC 2013 - p.drouand@gmail.com diff --git a/python-rsa.spec b/python-rsa.spec index e7dfcd3..35f7fcb 100644 --- a/python-rsa.spec +++ b/python-rsa.spec @@ -1,7 +1,7 @@ # # spec file for package python-rsa # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,8 +26,8 @@ Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/r/rsa/rsa-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel -BuildRequires: python-setuptools BuildRequires: python-pyasn1 +BuildRequires: python-setuptools Requires: python-pyasn1 Requires(post): update-alternatives Requires(postun): update-alternatives @@ -73,15 +73,14 @@ python setup.py test %pre # Since binaries became ghosted to be used with update-alternatives, we have to get rid # of the old binary resulting from the non-update-alternativies-ified package: -[[ ! -L %{_bindir}/pyrsa-priv2pub ]] && rm -f %{_bindir}/pyrsa-priv2pub -[[ ! -L %{_bindir}/pyrsa-keygen ]] && rm -f %{_bindir}/pyrsa-keygen -[[ ! -L %{_bindir}/pyrsa-encrypt ]] && rm -f %{_bindir}/pyrsa-encrypt -[[ ! -L %{_bindir}/pyrsa-decrypt ]] && rm -f %{_bindir}/pyrsa-decrypt -[[ ! -L %{_bindir}/pyrsa-sign ]] && rm -f %{_bindir}/pyrsa-sign -[[ ! -L %{_bindir}/pyrsa-verify ]] && rm -f %{_bindir}/pyrsa-verify -[[ ! -L %{_bindir}/pyrsa-encrypt-bigfile ]] && rm -f %{_bindir}/pyrsa-encrypt-bigfile -[[ ! -L %{_bindir}/pyrsa-decrypt-bigfile ]] && rm -f %{_bindir}/pyrsa-decrypt-bigfile -exit 0 +[ -h %{_bindir}/pyrsa-priv2pub ] || rm -f %{_bindir}/pyrsa-priv2pub +[ -h %{_bindir}/pyrsa-keygen ] || rm -f %{_bindir}/pyrsa-keygen +[ -h %{_bindir}/pyrsa-encrypt ] || rm -f %{_bindir}/pyrsa-encrypt +[ -h %{_bindir}/pyrsa-decrypt ] || rm -f %{_bindir}/pyrsa-decrypt +[ -h %{_bindir}/pyrsa-sign ] || rm -f %{_bindir}/pyrsa-sign +[ -h %{_bindir}/pyrsa-verify ] || rm -f %{_bindir}/pyrsa-verify +[ -h %{_bindir}/pyrsa-encrypt-bigfile ] || rm -f %{_bindir}/pyrsa-encrypt-bigfile +[ -h %{_bindir}/pyrsa-decrypt-bigfile ] || rm -f %{_bindir}/pyrsa-decrypt-bigfile %post update-alternatives \