Skip to content

Commit

Permalink
Add CentOS 10 Stream mockbuild targets
Browse files Browse the repository at this point in the history
Add targets to mockbuild.sh and generate_sourcerpms.sh to build RPMs
orgenerate source RPMs for CentOS 10 Stream.  Convert the older targets
into CentOS 9 Stream.

Signed-off-by: Bryan Gurney <[email protected]>
  • Loading branch information
bgurney-rh committed Oct 24, 2024
1 parent b6358a2 commit da11e4c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 6 additions & 2 deletions mockbuild_test/generate_sourcerpms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ if [ -z "$DIST_RELEASE" ]; then
fi

case $DIST_RELEASE in
"centos-stream")
"centos-9-stream")
MOCKCONFIG="/etc/mock/centos-stream-9-x86_64.cfg"
;;

"centos-10-stream")
MOCKCONFIG="/etc/mock/centos-stream-10-x86_64.cfg"
;;

"fedora-rawhide")
MOCKCONFIG="/etc/mock/fedora-rawhide-x86_64.cfg"
;;
Expand All @@ -37,7 +41,7 @@ case $DIST_RELEASE in
;;

*)
echo "Usage: $0 centos-stream | fedora-rawhide | fedora-latest"
echo "Usage: $0 centos-9-stream | centos-10-stream | fedora-rawhide | fedora-latest"
exit 1
;;
esac
Expand Down
9 changes: 7 additions & 2 deletions mockbuild_test/mockbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,16 @@ if [ -z "$DIST_RELEASE" ]; then
fi

case $DIST_RELEASE in
"centos-stream")
"centos-9-stream")
DIST="el9"
MOCKCONFIG="/etc/mock/centos-stream-9-x86_64.cfg"
;;

"centos-10-stream")
DIST="el10"
MOCKCONFIG="/etc/mock/centos-stream-10-x86_64.cfg"
;;

"fedora-rawhide")
DIST="fc42"
MOCKCONFIG="/etc/mock/fedora-rawhide-x86_64.cfg"
Expand All @@ -42,7 +47,7 @@ case $DIST_RELEASE in
;;

*)
echo "Usage: $0 centos-stream | fedora-rawhide | fedora-next | fedora-latest | fedora-previous"
echo "Usage: $0 centos-9-stream | centos-10-stream | fedora-rawhide | fedora-next | fedora-latest | fedora-previous"
exit 1
;;
esac
Expand Down

0 comments on commit da11e4c

Please sign in to comment.