Add config for portable

This commit is contained in:
eabdullin 2025-07-23 13:21:11 +03:00
parent ed57855d1d
commit 629af510ef
3 changed files with 18 additions and 21 deletions

14
config-portable.yaml Normal file
View File

@ -0,0 +1,14 @@
parameters:
custom_target_branch: "a8-portable"
pre_clean: true
actions:
- run_script:
- script: "replace_spec.sh"
cwd: "rpms"
- changelog_entry:
- name: "eabdullin"
email: "eabdullin@almalinux.org"
line:
- "Portable build"

View File

@ -1,21 +0,0 @@
actions:
- replace:
- target: "spec"
find: "%global portablebuilddir /builddir/build/BUILD"
replace: |
%global portablebuilddir /builddir/build/BUILD
%if 0%{?almalinux}
%global portablesuffix el8
%endif
count: 1
- modify_release:
- suffix: ".alma.1"
enabled: true
- changelog_entry:
- name: "Eduard Abdullin"
email: "eabdullin@almalinux.org"
line:
- "Use el8 portable packages"

4
scripts/replace_spec.sh Normal file
View File

@ -0,0 +1,4 @@
pushd SPECS
rm java-21-openjdk.spec
ln -s ../SOURCES/java-21-openjdk-portable.specfile java-21-openjdk.spec
popd