Accepting request 1057863 from home:eeich:branches:network:cluster
- Fix other issues when moving /var/spack/repos to /usr/share/spack OBS-URL: https://build.opensuse.org/request/show/1057863 OBS-URL: https://build.opensuse.org/package/show/network:cluster/spack?expand=0&rev=55
This commit is contained in:
parent
7c56f86278
commit
7bbbed556d
21
spack.spec
21
spack.spec
@ -167,15 +167,6 @@ done
|
||||
%else
|
||||
cp %{S:5} lib/spack/docs/
|
||||
%endif
|
||||
grep -rl '#! /usr/bin/env bash' . | xargs -i@ sed -i 's|#! /usr/bin/env bash|#!/usr/bin/bash|g' @
|
||||
grep -rl '#!/bin/env sh' . | xargs -i@ sed -i 's|#!/bin/env sh|#!/usr/bin/sh|g' @
|
||||
grep -rl '#!/usr/bin/env bash' . | xargs -i@ sed -i 's|#!/usr/bin/env bash|#!/usr/bin/bash|g' @
|
||||
grep -rl "spack/" . | xargs -i@ sed -i \
|
||||
-e 's|$spack/opt|/opt|g' \
|
||||
-e 's|$spack/var|/var/lib|g'\
|
||||
-e 's|$spack/share/spack/lmod|/opt/spack/modules|g'\
|
||||
-e 's|$spack/share/spack/modules|/opt/spack/modules|g'\
|
||||
@
|
||||
|
||||
%build
|
||||
# Nothing to build
|
||||
@ -236,6 +227,18 @@ make man info || { cat /tmp/sphinx-err-*.log; exit 1; } #text dirhtml
|
||||
rm -rf $tmpdir
|
||||
gzip _build/texinfo/Spack.info _build/man/spack.1
|
||||
%endif
|
||||
cd -
|
||||
grep -rl '#! /usr/bin/env bash' . | xargs -i@ sed -i 's|#! /usr/bin/env bash|#!/usr/bin/bash|g' @
|
||||
grep -rl '#!/bin/env sh' . | xargs -i@ sed -i 's|#!/bin/env sh|#!/usr/bin/sh|g' @
|
||||
grep -rl '#!/usr/bin/env bash' . | xargs -i@ sed -i 's|#!/usr/bin/env bash|#!/usr/bin/bash|g' @
|
||||
grep -rl "spack/" . | xargs -i@ sed -i \
|
||||
-e 's|$spack/opt|/opt|g' \
|
||||
-e 's|$spack/var|/var/lib|g'\
|
||||
-e 's|$spack/share/spack/lmod|/opt/spack/modules|g'\
|
||||
-e 's|$spack/share/spack/modules|/opt/spack/modules|g'\
|
||||
@
|
||||
grep -rl '/var/spack/repos' | grep -v "cmd/list.py" | \
|
||||
xargs -i@ sed -i 's|/var/spack/repos|/usr/share/spack/repos|g' @
|
||||
|
||||
%install
|
||||
# combine READMEs
|
||||
|
Loading…
Reference in New Issue
Block a user