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:
commit
ecbb4f6ee8
@ -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>
|
Fri Jan 3 13:40:08 UTC 2025 - Egbert Eich <eich@suse.com>
|
||||||
|
|
||||||
|
@ -226,6 +226,12 @@ for i in share/spack/setup-env.*; do
|
|||||||
done
|
done
|
||||||
%else
|
%else
|
||||||
cp %{S:5} lib/spack/docs/
|
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
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
Loading…
Reference in New Issue
Block a user