2020-11-19 15:49:24 +01:00
|
|
|
#
|
|
|
|
# spec file for package spack
|
|
|
|
#
|
2022-01-10 22:49:26 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2020-11-19 15:49:24 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2021-02-04 19:31:35 +01:00
|
|
|
|
2020-12-08 16:10:47 +01:00
|
|
|
%global flavor @BUILD_FLAVOR@%{?nil}
|
|
|
|
%if "%{flavor}" == "doc"
|
|
|
|
%bcond_without doc
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with doc} && (0%{?sle_version} > 0) && (150200 >= 0%{?sle_version})
|
|
|
|
ExclusiveArch: do_not_build
|
|
|
|
%endif
|
|
|
|
|
2020-11-19 15:49:24 +01:00
|
|
|
%define spack_dir %_prefix/lib/spack/
|
|
|
|
%define spack_group spack
|
2020-12-08 16:10:47 +01:00
|
|
|
# These packages are found and can be used by spack, /etc/spack/packages-yaml
|
2021-03-16 16:29:38 +01:00
|
|
|
# needs to be updated when one of these packages is updated or uninstalled.
|
|
|
|
# Distinguish between packages we recommend and packages which
|
2022-03-02 17:29:47 +01:00
|
|
|
%define spack_trigger_recommended autoconf bash bison bzip2 libzip-devel cmake-full ccache cpio diffutils findutils flex gcc gcc-c++ gcc-fortran git-lfs make m4 ncurses-devel libtool openssl-devel perl-base pkgconf pkg-config python3-base tar info xz xz-devel
|
2020-12-08 16:10:47 +01:00
|
|
|
# packages recognized by spack, but not recommended
|
2021-05-03 09:33:04 +02:00
|
|
|
%define spack_trigger_packages ghostscript go fish fzf hugo java-11-openjdk-devel java-14-openjdk-devel java-15-openjdk-devel java-16-openjdk-devel java-1_8_0-openjdk-devel ruby openmpi1-devel openmpi2-devel openmpi3-devel openmpi4-devel openmpi1-gnu-hpc-devel openmpi2-gnu-hpc-devel openmpi3-gnu-hpc-devel openmpi4-gnu-hpc-devel mvapich2-devel mpich-devel gcc7 gcc8 gcc9 gcc10 gcc11 gcc7-c++ gcc8-c++ gcc9-c++ gcc10-c++ gcc11-c++ gcc7-fortran gcc8-fortran gcc9-fortran gcc10-fortran gcc11-fortran
|
2021-03-16 16:29:38 +01:00
|
|
|
# non oss packages
|
2020-12-08 16:10:47 +01:00
|
|
|
%define spack_trigger_external cuda-nvcc
|
2020-11-19 15:49:24 +01:00
|
|
|
Name: spack
|
2022-11-24 08:38:21 +01:00
|
|
|
Version: 0.19.0
|
2020-11-19 15:49:24 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Package manager for HPC systems
|
2021-02-04 19:31:35 +01:00
|
|
|
License: Apache-2.0 AND MIT AND Python-2.0 AND BSD-3-Clause
|
2020-11-19 15:49:24 +01:00
|
|
|
URL: https://spack.io
|
2020-12-08 16:10:47 +01:00
|
|
|
Source0: https://github.com/spack/spack/archive/v%{version}.tar.gz#/spack-%{version}.tar.gz
|
2020-11-19 16:23:20 +01:00
|
|
|
Source1: README.SUSE
|
2020-12-08 16:10:47 +01:00
|
|
|
Source2: spack-rpmlintrc
|
2022-01-12 17:44:43 +01:00
|
|
|
Source3: run-find-external.sh.in
|
2021-07-26 15:26:41 +02:00
|
|
|
Source4: https://en.opensuse.org/index.php?title=Spack&action=raw&ref=157522#/README-oo-wiki
|
2021-12-13 11:05:52 +01:00
|
|
|
# Source5 is from https://docs.python.org/3/objects.inv, but has permanent changes so using a static version
|
|
|
|
Source5: objects.inv
|
2020-12-08 16:10:47 +01:00
|
|
|
Patch2: Adapt-shell-scripts-that-set-up-the-environment-for-different-shells.patch
|
2020-12-11 16:11:15 +01:00
|
|
|
Patch4: added-target-and-os-calls-to-output-of-spack-spec-co.patch
|
Accepting request 931785 from home:mslacken:sp
- updated to version 0.17.0
(Upstream feature/bug references (<ID>) are relative to
https://github.com/spack/spack/issues/<ID>).
* New concretizer is now default
The new concretizer introduced as an experimental feature in v0.16.0
is now the default (#25502). The new concretizer is based on the
clingo logic programming system,
and it enables us to do much higher quality and faster dependency solving
The old concretizer is still available via the concretizer: original
setting, but it is deprecated and will be removed in v0.18.0.
* Binary Bootstrapping
To make it easier to use the new concretizer and binary packages,
Spack now bootstraps clingo and GnuPG from public binaries. If it
is not able to bootstrap them from binaries, it installs them from
source code. With these changes, you should still be able to clone Spack
and start using it almost immediately.
* Reuse existing packages (experimental)
The most wanted feature from our
2020 user survey and
the most wanted Spack feature of all time (#25310). spack install,
spack spec, and spack concretize now have a --reuse option, which
causes Spack to minimize the number of rebuilds it does. The --reuse
option will try to find existing installations and binary packages locally
and in registered mirrors, and will prefer to use them over building new
versions. This will allow users to build from source far less than in
prior versions of Spack. This feature will continue to be improved, with
configuration options and better CLI expected in v0.17.1. It will become
the default concretization mode in v0.18.0.
* Better error messages
We have improved the error messages generated by the new concretizer by
OBS-URL: https://build.opensuse.org/request/show/931785
OBS-URL: https://build.opensuse.org/package/show/network:cluster/spack?expand=0&rev=35
2021-11-16 15:32:55 +01:00
|
|
|
Patch5: Make-spack-paths-compliant-to-distro-installation.patch
|
2021-07-07 18:05:08 +02:00
|
|
|
Patch6: Fix-error-during-documentation-build-due-to-recursive-module-inclusion.patch
|
Accepting request 931785 from home:mslacken:sp
- updated to version 0.17.0
(Upstream feature/bug references (<ID>) are relative to
https://github.com/spack/spack/issues/<ID>).
* New concretizer is now default
The new concretizer introduced as an experimental feature in v0.16.0
is now the default (#25502). The new concretizer is based on the
clingo logic programming system,
and it enables us to do much higher quality and faster dependency solving
The old concretizer is still available via the concretizer: original
setting, but it is deprecated and will be removed in v0.18.0.
* Binary Bootstrapping
To make it easier to use the new concretizer and binary packages,
Spack now bootstraps clingo and GnuPG from public binaries. If it
is not able to bootstrap them from binaries, it installs them from
source code. With these changes, you should still be able to clone Spack
and start using it almost immediately.
* Reuse existing packages (experimental)
The most wanted feature from our
2020 user survey and
the most wanted Spack feature of all time (#25310). spack install,
spack spec, and spack concretize now have a --reuse option, which
causes Spack to minimize the number of rebuilds it does. The --reuse
option will try to find existing installations and binary packages locally
and in registered mirrors, and will prefer to use them over building new
versions. This will allow users to build from source far less than in
prior versions of Spack. This feature will continue to be improved, with
configuration options and better CLI expected in v0.17.1. It will become
the default concretization mode in v0.18.0.
* Better error messages
We have improved the error messages generated by the new concretizer by
OBS-URL: https://build.opensuse.org/request/show/931785
OBS-URL: https://build.opensuse.org/package/show/network:cluster/spack?expand=0&rev=35
2021-11-16 15:32:55 +01:00
|
|
|
Patch7: Fix-Spinx-configuration-to-avoid-throwing-errors.patch
|
|
|
|
Patch8: Set-modules-default-to-lmod.patch
|
2022-01-12 17:44:43 +01:00
|
|
|
Patch9: Add-support-for-container-building-using-a-SLE-base-container.patch
|
2020-12-08 16:10:47 +01:00
|
|
|
%if %{without doc}
|
2020-11-19 15:49:24 +01:00
|
|
|
BuildRequires: fdupes
|
2021-02-04 19:31:35 +01:00
|
|
|
BuildRequires: lua-lmod
|
|
|
|
BuildRequires: polkit
|
2020-12-08 16:10:47 +01:00
|
|
|
BuildRequires: python3-urllib3
|
2021-03-30 16:36:39 +02:00
|
|
|
BuildRequires: sudo
|
2021-10-04 15:55:13 +02:00
|
|
|
BuildRequires: sysuser-tools
|
2020-11-19 15:49:24 +01:00
|
|
|
Requires: %{name}-recipes = %{version}
|
2021-02-04 19:31:35 +01:00
|
|
|
Requires: bzip2
|
Accepting request 931785 from home:mslacken:sp
- updated to version 0.17.0
(Upstream feature/bug references (<ID>) are relative to
https://github.com/spack/spack/issues/<ID>).
* New concretizer is now default
The new concretizer introduced as an experimental feature in v0.16.0
is now the default (#25502). The new concretizer is based on the
clingo logic programming system,
and it enables us to do much higher quality and faster dependency solving
The old concretizer is still available via the concretizer: original
setting, but it is deprecated and will be removed in v0.18.0.
* Binary Bootstrapping
To make it easier to use the new concretizer and binary packages,
Spack now bootstraps clingo and GnuPG from public binaries. If it
is not able to bootstrap them from binaries, it installs them from
source code. With these changes, you should still be able to clone Spack
and start using it almost immediately.
* Reuse existing packages (experimental)
The most wanted feature from our
2020 user survey and
the most wanted Spack feature of all time (#25310). spack install,
spack spec, and spack concretize now have a --reuse option, which
causes Spack to minimize the number of rebuilds it does. The --reuse
option will try to find existing installations and binary packages locally
and in registered mirrors, and will prefer to use them over building new
versions. This will allow users to build from source far less than in
prior versions of Spack. This feature will continue to be improved, with
configuration options and better CLI expected in v0.17.1. It will become
the default concretization mode in v0.18.0.
* Better error messages
We have improved the error messages generated by the new concretizer by
OBS-URL: https://build.opensuse.org/request/show/931785
OBS-URL: https://build.opensuse.org/package/show/network:cluster/spack?expand=0&rev=35
2021-11-16 15:32:55 +01:00
|
|
|
Requires: coreutils
|
2020-11-19 15:49:24 +01:00
|
|
|
Requires: curl
|
2021-05-03 09:33:04 +02:00
|
|
|
Requires: gcc-c++
|
2020-11-19 15:49:24 +01:00
|
|
|
Requires: gcc-fortran
|
|
|
|
Requires: gpg2
|
2021-03-30 16:36:39 +02:00
|
|
|
Requires: libbz2-devel
|
2021-02-04 19:31:35 +01:00
|
|
|
Requires: lua-lmod
|
2021-08-10 15:21:51 +02:00
|
|
|
Requires: make
|
2021-04-01 14:11:29 +02:00
|
|
|
Requires: patch
|
2021-02-04 19:31:35 +01:00
|
|
|
Requires: polkit
|
Accepting request 931785 from home:mslacken:sp
- updated to version 0.17.0
(Upstream feature/bug references (<ID>) are relative to
https://github.com/spack/spack/issues/<ID>).
* New concretizer is now default
The new concretizer introduced as an experimental feature in v0.16.0
is now the default (#25502). The new concretizer is based on the
clingo logic programming system,
and it enables us to do much higher quality and faster dependency solving
The old concretizer is still available via the concretizer: original
setting, but it is deprecated and will be removed in v0.18.0.
* Binary Bootstrapping
To make it easier to use the new concretizer and binary packages,
Spack now bootstraps clingo and GnuPG from public binaries. If it
is not able to bootstrap them from binaries, it installs them from
source code. With these changes, you should still be able to clone Spack
and start using it almost immediately.
* Reuse existing packages (experimental)
The most wanted feature from our
2020 user survey and
the most wanted Spack feature of all time (#25310). spack install,
spack spec, and spack concretize now have a --reuse option, which
causes Spack to minimize the number of rebuilds it does. The --reuse
option will try to find existing installations and binary packages locally
and in registered mirrors, and will prefer to use them over building new
versions. This will allow users to build from source far less than in
prior versions of Spack. This feature will continue to be improved, with
configuration options and better CLI expected in v0.17.1. It will become
the default concretization mode in v0.18.0.
* Better error messages
We have improved the error messages generated by the new concretizer by
OBS-URL: https://build.opensuse.org/request/show/931785
OBS-URL: https://build.opensuse.org/package/show/network:cluster/spack?expand=0&rev=35
2021-11-16 15:32:55 +01:00
|
|
|
Requires: python3-clingo
|
2021-03-30 16:36:39 +02:00
|
|
|
Requires: sudo
|
2021-08-10 15:21:51 +02:00
|
|
|
Requires: tar
|
2021-02-04 19:31:35 +01:00
|
|
|
Requires: xz
|
2020-12-08 16:10:47 +01:00
|
|
|
Recommends: %spack_trigger_recommended
|
|
|
|
%else
|
|
|
|
BuildRequires: git
|
2021-02-04 19:31:35 +01:00
|
|
|
BuildRequires: makeinfo
|
Accepting request 931785 from home:mslacken:sp
- updated to version 0.17.0
(Upstream feature/bug references (<ID>) are relative to
https://github.com/spack/spack/issues/<ID>).
* New concretizer is now default
The new concretizer introduced as an experimental feature in v0.16.0
is now the default (#25502). The new concretizer is based on the
clingo logic programming system,
and it enables us to do much higher quality and faster dependency solving
The old concretizer is still available via the concretizer: original
setting, but it is deprecated and will be removed in v0.18.0.
* Binary Bootstrapping
To make it easier to use the new concretizer and binary packages,
Spack now bootstraps clingo and GnuPG from public binaries. If it
is not able to bootstrap them from binaries, it installs them from
source code. With these changes, you should still be able to clone Spack
and start using it almost immediately.
* Reuse existing packages (experimental)
The most wanted feature from our
2020 user survey and
the most wanted Spack feature of all time (#25310). spack install,
spack spec, and spack concretize now have a --reuse option, which
causes Spack to minimize the number of rebuilds it does. The --reuse
option will try to find existing installations and binary packages locally
and in registered mirrors, and will prefer to use them over building new
versions. This will allow users to build from source far less than in
prior versions of Spack. This feature will continue to be improved, with
configuration options and better CLI expected in v0.17.1. It will become
the default concretization mode in v0.18.0.
* Better error messages
We have improved the error messages generated by the new concretizer by
OBS-URL: https://build.opensuse.org/request/show/931785
OBS-URL: https://build.opensuse.org/package/show/network:cluster/spack?expand=0&rev=35
2021-11-16 15:32:55 +01:00
|
|
|
# Hardcode this - there is no python2 version of this around any more.
|
|
|
|
BuildRequires: python3-Sphinx >= 3.4
|
|
|
|
BuildRequires: python3-sphinxcontrib-programoutput
|
2021-02-04 19:31:35 +01:00
|
|
|
BuildRequires: spack
|
2020-12-08 16:10:47 +01:00
|
|
|
# html
|
|
|
|
BuildRequires: graphviz
|
|
|
|
# info
|
|
|
|
BuildRequires: graphviz-gnome
|
|
|
|
## pdf
|
|
|
|
# BuildRequires: python3-Sphinx-latex
|
|
|
|
Requires: spack
|
|
|
|
%endif
|
2020-11-19 15:49:24 +01:00
|
|
|
BuildArch: noarch
|
2020-12-08 16:10:47 +01:00
|
|
|
%if 0%{?sle_version} <= 120500 && !0%{?is_opensuse}
|
2020-11-19 15:49:24 +01:00
|
|
|
%define __python3 python3
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
Spack is a configurable Python-based HPC package manager, automating
|
|
|
|
the installation and fine-tuning of simulations and libraries.
|
|
|
|
It operates on a wide variety of HPC platforms and enables users
|
|
|
|
to build many code configurations. Software installed by Spack
|
|
|
|
runs correctly regardless of environment, and file management
|
|
|
|
is streamlined. Spack can install many variants of the same build
|
|
|
|
using different compilers, options, and MPI implementations.
|
|
|
|
|
|
|
|
This package provides a module file that must be loaded to use spack.
|
|
|
|
|
|
|
|
%package recipes
|
|
|
|
Summary: Spack built-in package recipes
|
2022-03-02 17:29:47 +01:00
|
|
|
Requires: %{name} = %version
|
2020-11-19 15:49:24 +01:00
|
|
|
|
|
|
|
%description recipes
|
|
|
|
Spack is a configurable Python-based HPC package manager, automating
|
|
|
|
the installation and fine-tuning of simulations and libraries.
|
|
|
|
It operates on a wide variety of HPC platforms and enables users
|
|
|
|
to build many code configurations. Software installed by Spack
|
|
|
|
runs correctly regardless of environment, and file management
|
|
|
|
is streamlined. Spack can install many variants of the same build
|
|
|
|
using different compilers, options, and MPI implementations.
|
|
|
|
|
2021-03-16 16:29:38 +01:00
|
|
|
This package contains the built-in package recipes.
|
2020-11-19 15:49:24 +01:00
|
|
|
|
2020-12-08 16:10:47 +01:00
|
|
|
%package man
|
|
|
|
Summary: Man Page for Spack - Package manager for HPC systems
|
|
|
|
Requires: man
|
|
|
|
|
|
|
|
%description man
|
|
|
|
Spack is a configurable Python-based HPC package manager, automating
|
|
|
|
the installation and fine-tuning of simulations and libraries.
|
|
|
|
It operates on a wide variety of HPC platforms and enables users
|
|
|
|
to build many code configurations. Software installed by Spack
|
|
|
|
runs correctly regardless of environment, and file management
|
|
|
|
is streamlined. Spack can install many variants of the same build
|
|
|
|
using different compilers, options, and MPI implementations.
|
|
|
|
|
|
|
|
This package contains the man page.
|
|
|
|
|
|
|
|
%package info
|
|
|
|
Summary: Info Page for Spack - Package manager for HPC systems
|
|
|
|
Requires: info
|
|
|
|
|
|
|
|
%description info
|
|
|
|
Spack is a configurable Python-based HPC package manager, automating
|
|
|
|
the installation and fine-tuning of simulations and libraries.
|
|
|
|
It operates on a wide variety of HPC platforms and enables users
|
|
|
|
to build many code configurations. Software installed by Spack
|
|
|
|
runs correctly regardless of environment, and file management
|
|
|
|
is streamlined. Spack can install many variants of the same build
|
|
|
|
using different compilers, options, and MPI implementations.
|
|
|
|
|
|
|
|
This package contains the info page.
|
|
|
|
|
2020-11-19 15:49:24 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%autopatch -p1
|
2020-12-11 16:11:15 +01:00
|
|
|
%if %{without doc}
|
2020-11-19 15:49:24 +01:00
|
|
|
|
2020-12-08 16:10:47 +01:00
|
|
|
# set SPACK_ROOT
|
|
|
|
for i in share/spack/setup-env.*; do
|
|
|
|
sed -i -e "s;@@_prefix@@;%_prefix;g" $i
|
|
|
|
done
|
Accepting request 931785 from home:mslacken:sp
- updated to version 0.17.0
(Upstream feature/bug references (<ID>) are relative to
https://github.com/spack/spack/issues/<ID>).
* New concretizer is now default
The new concretizer introduced as an experimental feature in v0.16.0
is now the default (#25502). The new concretizer is based on the
clingo logic programming system,
and it enables us to do much higher quality and faster dependency solving
The old concretizer is still available via the concretizer: original
setting, but it is deprecated and will be removed in v0.18.0.
* Binary Bootstrapping
To make it easier to use the new concretizer and binary packages,
Spack now bootstraps clingo and GnuPG from public binaries. If it
is not able to bootstrap them from binaries, it installs them from
source code. With these changes, you should still be able to clone Spack
and start using it almost immediately.
* Reuse existing packages (experimental)
The most wanted feature from our
2020 user survey and
the most wanted Spack feature of all time (#25310). spack install,
spack spec, and spack concretize now have a --reuse option, which
causes Spack to minimize the number of rebuilds it does. The --reuse
option will try to find existing installations and binary packages locally
and in registered mirrors, and will prefer to use them over building new
versions. This will allow users to build from source far less than in
prior versions of Spack. This feature will continue to be improved, with
configuration options and better CLI expected in v0.17.1. It will become
the default concretization mode in v0.18.0.
* Better error messages
We have improved the error messages generated by the new concretizer by
OBS-URL: https://build.opensuse.org/request/show/931785
OBS-URL: https://build.opensuse.org/package/show/network:cluster/spack?expand=0&rev=35
2021-11-16 15:32:55 +01:00
|
|
|
%else
|
|
|
|
cp %{S:5} lib/spack/docs/
|
2020-12-08 16:10:47 +01:00
|
|
|
%endif
|
2022-11-26 12:34:27 +01:00
|
|
|
grep -rl '#! /usr/bin/env bash' . | xargs -i@ sed -i 's|#! /usr/bin/env bash|#!/usr/bin/bash|g' @
|
2022-12-05 12:17:15 +01:00
|
|
|
grep -rl '#!/bin/env sh' . | xargs -i@ sed -i 's|#!/bin/env sh|#!/usr/bin/sh|g' @
|
2022-11-26 12:34:27 +01:00
|
|
|
grep -rl '#!/usr/bin/env bash' . | xargs -i@ sed -i 's|#!/usr/bin/env bash|#!/usr/bin/bash|g' @
|
2022-11-24 08:38:21 +01:00
|
|
|
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'\
|
|
|
|
@
|
Accepting request 931785 from home:mslacken:sp
- updated to version 0.17.0
(Upstream feature/bug references (<ID>) are relative to
https://github.com/spack/spack/issues/<ID>).
* New concretizer is now default
The new concretizer introduced as an experimental feature in v0.16.0
is now the default (#25502). The new concretizer is based on the
clingo logic programming system,
and it enables us to do much higher quality and faster dependency solving
The old concretizer is still available via the concretizer: original
setting, but it is deprecated and will be removed in v0.18.0.
* Binary Bootstrapping
To make it easier to use the new concretizer and binary packages,
Spack now bootstraps clingo and GnuPG from public binaries. If it
is not able to bootstrap them from binaries, it installs them from
source code. With these changes, you should still be able to clone Spack
and start using it almost immediately.
* Reuse existing packages (experimental)
The most wanted feature from our
2020 user survey and
the most wanted Spack feature of all time (#25310). spack install,
spack spec, and spack concretize now have a --reuse option, which
causes Spack to minimize the number of rebuilds it does. The --reuse
option will try to find existing installations and binary packages locally
and in registered mirrors, and will prefer to use them over building new
versions. This will allow users to build from source far less than in
prior versions of Spack. This feature will continue to be improved, with
configuration options and better CLI expected in v0.17.1. It will become
the default concretization mode in v0.18.0.
* Better error messages
We have improved the error messages generated by the new concretizer by
OBS-URL: https://build.opensuse.org/request/show/931785
OBS-URL: https://build.opensuse.org/package/show/network:cluster/spack?expand=0&rev=35
2021-11-16 15:32:55 +01:00
|
|
|
|
2020-11-19 15:49:24 +01:00
|
|
|
%build
|
|
|
|
# Nothing to build
|
2020-12-08 16:10:47 +01:00
|
|
|
%if %{with doc}
|
Accepting request 931785 from home:mslacken:sp
- updated to version 0.17.0
(Upstream feature/bug references (<ID>) are relative to
https://github.com/spack/spack/issues/<ID>).
* New concretizer is now default
The new concretizer introduced as an experimental feature in v0.16.0
is now the default (#25502). The new concretizer is based on the
clingo logic programming system,
and it enables us to do much higher quality and faster dependency solving
The old concretizer is still available via the concretizer: original
setting, but it is deprecated and will be removed in v0.18.0.
* Binary Bootstrapping
To make it easier to use the new concretizer and binary packages,
Spack now bootstraps clingo and GnuPG from public binaries. If it
is not able to bootstrap them from binaries, it installs them from
source code. With these changes, you should still be able to clone Spack
and start using it almost immediately.
* Reuse existing packages (experimental)
The most wanted feature from our
2020 user survey and
the most wanted Spack feature of all time (#25310). spack install,
spack spec, and spack concretize now have a --reuse option, which
causes Spack to minimize the number of rebuilds it does. The --reuse
option will try to find existing installations and binary packages locally
and in registered mirrors, and will prefer to use them over building new
versions. This will allow users to build from source far less than in
prior versions of Spack. This feature will continue to be improved, with
configuration options and better CLI expected in v0.17.1. It will become
the default concretization mode in v0.18.0.
* Better error messages
We have improved the error messages generated by the new concretizer by
OBS-URL: https://build.opensuse.org/request/show/931785
OBS-URL: https://build.opensuse.org/package/show/network:cluster/spack?expand=0&rev=35
2021-11-16 15:32:55 +01:00
|
|
|
mkdir -p ${HOME}/.spack
|
|
|
|
cat > ${HOME}/.spack/config.yaml <<EOF
|
|
|
|
config:
|
|
|
|
install_tree:
|
|
|
|
root: /tmp/spack
|
|
|
|
projections:
|
|
|
|
all: "${ARCHITECTURE}/${COMPILERNAME}-${COMPILERVER}/${PACKAGE}-${VERSION}-${HASH}"
|
|
|
|
EOF
|
|
|
|
# Don't really run spack when building documentation!
|
|
|
|
tmpdir=$(mktemp -d %{_sourcedir}/tmpd-XXXXXXXXX)
|
|
|
|
echo -e '#! /bin/sh
|
|
|
|
args=${1+"$@"}
|
2021-11-17 09:47:48 +01:00
|
|
|
while [ -n "$1" ]; do
|
|
|
|
case $1 in
|
|
|
|
--*) shift ;;
|
|
|
|
graph|spec) exit 0 ;;
|
|
|
|
*) exec /usr/bin/spack ${args} ;;
|
|
|
|
esac;
|
Accepting request 931785 from home:mslacken:sp
- updated to version 0.17.0
(Upstream feature/bug references (<ID>) are relative to
https://github.com/spack/spack/issues/<ID>).
* New concretizer is now default
The new concretizer introduced as an experimental feature in v0.16.0
is now the default (#25502). The new concretizer is based on the
clingo logic programming system,
and it enables us to do much higher quality and faster dependency solving
The old concretizer is still available via the concretizer: original
setting, but it is deprecated and will be removed in v0.18.0.
* Binary Bootstrapping
To make it easier to use the new concretizer and binary packages,
Spack now bootstraps clingo and GnuPG from public binaries. If it
is not able to bootstrap them from binaries, it installs them from
source code. With these changes, you should still be able to clone Spack
and start using it almost immediately.
* Reuse existing packages (experimental)
The most wanted feature from our
2020 user survey and
the most wanted Spack feature of all time (#25310). spack install,
spack spec, and spack concretize now have a --reuse option, which
causes Spack to minimize the number of rebuilds it does. The --reuse
option will try to find existing installations and binary packages locally
and in registered mirrors, and will prefer to use them over building new
versions. This will allow users to build from source far less than in
prior versions of Spack. This feature will continue to be improved, with
configuration options and better CLI expected in v0.17.1. It will become
the default concretization mode in v0.18.0.
* Better error messages
We have improved the error messages generated by the new concretizer by
OBS-URL: https://build.opensuse.org/request/show/931785
OBS-URL: https://build.opensuse.org/package/show/network:cluster/spack?expand=0&rev=35
2021-11-16 15:32:55 +01:00
|
|
|
done
|
|
|
|
exit 0' > $tmpdir/spack
|
|
|
|
chmod 0755 $tmpdir/spack
|
|
|
|
PATH=$tmpdir:${PATH}
|
|
|
|
export PATH
|
|
|
|
mkdir -p /tmp/spack
|
2020-12-08 16:10:47 +01:00
|
|
|
cd lib/spack/docs
|
Accepting request 931785 from home:mslacken:sp
- updated to version 0.17.0
(Upstream feature/bug references (<ID>) are relative to
https://github.com/spack/spack/issues/<ID>).
* New concretizer is now default
The new concretizer introduced as an experimental feature in v0.16.0
is now the default (#25502). The new concretizer is based on the
clingo logic programming system,
and it enables us to do much higher quality and faster dependency solving
The old concretizer is still available via the concretizer: original
setting, but it is deprecated and will be removed in v0.18.0.
* Binary Bootstrapping
To make it easier to use the new concretizer and binary packages,
Spack now bootstraps clingo and GnuPG from public binaries. If it
is not able to bootstrap them from binaries, it installs them from
source code. With these changes, you should still be able to clone Spack
and start using it almost immediately.
* Reuse existing packages (experimental)
The most wanted feature from our
2020 user survey and
the most wanted Spack feature of all time (#25310). spack install,
spack spec, and spack concretize now have a --reuse option, which
causes Spack to minimize the number of rebuilds it does. The --reuse
option will try to find existing installations and binary packages locally
and in registered mirrors, and will prefer to use them over building new
versions. This will allow users to build from source far less than in
prior versions of Spack. This feature will continue to be improved, with
configuration options and better CLI expected in v0.17.1. It will become
the default concretization mode in v0.18.0.
* Better error messages
We have improved the error messages generated by the new concretizer by
OBS-URL: https://build.opensuse.org/request/show/931785
OBS-URL: https://build.opensuse.org/package/show/network:cluster/spack?expand=0&rev=35
2021-11-16 15:32:55 +01:00
|
|
|
# fix Makefile of sphinx and ignore warnings due to offline build
|
|
|
|
sed -i 's/\(^SPHINXOPTS\).*/\1 = --keep-going /' Makefile
|
2020-12-08 16:10:47 +01:00
|
|
|
# Causes issues building texinfo as a suitable image cannot be found
|
|
|
|
grep -rl ":target:" | xargs sed -i -e "/:target:/s/^/#/" -e "/figure::/s/^/#/"
|
|
|
|
# Fix path to var - we install this to the 'real' /var
|
|
|
|
grep -rl "\$SPACK_ROOT/var" | xargs sed -i -e "s@\(.*\)\$SPACK_ROOT/var\(/spack.*\)@\1/var/lib\2@g"
|
2021-03-16 16:29:38 +01:00
|
|
|
# spack cannot run without knowing at least the compiler, so we inject
|
2020-12-11 16:11:15 +01:00
|
|
|
# a dummy one
|
2021-03-16 16:29:38 +01:00
|
|
|
mkdir -p ${HOME}/.spack/linux/
|
2020-12-11 16:11:15 +01:00
|
|
|
cat > ${HOME}/.spack/linux/compilers.yaml <<EOF
|
|
|
|
compilers:
|
|
|
|
- compiler:
|
|
|
|
spec: gcc@7.5.0
|
|
|
|
paths:
|
|
|
|
cc: /usr/bin/gcc
|
|
|
|
cxx: /usr/bin/g++
|
|
|
|
f77: /usr/bin/gfortran
|
|
|
|
fc: /usr/bin/gfortran
|
|
|
|
flags: {}
|
|
|
|
operating_system: SUSE
|
|
|
|
target: x86_64
|
|
|
|
modules: []
|
|
|
|
environment:
|
|
|
|
unset: []
|
|
|
|
extra_rpaths: []
|
|
|
|
EOF
|
Accepting request 931785 from home:mslacken:sp
- updated to version 0.17.0
(Upstream feature/bug references (<ID>) are relative to
https://github.com/spack/spack/issues/<ID>).
* New concretizer is now default
The new concretizer introduced as an experimental feature in v0.16.0
is now the default (#25502). The new concretizer is based on the
clingo logic programming system,
and it enables us to do much higher quality and faster dependency solving
The old concretizer is still available via the concretizer: original
setting, but it is deprecated and will be removed in v0.18.0.
* Binary Bootstrapping
To make it easier to use the new concretizer and binary packages,
Spack now bootstraps clingo and GnuPG from public binaries. If it
is not able to bootstrap them from binaries, it installs them from
source code. With these changes, you should still be able to clone Spack
and start using it almost immediately.
* Reuse existing packages (experimental)
The most wanted feature from our
2020 user survey and
the most wanted Spack feature of all time (#25310). spack install,
spack spec, and spack concretize now have a --reuse option, which
causes Spack to minimize the number of rebuilds it does. The --reuse
option will try to find existing installations and binary packages locally
and in registered mirrors, and will prefer to use them over building new
versions. This will allow users to build from source far less than in
prior versions of Spack. This feature will continue to be improved, with
configuration options and better CLI expected in v0.17.1. It will become
the default concretization mode in v0.18.0.
* Better error messages
We have improved the error messages generated by the new concretizer by
OBS-URL: https://build.opensuse.org/request/show/931785
OBS-URL: https://build.opensuse.org/package/show/network:cluster/spack?expand=0&rev=35
2021-11-16 15:32:55 +01:00
|
|
|
source /usr/share/spack/setup-env.sh
|
|
|
|
make man info || { cat /tmp/sphinx-err-*.log; exit 1; } #text dirhtml
|
|
|
|
rm -rf $tmpdir
|
2020-12-08 16:10:47 +01:00
|
|
|
gzip _build/texinfo/Spack.info _build/man/spack.1
|
|
|
|
%endif
|
2020-11-19 15:49:24 +01:00
|
|
|
|
|
|
|
%install
|
2021-07-26 15:26:41 +02:00
|
|
|
# combine READMEs
|
|
|
|
cat %{S:4} >> %{S:1}
|
2020-12-08 16:10:47 +01:00
|
|
|
%if %{without doc}
|
|
|
|
cp %{S:1} .
|
2020-11-19 15:49:24 +01:00
|
|
|
# Fix some rpmlint warnings
|
|
|
|
## Remove files not required to run spack
|
|
|
|
rm -rf lib/spack/spack/test
|
|
|
|
rm -rf share/spack/qa
|
2020-12-08 16:10:47 +01:00
|
|
|
rm -rf share/spack/logo
|
2020-11-19 15:49:24 +01:00
|
|
|
rm -rf var/spack/repos/builtin.mock var/spack/gpg.mock var/spack/mock_configs
|
|
|
|
rm -rf lib/spack/external/ruamel/yaml/.ruamel
|
|
|
|
find . -type f -name .gitignore -delete
|
|
|
|
find . -type f -name .nojekyll -delete
|
2022-12-05 12:17:15 +01:00
|
|
|
find . -type f -name .gitlab-ci.yml -delete
|
|
|
|
|
2020-12-08 16:10:47 +01:00
|
|
|
# Fix _spack_root link
|
2020-11-19 15:49:24 +01:00
|
|
|
rm -f lib/spack/docs/_spack_root
|
|
|
|
ln -sf ../.. lib/spack/docs/_spack_root
|
2020-12-08 16:10:47 +01:00
|
|
|
# Do not ship Docker and container building for now - needs fixing
|
|
|
|
rm -rf share/spack/{templates/container}
|
|
|
|
rm -rf share/spack/docker/{centos,ubuntu}*.dockerfile
|
|
|
|
# Do not ship AWS specifics
|
|
|
|
rm -f share/spack/setup-tutorial-env.sh
|
|
|
|
# Fix rpmlint warnings
|
2020-11-19 15:49:24 +01:00
|
|
|
## No need for the standalone scripts
|
|
|
|
rm -f lib/spack/external/macholib/macho_*.py
|
2022-11-26 12:34:27 +01:00
|
|
|
## Remove non linux stuff
|
|
|
|
rm -f bin/spack.bat bin/spack_cmd.bat bin/spack_pwsh.ps1
|
2021-03-16 16:29:38 +01:00
|
|
|
## Fix shebangs
|
2022-11-24 08:38:21 +01:00
|
|
|
#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
|
2020-11-19 15:49:24 +01:00
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{spack_dir}
|
|
|
|
mkdir -p %{buildroot}%{spack_dir}/opt
|
2020-12-08 16:10:47 +01:00
|
|
|
mkdir -p %{buildroot}%{_datarootdir}/spack/lib/spack
|
2020-11-19 15:49:24 +01:00
|
|
|
mkdir -p %{buildroot}%{_datarootdir}/spack/modules
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/lib/spack
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/lib/spack/junit-report
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/cache/spack
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/skel/.spack/
|
|
|
|
mkdir -p %{buildroot}/%{_bindir}
|
2020-12-08 16:10:47 +01:00
|
|
|
# Link avoids having to fix paths
|
2020-11-19 15:49:24 +01:00
|
|
|
ln -sf %{buildroot}/%{_localstatedir}/cache/spack %{buildroot}%{_localstatedir}/lib/spack/cache
|
|
|
|
|
|
|
|
# Copy files to corresponding paths
|
2020-12-08 16:10:47 +01:00
|
|
|
cp -r etc %{buildroot}%{_prefix}
|
2022-11-24 08:38:21 +01:00
|
|
|
cp -r lib/spack/{env,external,llnl,spack,spack_installable} %{buildroot}%{spack_dir}
|
2020-11-19 15:49:24 +01:00
|
|
|
cp -r share/spack/* %{buildroot}%{_datarootdir}/spack
|
|
|
|
cp -r var/spack/* %{buildroot}%{_localstatedir}/lib/spack
|
|
|
|
cp -r bin/sbang %{buildroot}/%{_bindir}
|
2020-12-08 16:10:47 +01:00
|
|
|
cp -r bin/spack* %{buildroot}%{_bindir}/
|
2020-11-19 15:49:24 +01:00
|
|
|
cp etc/spack/defaults/config.yaml %{buildroot}%{_sysconfdir}/skel/.spack/
|
2021-03-31 17:51:48 +02:00
|
|
|
install -m 755 %{S:3} %{buildroot}/%{spack_dir}/run-find-external.sh
|
2022-01-12 17:44:43 +01:00
|
|
|
sed -i -e 's#@@_sysconfdir@@#%{_sysconfdir}#' %{buildroot}/%{spack_dir}/run-find-external.sh
|
2020-11-19 15:49:24 +01:00
|
|
|
|
2021-12-14 12:16:05 +01:00
|
|
|
# Make spack only to write to home dir of user, if run as user
|
|
|
|
sed -i 's@\(\sroot:\) /opt/spack@\1 ~/spack/packages@' %{buildroot}%{_sysconfdir}/skel/.spack/config.yaml
|
2020-11-19 15:49:24 +01:00
|
|
|
sed -i 's@\(\ssource_cache:\).*@\1 /var/tmp/$user/spack-cache@' %{buildroot}%{_sysconfdir}/skel/.spack/config.yaml
|
2020-12-08 16:10:47 +01:00
|
|
|
cat >> %{buildroot}%{_sysconfdir}/skel/.spack/config.yaml <<EOF
|
2022-11-24 08:38:21 +01:00
|
|
|
|
2020-12-08 16:10:47 +01:00
|
|
|
binary_index_root: ~/.spack/indices
|
|
|
|
EOF
|
2020-11-19 15:49:24 +01:00
|
|
|
|
2021-12-14 12:16:05 +01:00
|
|
|
cat >> %{buildroot}%{_sysconfdir}/skel/.spack/modules.yaml <<EOF
|
|
|
|
modules:
|
|
|
|
default:
|
|
|
|
roots:
|
|
|
|
tcl: ~/spack/modules
|
|
|
|
lmod: ~/spack/modules
|
|
|
|
EOF
|
|
|
|
|
2020-11-19 15:49:24 +01:00
|
|
|
# compile python files for python3
|
2020-12-08 16:10:47 +01:00
|
|
|
# %%{buildroot}%%{spack_dir}/spack
|
2022-03-02 17:29:47 +01:00
|
|
|
%py3_compile .
|
2020-11-19 15:49:24 +01:00
|
|
|
|
|
|
|
# make shell scripts executeable
|
|
|
|
find %{buildroot}%{_localstatedir}/lib/spack/ -type f -name \*.sh -exec chmod 755 {} \;
|
|
|
|
|
|
|
|
# Create /etc/spack/compilers.yaml
|
|
|
|
mkdir -p %{buildroot}%{spack_dir}/etc/spack/
|
|
|
|
cat > %{buildroot}%{spack_dir}/etc/spack/compilers.yaml <<EOF
|
|
|
|
compilers:
|
|
|
|
- compiler:
|
|
|
|
spec: gcc@GCC_FULL_VERSION
|
|
|
|
paths:
|
|
|
|
cc: /usr/bin/gcc-GCC_VERSION
|
|
|
|
cxx: /usr/bin/g++-GCC_VERSION
|
|
|
|
f77: /usr/bin/gfortran-GCC_VERSION
|
|
|
|
fc: /usr/bin/gfortran-GCC_VERSION
|
|
|
|
flags: {}
|
|
|
|
operating_system: SUSE_VERSION
|
|
|
|
target: HOSTTYPE
|
|
|
|
modules: []
|
|
|
|
environment:
|
|
|
|
unset: []
|
|
|
|
extra_rpaths: []
|
|
|
|
EOF
|
|
|
|
|
|
|
|
# Create /etc/profile.d/spack.sh
|
|
|
|
# This file properly sets MODULEPATH so lua-lmod can find the modules created by spack
|
|
|
|
mkdir -p %{buildroot}/%{_sysconfdir}/profile.d
|
|
|
|
cat > %{buildroot}/%{_sysconfdir}/profile.d/spack.sh <<EOF
|
|
|
|
source /etc/os-release
|
2022-08-19 15:09:17 +02:00
|
|
|
if [ "\${ID}" = "opensuse-tumbleweed" ] ; then
|
2020-11-19 15:49:24 +01:00
|
|
|
SPACK_NAME="\${ID/-/}"
|
|
|
|
else
|
|
|
|
SPACK_NAME="\${ID/-/_}\${VERSION_ID/.*/}"
|
|
|
|
fi
|
|
|
|
export SPACK_ROOT=%{spack_dir}
|
2021-03-19 17:07:22 +01:00
|
|
|
export MODULEPATH=~/spack/modules/linux-\${SPACK_NAME}-\${CPU}:%{_prefix}/share/spack/modules/linux-\${SPACK_NAME}-\${CPU}:\${MODULEPATH}
|
2020-11-19 15:49:24 +01:00
|
|
|
# copy local configuration, if its not there
|
|
|
|
if [ ! -e ~/.spack/config.yaml ] ; then
|
|
|
|
# test if user is in spack group by touching database
|
|
|
|
if ! touch %{spack_dir}/.spack-db &> /dev/null ; then
|
|
|
|
test -e ~/.spack || mkdir -p ~/.spack
|
|
|
|
[ -e ~/.spack/config.yaml ] || \
|
|
|
|
cp -r %{_sysconfdir}/skel/.spack/config.yaml ~/.spack/
|
2021-12-14 12:16:05 +01:00
|
|
|
[ -e ~/.spack/modules.yaml ] || \
|
|
|
|
cp -r %{_sysconfdir}/skel/.spack/modules.yaml ~/.spack/
|
2020-11-19 15:49:24 +01:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
EOF
|
|
|
|
# Same for csh
|
|
|
|
cat > %{buildroot}/%{_sysconfdir}/profile.d/spack.csh <<EOF
|
|
|
|
# get ID
|
|
|
|
eval \`awk '/^ID=/ {sub("-","_"); printf("set %%s",\$0);}' /etc/os-release\`
|
|
|
|
# get VERSION_ID
|
|
|
|
eval \`awk '/^VERSION_ID=/ {sub("\\\\.[0-9]",""); printf("set %%s",\$0);}' /etc/os-release\`
|
|
|
|
if ( \$ID == "opensuse_tumbleweed" ) then
|
|
|
|
eval \`awk '/^ID=/ {sub("-",""); printf("set %%s",\$0);}' /etc/os-release\`
|
|
|
|
set SPACK_NAME=\$ID
|
2021-03-16 16:29:38 +01:00
|
|
|
else
|
2020-11-19 15:49:24 +01:00
|
|
|
set SPACK_NAME="\${ID}\${VERSION_ID}"
|
2021-03-16 16:29:38 +01:00
|
|
|
endif
|
2020-11-19 15:49:24 +01:00
|
|
|
set SPACK_ROOT="%{spack_dir}"
|
2021-03-19 17:07:22 +01:00
|
|
|
set MODULEPATH="~/spack/modules/linux-\${SPACK_NAME}-\${CPU}:%{_prefix}/share/spack/modules/linux-\${SPACK_NAME}-\${CPU}:\${MODULEPATH}"
|
2020-11-19 15:49:24 +01:00
|
|
|
if ( ! -e ~/.spack/config.yaml ) then
|
|
|
|
# test if user is in spack group by touching database
|
|
|
|
touch %{spack_dir}/.spack-db >& /dev/null
|
|
|
|
if ( \$? == 1 ) then
|
|
|
|
test -e ~/.spack || mkdir -p ~/.spack
|
|
|
|
test -e ~/.spack/config.yaml || \
|
|
|
|
cp -r %{_sysconfdir}/skel/.spack/config.yaml ~/.spack/
|
2021-12-14 12:16:05 +01:00
|
|
|
test -e ~/.spack/modules.yaml || \
|
|
|
|
cp -r %{_sysconfdir}/skel/.spack/modules.yaml ~/.spack/
|
2020-11-19 15:49:24 +01:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
EOF
|
2021-12-14 12:16:05 +01:00
|
|
|
## Create modules.yaml file, so that hierarchy module files are created
|
|
|
|
#cat > %{buildroot}%{spack_dir}/etc/spack/modules.yaml <<EOF
|
|
|
|
#modules:
|
|
|
|
# enable:
|
|
|
|
# - lmod
|
|
|
|
# lmod:
|
|
|
|
# core_compilers:
|
|
|
|
# - 'gcc@GCC_FULL_VERSION'
|
|
|
|
# projections:
|
|
|
|
# all: '{compiler.name}-{compiler.version}/{name}/{version}'
|
|
|
|
# ^mpi: '{compiler.name}-{compiler.version}/{^mpi.name}-{^mpi.version}/{name}/{version}'
|
|
|
|
#EOF
|
2020-12-08 16:10:47 +01:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/spack
|
2020-11-19 15:49:24 +01:00
|
|
|
|
|
|
|
# Fix link to not point into buildroot
|
|
|
|
rm -f %{buildroot}%{_localstatedir}/lib/spack/cache
|
|
|
|
ln -sf %{_localstatedir}/cache/spack %{buildroot}%{_localstatedir}/lib/spack/cache
|
2020-12-08 16:10:47 +01:00
|
|
|
# Remove problematic binaries which are removed upstream with
|
|
|
|
# 0889be20e0d9dcdf4346cdeaa0647285187375f3
|
|
|
|
rm -r %{buildroot}%{_localstatedir}/lib/spack/repos/builtin/packages/patchelf/test/
|
2021-10-04 15:55:13 +02:00
|
|
|
|
2021-10-18 16:45:44 +02:00
|
|
|
echo "g %{name} -" > system-group-%{name}.conf
|
|
|
|
%sysusers_generate_pre system-group-%{name}.conf %{name} system-group-%{name}.conf
|
|
|
|
install -D -m 644 system-group-%{name}.conf %{buildroot}%{_sysusersdir}/system-group-%{name}.conf
|
2021-10-04 15:55:13 +02:00
|
|
|
|
2020-11-19 15:49:24 +01:00
|
|
|
%fdupes %{buildroot}%{spack_dir}
|
|
|
|
%fdupes %{buildroot}%{_datarootdir}/spack
|
|
|
|
%fdupes %{buildroot}%{_localstatedir}/lib/spack
|
2022-01-12 17:44:43 +01:00
|
|
|
%{?_distconfdir:%fdupes %{buildroot}/%{_distconfdir}/spack}
|
2020-12-08 16:10:47 +01:00
|
|
|
%else
|
|
|
|
mkdir -p %{buildroot}%{_infodir}
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
|
cd lib/spack/docs/_build
|
|
|
|
cp man/spack.1.gz %{buildroot}%{_mandir}/man1/
|
2021-02-04 19:31:35 +01:00
|
|
|
cp -r texinfo/Spack.info.gz %{buildroot}%{_infodir}
|
|
|
|
[ -d texinfo/Spack-figures ] && cp -r texinfo/Spack-figures %{buildroot}%{_infodir}
|
2020-12-08 16:10:47 +01:00
|
|
|
%endif
|
2020-11-19 15:49:24 +01:00
|
|
|
|
2021-10-04 15:55:13 +02:00
|
|
|
%pre -f %{name}.pre
|
2020-11-19 15:49:24 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
# Replace /etc/spack/compilers.yaml
|
|
|
|
export GCC_VERSION=`gcc -dumpversion`
|
|
|
|
export GCC_FULL_VERSION=`gcc -dumpfullversion`
|
|
|
|
|
|
|
|
sed -i "s@GCC_FULL_VERSION@$GCC_FULL_VERSION@" %{spack_dir}/etc/spack/compilers.yaml
|
2021-12-14 12:16:05 +01:00
|
|
|
#sed -i "s@GCC_FULL_VERSION@$GCC_FULL_VERSION@" %{spack_dir}/etc/spack/modules.yaml
|
2020-11-19 15:49:24 +01:00
|
|
|
sed -i "s@GCC_VERSION@$GCC_VERSION@" %{spack_dir}/etc/spack/compilers.yaml
|
|
|
|
if [ -e /etc/os-release ] ; then
|
|
|
|
source /etc/os-release
|
2022-08-19 15:09:17 +02:00
|
|
|
if [ "${ID}" = "opensuse-tumbleweed" ] ; then
|
2020-11-19 15:49:24 +01:00
|
|
|
export SPACK_NAME="${ID/-/}"
|
|
|
|
else
|
|
|
|
export SPACK_NAME="${ID/-/_}${VERSION_ID/.*/}"
|
|
|
|
fi
|
|
|
|
sed -i "s@SUSE_VERSION@$SPACK_NAME@" %{spack_dir}/etc/spack/compilers.yaml
|
|
|
|
sed -i "s@SUSE_VERSION@$SPACK_NAME@g" /etc/profile.d/spack.sh
|
|
|
|
fi
|
|
|
|
sed -i "s@HOSTTYPE@$HOSTTYPE@" %{spack_dir}/etc/spack/compilers.yaml
|
2020-12-08 16:10:47 +01:00
|
|
|
# find installed programms
|
2022-11-24 08:38:21 +01:00
|
|
|
/usr/lib/spack/run-find-external.sh
|
Accepting request 931785 from home:mslacken:sp
- updated to version 0.17.0
(Upstream feature/bug references (<ID>) are relative to
https://github.com/spack/spack/issues/<ID>).
* New concretizer is now default
The new concretizer introduced as an experimental feature in v0.16.0
is now the default (#25502). The new concretizer is based on the
clingo logic programming system,
and it enables us to do much higher quality and faster dependency solving
The old concretizer is still available via the concretizer: original
setting, but it is deprecated and will be removed in v0.18.0.
* Binary Bootstrapping
To make it easier to use the new concretizer and binary packages,
Spack now bootstraps clingo and GnuPG from public binaries. If it
is not able to bootstrap them from binaries, it installs them from
source code. With these changes, you should still be able to clone Spack
and start using it almost immediately.
* Reuse existing packages (experimental)
The most wanted feature from our
2020 user survey and
the most wanted Spack feature of all time (#25310). spack install,
spack spec, and spack concretize now have a --reuse option, which
causes Spack to minimize the number of rebuilds it does. The --reuse
option will try to find existing installations and binary packages locally
and in registered mirrors, and will prefer to use them over building new
versions. This will allow users to build from source far less than in
prior versions of Spack. This feature will continue to be improved, with
configuration options and better CLI expected in v0.17.1. It will become
the default concretization mode in v0.18.0.
* Better error messages
We have improved the error messages generated by the new concretizer by
OBS-URL: https://build.opensuse.org/request/show/931785
OBS-URL: https://build.opensuse.org/package/show/network:cluster/spack?expand=0&rev=35
2021-11-16 15:32:55 +01:00
|
|
|
mkdir -p /opt/spack
|
|
|
|
chgrp spack /opt/spack
|
|
|
|
chmod 0775 /opt/spack
|
2020-11-19 15:49:24 +01:00
|
|
|
|
2020-12-08 16:10:47 +01:00
|
|
|
%triggerin -- %{?spack_trigger_recommended} %{?spack_trigger_packages} %{?spack_trigger_external}
|
2021-03-30 16:36:39 +02:00
|
|
|
/usr/lib/spack/run-find-external.sh
|
2021-02-04 19:31:35 +01:00
|
|
|
|
2020-12-08 16:10:47 +01:00
|
|
|
%triggerpostun -- %{?spack_trigger_recommended} %{?spack_trigger_packages} %{?spack_trigger_external}
|
2021-03-30 16:36:39 +02:00
|
|
|
/usr/lib/spack/run-find-external.sh
|
2020-12-08 16:10:47 +01:00
|
|
|
|
|
|
|
%if %{without doc}
|
2020-11-19 15:49:24 +01:00
|
|
|
%files
|
|
|
|
%license COPYRIGHT LICENSE-APACHE LICENSE-MIT
|
2020-12-08 16:10:47 +01:00
|
|
|
%doc CHANGELOG.md NOTICE README.md README.SUSE
|
|
|
|
%dir %{_sysconfdir}/spack/
|
2020-11-19 15:49:24 +01:00
|
|
|
%{_bindir}/*
|
2020-12-08 16:10:47 +01:00
|
|
|
%if 0%{?suse_version} <= 1500
|
|
|
|
%dir %{_prefix}/etc
|
|
|
|
%endif
|
|
|
|
%{_prefix}/etc/spack
|
2020-11-19 15:49:24 +01:00
|
|
|
%attr(0775, root, spack) %{_localstatedir}/lib/spack/junit-report
|
|
|
|
%attr(0775, root, spack) %{spack_dir}/opt
|
|
|
|
%attr(0775, root, spack) %{_localstatedir}/cache/spack
|
|
|
|
%attr(0775, root, spack) %{_datarootdir}/spack/modules
|
2020-12-08 16:10:47 +01:00
|
|
|
%{spack_dir}
|
2020-11-19 15:49:24 +01:00
|
|
|
%{_localstatedir}/cache/spack
|
|
|
|
%{_localstatedir}/lib/spack
|
|
|
|
%{_datarootdir}/spack
|
|
|
|
%config %{_sysconfdir}/profile.d/spack.sh
|
2021-03-30 16:36:39 +02:00
|
|
|
%ghost %config %{_sysconfdir}/spack/packages.yaml
|
2020-11-19 15:49:24 +01:00
|
|
|
%config %{_sysconfdir}/profile.d/spack.csh
|
|
|
|
%dir %{_sysconfdir}/skel/.spack
|
|
|
|
%config %{_sysconfdir}/skel/.spack/config.yaml
|
2021-12-14 12:16:05 +01:00
|
|
|
%config %{_sysconfdir}/skel/.spack/modules.yaml
|
2020-11-19 15:49:24 +01:00
|
|
|
# repos directory is installed in -recipes
|
2021-10-18 16:45:44 +02:00
|
|
|
%{_sysusersdir}/system-group-%{name}.conf
|
2020-11-19 15:49:24 +01:00
|
|
|
%exclude %{_localstatedir}/lib/spack/repos
|
|
|
|
|
|
|
|
%files recipes
|
|
|
|
%license COPYRIGHT LICENSE-APACHE LICENSE-MIT
|
|
|
|
%doc CHANGELOG.md NOTICE README.md
|
|
|
|
%{_localstatedir}/lib/spack/repos
|
|
|
|
|
2020-12-08 16:10:47 +01:00
|
|
|
%else
|
2021-02-04 19:31:35 +01:00
|
|
|
|
|
|
|
%post info
|
|
|
|
%install_info --info-dir=%{_infodir} --info-file="%{_infodir}/Spack.info.gz"
|
|
|
|
|
|
|
|
%preun info
|
|
|
|
%install_info_delete --info-dir=%{_infodir} --info-file="%{_infodir}/Spack.info.gz"
|
|
|
|
|
2020-12-08 16:10:47 +01:00
|
|
|
%files man
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
|
|
|
%files info
|
|
|
|
%{_infodir}/*
|
|
|
|
|
|
|
|
%endif
|
2020-11-19 15:49:24 +01:00
|
|
|
|
|
|
|
%changelog
|