Use el8 pkgs in AlmaLinux 9

This commit is contained in:
eabdullin 2025-10-29 17:57:43 +03:00
parent e78af61d86
commit 9409dfd232
3 changed files with 24 additions and 36 deletions

View File

@ -1,32 +0,0 @@
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"
- replace:
- target: "java-1.8.0-openjdk-portable.specfile"
find: |
mv %{jdkimage} ${jdkname}
mv %{jreimage} ${jrename}
replace: |
cp -r %{jdkimage} ${jdkname}
cp -r %{jreimage} ${jrename}
count: 1
- target: "java-1.8.0-openjdk-portable.specfile"
find: |
mv ${jdkname} %{jdkimage}
mv ${jrename} %{jreimage}
replace: |
rm -rf ${jdkname} %{jdkimage}
rm -rf ${jrename} %{jreimage}
count: 1

24
config.yaml Normal file
View File

@ -0,0 +1,24 @@
actions:
- replace:
- target: "spec"
find: |
%global portablesuffix el9
%endif
replace: |
%global portablesuffix el9
%endif
%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:
- "Change portablesiffix"

View File

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