Accepting request 1235522 from network:cluster

- Work towards a reproducible doc build (boo#1235144): (forwarded request 1235521 from eeich)

OBS-URL: https://build.opensuse.org/request/show/1235522
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/spack?expand=0&rev=48
This commit is contained in:
Ana Guerrero 2025-01-07 19:53:54 +00:00 committed by Git OBS Bridge
commit ecbb4f6ee8
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Jan 6 19:01:00 UTC 2025 - Egbert Eich <eich@suse.com>
- Work towards a reproducible doc build (boo#1235144):
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

@ -226,6 +226,12 @@ for i in share/spack/setup-env.*; do
done
%else
cp %{S:5} lib/spack/docs/
# For building docs make build reproducible:
# - 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