java-21-openjdk/config-portable-riscv64.yaml
2026-07-07 13:04:31 +03:00

64 lines
2.1 KiB
YAML

parameters:
custom_target_branch: "a10-portable-riscv64"
pre_clean: true
actions:
- run_script:
- script: "replace_spec.sh"
cwd: "rpms"
- replace:
- target: "spec"
find: |
# Enable fastdebug builds by default on relevant arches.
%bcond_without fastdebug
replace: |
%ifarch riscv64
%define debug_package %{nil}
%endif
# Enable fastdebug builds by default on relevant arches.
%bcond_without fastdebug
count: 1
- target: "spec"
find: |
%define miscportablearchive() %{miscportablename}.tar.xz
replace: |
%define miscportablearchive() %{miscportablename}.tar.xz
# RPM 4.19 no longer accept our double percentaged %%{nil} passed to %%{1}
# so we have to pass in "" but evaluate it, otherwise files record will include it
%define jreportablearchiveForFiles() %(echo %{jreportablearchive -- ""})
%define jdkportablearchiveForFiles() %(echo %{jdkportablearchive -- ""})
%define staticlibsportablearchiveForFiles() %(echo %{staticlibsportablearchive -- ""})
count: 1
- target: "spec"
find: |
%ifarch s390x sparc64 alpha %{power64} %{aarch64}
export ARCH_DATA_MODEL=64
%endif
replace: |
%ifarch s390x sparc64 alpha %{power64} %{aarch64} riscv64
export ARCH_DATA_MODEL=64
%endif
count: 1
- target: "spec"
find: "jreportablearchive -- %%{nil}"
replace: "jreportablearchiveForFiles"
count: -1
- target: "spec"
find: "jdkportablearchive -- %%{nil}"
replace: "jdkportablearchiveForFiles"
count: -1
- target: "spec"
find: "staticlibsportablearchive -- %%{nil}"
replace: "staticlibsportablearchiveForFiles"
count: -1
- changelog_entry:
- name: "alukoshko"
email: "alukoshko@almalinux.org"
line:
- "Portable build for riscv64"