- 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:
parent
fc63d30e35
commit
1f14bf7adb
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user