- Work towards a reproducible doc build.

When building documentation, hard code:
  * year for license.
  * cpu count dependent settings.

OBS-URL: https://build.opensuse.org/package/show/network:cluster/spack?expand=0&rev=115
This commit is contained in:
Egbert Eich 2025-01-07 09:08:40 +00:00 committed by Git OBS Bridge
parent fc63d30e35
commit 1f14bf7adb
2 changed files with 6 additions and 2 deletions

View File

@ -1,8 +1,10 @@
-------------------------------------------------------------------
Mon Jan 6 19:01:00 UTC 2025 - Egbert Eich <eich@suse.com>
- 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 <eich@suse.com>

View File

@ -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