94 lines
3.0 KiB
YAML
94 lines
3.0 KiB
YAML
parameters:
|
|
custom_target_branch: "a8-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
|
|
- replace:
|
|
- target: "spec"
|
|
find: |
|
|
%global ea_designator ""
|
|
%global ea_designator_zip %{nil}
|
|
replace: |
|
|
%global ea_designator beta
|
|
%global ea_designator_zip -%{ea_designator}
|
|
count: 1
|
|
- replace:
|
|
- 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
|
|
- replace:
|
|
- target: "spec"
|
|
find: |
|
|
Source0: https://openjdk-sources.osci.io/openjdk%{featurever}/open%{vcstag}%{ea_designator_zip}.tar.xz
|
|
replace: |
|
|
Source0: https://openjdk-sources.osci.io/openjdk%{featurever}/open%{vcstag}.tar.xz
|
|
count: 1
|
|
- replace:
|
|
- target: "spec"
|
|
find: |
|
|
echo "Upstream version-pre setting is '${UPSTREAM_EA_DESIGNATOR}'";
|
|
exit 17
|
|
replace: |
|
|
echo "Upstream version-pre setting is '${UPSTREAM_EA_DESIGNATOR}'";
|
|
# exit 17
|
|
count: 1
|
|
- replace:
|
|
- target: "spec"
|
|
find: |
|
|
replace: |
|
|
count: 1
|
|
- replace:
|
|
- 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
|
|
- replace:
|
|
- target: "spec"
|
|
find: "jreportablearchive -- %%{nil}"
|
|
replace: "jreportablearchiveForFiles"
|
|
count: 1
|
|
- replace:
|
|
- target: "spec"
|
|
find: "staticlibsportablearchive -- %%{nil}"
|
|
replace: "staticlibsportablearchiveForFiles"
|
|
count: 1
|
|
|
|
|
|
- changelog_entry:
|
|
- name: "alukoshko"
|
|
email: "alukoshko@almalinux.org"
|
|
line:
|
|
- "Portable build for riscv64"
|