java-21-openjdk/config.yaml
eabdullin 61d5a9e8c8 fix(autopatch): restore AlmaLinux el8 portablesuffix override
almalinux-release defines the %centos macro (%centos %{major}), so the
upstream spec's `%if 0%{?centos} == 0` test treats AlmaLinux as CentOS
and sets portablesuffix to el9. AlmaLinux must consume the el8 portable
packages (like RHEL), so the previous action was NOT obsolete — dropping
it left the "Set portablesuffix to el8" changelog with nothing setting it.

Re-add the `%if 0%{?almalinux}` -> el8 override, anchored on the stable
`%global portablebuilddir /builddir/build/BUILD` line (matching the a10s
and a10 branch configs) instead of the fragile portablesuffix/%endif anchor.
2026-07-23 10:34:29 +03:00

22 lines
515 B
YAML

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:
- "Set portablesuffix to el8"