Browse Source

also build libvirt zfs driver for x86_64, starting with fedora 43

main
Nicolas Massé 1 month ago
parent
commit
45d8edd18d
  1. 10
      build.sh

10
build.sh

@ -18,7 +18,17 @@ for dist in centos-* fedora-*; do
echo "Building packages for $dist using $chroot..." echo "Building packages for $dist using $chroot..."
for spec in $dist/SPECS/*.spec; do for spec in $dist/SPECS/*.spec; do
spec="${spec#$dist/}" spec="${spec#$dist/}"
package_name="$(basename "$spec" .spec)"
dist_version="${dist#*-}"
dist_name="${dist%%-*}"
copr-cli buildscm --clone-url "$GIT_REPOSITORY" --method make_srpm --subdir "$dist" --spec "$spec" --chroot "$chroot" --background --nowait "$COPR_PROJECT" copr-cli buildscm --clone-url "$GIT_REPOSITORY" --method make_srpm --subdir "$dist" --spec "$spec" --chroot "$chroot" --background --nowait "$COPR_PROJECT"
# Special case for libvirt on Fedora 43. Since the ZFS driver of libvirt is disabled since Fedora 43, we also build it for x86_64.
if [[ "$package_name" == "libvirt" && "$dist_name" == "fedora" && "$dist_version" -ge "43" ]]; then
echo "Also submitting libvirt build for Fedora 43 using x86_64 chroot..."
copr-cli buildscm --clone-url "$GIT_REPOSITORY" --method make_srpm --subdir "$dist" --spec "$spec" --chroot "$dist-x86_64" --background --nowait "$COPR_PROJECT"
fi
done done
done done

Loading…
Cancel
Save