From 629af510ef243d0c4b83ad0b6babf98bc85daf87 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Wed, 23 Jul 2025 13:21:11 +0300 Subject: [PATCH] Add config for portable --- config-portable.yaml | 14 ++++++++++++++ config.yaml | 21 --------------------- scripts/replace_spec.sh | 4 ++++ 3 files changed, 18 insertions(+), 21 deletions(-) create mode 100644 config-portable.yaml delete mode 100644 config.yaml create mode 100644 scripts/replace_spec.sh diff --git a/config-portable.yaml b/config-portable.yaml new file mode 100644 index 0000000..4532c7c --- /dev/null +++ b/config-portable.yaml @@ -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" diff --git a/config.yaml b/config.yaml deleted file mode 100644 index 7bd8e73..0000000 --- a/config.yaml +++ /dev/null @@ -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" diff --git a/scripts/replace_spec.sh b/scripts/replace_spec.sh new file mode 100644 index 0000000..7bb673b --- /dev/null +++ b/scripts/replace_spec.sh @@ -0,0 +1,4 @@ +pushd SPECS +rm java-21-openjdk.spec +ln -s ../SOURCES/java-21-openjdk-portable.specfile java-21-openjdk.spec +popd