diff --git a/config-portable-riscv64.yaml b/config-portable-riscv64.yaml index 6019b7d..e416bbf 100644 --- a/config-portable-riscv64.yaml +++ b/config-portable-riscv64.yaml @@ -30,6 +30,19 @@ actions: export ARCH_DATA_MODEL=64 %endif count: 1 + - target: "spec" + find: | + %if 0%{?centos} != 0 && 0%{?centos} != 0%{centos_buildos} + %global pkgos rhel%{?centos} + %endif + replace: | + %if 0%{?centos} != 0 && 0%{?centos} != 0%{centos_buildos} + %global pkgos rhel%{?centos} + %endif + %if 0%{?almalinux} + %undefine pkgos + %endif + count: 1 - changelog_entry: diff --git a/config-portable.yaml b/config-portable.yaml index 4532c7c..0a786fd 100644 --- a/config-portable.yaml +++ b/config-portable.yaml @@ -7,6 +7,21 @@ actions: - script: "replace_spec.sh" cwd: "rpms" + - replace: + - target: "spec" + find: | + %if 0%{?centos} != 0 && 0%{?centos} != 0%{centos_buildos} + %global pkgos rhel%{?centos} + %endif + replace: | + %if 0%{?centos} != 0 && 0%{?centos} != 0%{centos_buildos} + %global pkgos rhel%{?centos} + %endif + %if 0%{?almalinux} + %undefine pkgos + %endif + count: 1 + - changelog_entry: - name: "eabdullin" email: "eabdullin@almalinux.org"