diff --git a/config-portable.yaml b/config-portable.yaml new file mode 100644 index 0000000..2362b5f --- /dev/null +++ b/config-portable.yaml @@ -0,0 +1,29 @@ +parameters: + custom_target_branch: "a10s-portable" + pre_clean: true + +actions: + - run_script: + - 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: "Eduard Abdullin" + email: "eabdullin@almalinux.org" + line: + - "Portable build" diff --git a/scripts/replace_spec.sh b/scripts/replace_spec.sh new file mode 100644 index 0000000..b835d79 --- /dev/null +++ b/scripts/replace_spec.sh @@ -0,0 +1,2 @@ +rm java-21-openjdk.spec +ln -s java-21-openjdk-portable.specfile java-21-openjdk.spec