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:
parent
91eaaeca33
commit
9e2a9f8be2
@ -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>
|
||||
|
||||
|
@ -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/.*/}"
|
||||
|
Loading…
Reference in New Issue
Block a user