diff --git a/spack.changes b/spack.changes index f677ffc..14e6ead 100644 --- a/spack.changes +++ b/spack.changes @@ -1,8 +1,10 @@ ------------------------------------------------------------------- Mon Jan 6 19:01:00 UTC 2025 - Egbert Eich -- Work towards a reproducible doc build: - Hard code year when building documentation. +- Work towards a reproducible doc build. + When building documentation, hard code: + * year for license. + * cpu count dependent settings. ------------------------------------------------------------------- Fri Jan 3 13:40:08 UTC 2025 - Egbert Eich diff --git a/spack.spec b/spack.spec index 6c99b0e..d39d622 100644 --- a/spack.spec +++ b/spack.spec @@ -230,6 +230,8 @@ cp %{S:5} lib/spack/docs/ # - hard code year in license checker year=$(sed -ne "/Copyright/s@.*\([0-9]\{4\}\).*@\1@p" %{_sourcedir}/%{name}.spec) sed -ie "/^latest_year/s@\(.* = \).*@\1${year}@" lib/spack/spack/cmd/license.py +# - hard code cpu count dependent settings +sed -ie "/max_cpus.* =\|build_jobs/s@cpus_available()@8@" lib/spack/spack/config.py %endif %build