From c6dbe073cca46bec15af0820eb3944172e92554aaed0ae86201c15d97395a76f Mon Sep 17 00:00:00 2001 From: Christian Goll Date: Thu, 30 Mar 2023 14:41:13 +0000 Subject: [PATCH] Accepting request 1075542 from home:eeich:branches:network:cluster - Avoid running run-find-external.sh twice during installation/ update. - Stop accidental inclusion of %%pre/post/triggerin/un scripts in doc packages. - Adpot new info file installation sceme for Factory. OBS-URL: https://build.opensuse.org/request/show/1075542 OBS-URL: https://build.opensuse.org/package/show/network:cluster/spack?expand=0&rev=68 --- spack.changes | 9 +++++++++ spack.spec | 32 +++++++++++++++++--------------- 2 files changed, 26 insertions(+), 15 deletions(-) diff --git a/spack.changes b/spack.changes index 2b67b02..8449c43 100644 --- a/spack.changes +++ b/spack.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Mar 30 09:34:39 UTC 2023 - Egbert Eich + +- Avoid running run-find-external.sh twice during installation/ + update. +- Stop accidental inclusion of %%pre/post/triggerin/un scripts + in doc packages. +- Adpot new info file installation sceme for Factory. + ------------------------------------------------------------------- Thu Mar 23 09:59:40 UTC 2023 - Egbert Eich diff --git a/spack.spec b/spack.spec index 2a49c67..ce487cf 100644 --- a/spack.spec +++ b/spack.spec @@ -28,7 +28,7 @@ ExclusiveArch: do_not_build %define spack_dir %_prefix/lib/spack/ %define spack_group spack -# These packages are found and can be used by spack, /etc/spack/packages-yaml +# These packages are found and can be used by spack, %{_sysconfdir}/spack/packages-yaml # needs to be updated when one of these packages is updated or uninstalled. # Distinguish between packages we recommend and packages which %define spack_trigger_recommended_packages autoconf bash bison bzip2 libzip-devel cmake-full ccache cpio diffutils findutils flex git-lfs make m4 ncurses-devel libtool openssl-devel perl-base pkgconf pkg-config python3-base tar info xz xz-devel @@ -151,6 +151,10 @@ This package contains the man page. %package info Summary: Info Page for Spack - Package manager for HPC systems Requires: info +%if 0%{?suse_version} <= 1500 +Requires(post): %{install_info_prereq} +Requires(pre): %{install_info_prereq} +%endif %description info Spack is a configurable Python-based HPC package manager, automating @@ -278,10 +282,6 @@ rm -f share/spack/setup-tutorial-env.sh rm -f lib/spack/external/macholib/macho_*.py ## Remove non linux stuff rm -f bin/spack.bat bin/spack_cmd.bat bin/spack_pwsh.ps1 -## Fix shebangs -#sed -i 's@#!/bin/env sh@#!/bin/bash@' var/spack/repos/builtin/packages/beast-tracer/tracer -#sed -i 's@#! /usr/bin/env bash@ #!/bin/bash@' share/spack/docker/entrypoint.bash -#sed -i 's@#!/usr/bin/env bash@#!/bin/bash@' share/spack/docker/package-index/split.sh mkdir -p %{buildroot}%{spack_dir} mkdir -p %{buildroot}%{spack_dir}/opt @@ -331,7 +331,7 @@ EOF # make shell scripts executeable find %{buildroot}%{_localstatedir}/lib/spack/ -type f -name \*.sh -exec chmod 755 {} \; -# Create /etc/spack/compilers.yaml +# Create %{_sysconfdir}/spack/compilers.yaml mkdir -p %{buildroot}%{spack_dir}/etc/spack/ cat > %{buildroot}%{spack_dir}/etc/spack/compilers.yaml < %{buildroot}/%{_sysconfdir}/profile.d/spack.sh <