From 86e0baa6625ae75dbe416a6caedd2c398bab3a60 Mon Sep 17 00:00:00 2001 From: Andrew Hughes Date: Sat, 18 Oct 2025 16:01:07 +0100 Subject: [PATCH] Add scripts to handle tagging of portable-based RPMs Related: RHEL-118774 Related: RHEL-119466 --- java-21-openjdk.spec | 1 + scripts/builds/tag_rhel_10.sh | 42 +++++++++++++++++++++++++ scripts/builds/tag_rhel_10_nocompose.sh | 42 +++++++++++++++++++++++++ scripts/builds/tag_rhel_8.sh | 42 +++++++++++++++++++++++++ scripts/builds/tag_rhel_8_nocompose.sh | 42 +++++++++++++++++++++++++ scripts/builds/tag_rhel_9.sh | 42 +++++++++++++++++++++++++ scripts/builds/tag_rhel_9_nocompose.sh | 42 +++++++++++++++++++++++++ 7 files changed, 253 insertions(+) create mode 100755 scripts/builds/tag_rhel_10.sh create mode 100755 scripts/builds/tag_rhel_10_nocompose.sh create mode 100755 scripts/builds/tag_rhel_8.sh create mode 100755 scripts/builds/tag_rhel_8_nocompose.sh create mode 100755 scripts/builds/tag_rhel_9.sh create mode 100755 scripts/builds/tag_rhel_9_nocompose.sh diff --git a/java-21-openjdk.spec b/java-21-openjdk.spec index d70c934..fc15dfa 100644 --- a/java-21-openjdk.spec +++ b/java-21-openjdk.spec @@ -2569,6 +2569,7 @@ cjc.mainProgram(args) %changelog * Sat Oct 18 2025 Andrew Hughes - 1:21.0.9.0.10-2 - Bump rpmrelease for CentOS build +- Add scripts to handle tagging of portable-based RPMs - Related: RHEL-118774 - Related: RHEL-119466 diff --git a/scripts/builds/tag_rhel_10.sh b/scripts/builds/tag_rhel_10.sh new file mode 100755 index 0000000..af08e32 --- /dev/null +++ b/scripts/builds/tag_rhel_10.sh @@ -0,0 +1,42 @@ +#!/bin/sh + +# Copyright (C) 2025 Red Hat, Inc. +# Written by: +# Andrew John Hughes +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + +# Tag RHEL 10 RPMs into all supported streams + +SUPPORTED_VERS="10.0-z 10.1-z 10.2" +BUILD=${1} + +if test "${BUILD}" = ""; then + echo "${0} "; + exit 1; +fi + +for ver in ${SUPPORTED_VERS}; do + tag="rhel-${ver}-gate"; + echo "Tagging ${BUILD} into ${tag}"; + brew tag-build --nowait ${tag} ${BUILD}; +done +brew watch-task --mine + +# Local Variables: +# compile-command: "shellcheck tag_rhel_10.sh" +# fill-column: 80 +# indent-tabs-mode: nil +# sh-basic-offset: 4 +# End: diff --git a/scripts/builds/tag_rhel_10_nocompose.sh b/scripts/builds/tag_rhel_10_nocompose.sh new file mode 100755 index 0000000..61fe498 --- /dev/null +++ b/scripts/builds/tag_rhel_10_nocompose.sh @@ -0,0 +1,42 @@ +#!/bin/sh + +# Copyright (C) 2025 Red Hat, Inc. +# Written by: +# Andrew John Hughes +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + +# Tag embargoed RHEL 10 RPMs into supported z-streams + +SUPPORTED_VERS="10.0-z" +BUILD=${1} + +if test "${BUILD}" = ""; then + echo "${0} "; + exit 1; +fi + +for ver in ${SUPPORTED_VERS}; do + tag="rhel-${ver}-nocompose-candidate"; + echo "Tagging ${BUILD} into ${tag}"; + brew tag-build --nowait ${tag} ${BUILD}; +done +brew watch-task --mine + +# Local Variables: +# compile-command: "shellcheck tag_rhel_10_nocompose.sh" +# fill-column: 80 +# indent-tabs-mode: nil +# sh-basic-offset: 4 +# End: diff --git a/scripts/builds/tag_rhel_8.sh b/scripts/builds/tag_rhel_8.sh new file mode 100755 index 0000000..c3c8c71 --- /dev/null +++ b/scripts/builds/tag_rhel_8.sh @@ -0,0 +1,42 @@ +#!/bin/sh + +# Copyright (C) 2025 Red Hat, Inc. +# Written by: +# Andrew John Hughes +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + +# Tag RHEL 8 RPMs into all supported streams + +SUPPORTED_VERS="8.10.0-z" +BUILD=${1} + +if test "${BUILD}" = ""; then + echo "${0} "; + exit 1; +fi + +for ver in ${SUPPORTED_VERS}; do + tag="rhel-${ver}-gate"; + echo "Tagging ${BUILD} into ${tag}"; + brew tag-build --nowait ${tag} ${BUILD}; +done +brew watch-task --mine + +# Local Variables: +# compile-command: "shellcheck tag_rhel_8.sh" +# fill-column: 80 +# indent-tabs-mode: nil +# sh-basic-offset: 4 +# End: diff --git a/scripts/builds/tag_rhel_8_nocompose.sh b/scripts/builds/tag_rhel_8_nocompose.sh new file mode 100755 index 0000000..027ea5e --- /dev/null +++ b/scripts/builds/tag_rhel_8_nocompose.sh @@ -0,0 +1,42 @@ +#!/bin/sh + +# Copyright (C) 2025 Red Hat, Inc. +# Written by: +# Andrew John Hughes +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + +# Tag embargoed RHEL 8 RPMs into supported z-streams + +SUPPORTED_VERS="8.10.0-z" +BUILD=${1} + +if test "${BUILD}" = ""; then + echo "${0} "; + exit 1; +fi + +for ver in ${SUPPORTED_VERS}; do + tag="rhel-${ver}-nocompose-candidate"; + echo "Tagging ${BUILD} into ${tag}"; + brew tag-build --nowait ${tag} ${BUILD}; +done +brew watch-task --mine + +# Local Variables: +# compile-command: "shellcheck tag_rhel_8_nocompose.sh" +# fill-column: 80 +# indent-tabs-mode: nil +# sh-basic-offset: 4 +# End: diff --git a/scripts/builds/tag_rhel_9.sh b/scripts/builds/tag_rhel_9.sh new file mode 100755 index 0000000..5699c32 --- /dev/null +++ b/scripts/builds/tag_rhel_9.sh @@ -0,0 +1,42 @@ +#!/bin/sh + +# Copyright (C) 2025 Red Hat, Inc. +# Written by: +# Andrew John Hughes +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + +# Tag RHEL 9 RPMs into all supported streams + +SUPPORTED_VERS="9.4.0-z 9.6.0-z 9.7.0-z 9.8.0" +BUILD=${1} + +if test "${BUILD}" = ""; then + echo "${0} "; + exit 1; +fi + +for ver in ${SUPPORTED_VERS}; do + tag="rhel-${ver}-gate"; + echo "Tagging ${BUILD} into ${tag}"; + brew tag-build --nowait ${tag} ${BUILD}; +done +brew watch-task --mine + +# Local Variables: +# compile-command: "shellcheck tag_rhel_9.sh" +# fill-column: 80 +# indent-tabs-mode: nil +# sh-basic-offset: 4 +# End: diff --git a/scripts/builds/tag_rhel_9_nocompose.sh b/scripts/builds/tag_rhel_9_nocompose.sh new file mode 100755 index 0000000..3bbe753 --- /dev/null +++ b/scripts/builds/tag_rhel_9_nocompose.sh @@ -0,0 +1,42 @@ +#!/bin/sh + +# Copyright (C) 2025 Red Hat, Inc. +# Written by: +# Andrew John Hughes +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + +# Tag embargoed RHEL 9 RPMs into supported z-streams + +SUPPORTED_VERS="9.4.0-z 9.6.0-z" +BUILD=${1} + +if test "${BUILD}" = ""; then + echo "${0} "; + exit 1; +fi + +for ver in ${SUPPORTED_VERS}; do + tag="rhel-${ver}-nocompose-candidate"; + echo "Tagging ${BUILD} into ${tag}"; + brew tag-build --nowait ${tag} ${BUILD}; +done +brew watch-task --mine + +# Local Variables: +# compile-command: "shellcheck tag_rhel_9_nocompose.sh" +# fill-column: 80 +# indent-tabs-mode: nil +# sh-basic-offset: 4 +# End: