Accepting request 995220 from home:dirkmueller:Factory

- avoid bashism in post scripts (bsc#1195391)

OBS-URL: https://build.opensuse.org/request/show/995220
OBS-URL: https://build.opensuse.org/package/show/network:cluster/spack?expand=0&rev=47
This commit is contained in:
Christian Goll 2022-08-19 13:09:17 +00:00 committed by Git OBS Bridge
parent 91eaaeca33
commit 9e2a9f8be2
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Aug 15 19:39:22 UTC 2022 - Dirk Müller <dmueller@suse.com>
- avoid bashism in post scripts (bsc#1195391)
-------------------------------------------------------------------
Thu Apr 7 12:56:45 UTC 2022 - Egbert Eich <eich@suse.com>

View File

@ -337,7 +337,7 @@ EOF
mkdir -p %{buildroot}/%{_sysconfdir}/profile.d
cat > %{buildroot}/%{_sysconfdir}/profile.d/spack.sh <<EOF
source /etc/os-release
if [ "\${ID}" == "opensuse-tumbleweed" ] ; then
if [ "\${ID}" = "opensuse-tumbleweed" ] ; then
SPACK_NAME="\${ID/-/}"
else
SPACK_NAME="\${ID/-/_}\${VERSION_ID/.*/}"
@ -433,7 +433,7 @@ sed -i "s@GCC_FULL_VERSION@$GCC_FULL_VERSION@" %{spack_dir}/etc/spack/compilers.
sed -i "s@GCC_VERSION@$GCC_VERSION@" %{spack_dir}/etc/spack/compilers.yaml
if [ -e /etc/os-release ] ; then
source /etc/os-release
if [ "${ID}" == "opensuse-tumbleweed" ] ; then
if [ "${ID}" = "opensuse-tumbleweed" ] ; then
export SPACK_NAME="${ID/-/}"
else
export SPACK_NAME="${ID/-/_}${VERSION_ID/.*/}"