From: Richard W.M. Jones Date: Tue, 11 Jul 2023 10:01:44 +0000 (+0100) Subject: Ensure all packages ExcludeArch: %{ix86} X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=7c7ffe0a279bb9507bdefa4d06f8bd0e2dd4b810;hp=5fd36dda74323add27b49491a05312cf844915b8;p=fedora-ocaml-rebuild.git Ensure all packages ExcludeArch: %{ix86} --- diff --git a/Goalfile b/Goalfile index aad9b85..8bedabd 100644 --- a/Goalfile +++ b/Goalfile @@ -231,6 +231,11 @@ pure function get-source-packages () returning strings = { echo "ERROR: $pkg does not %%undefine _package_note_flags" >&2 exit 1 fi + # Check that the spec file excludes i686. + if ! rpmspec -P $spec | grep -sq 'ExcludeArch:.*i386' ; then + echo "ERROR: $pkg does not ExcludeArch: %%{ix86}" >&2 + exit 1 + fi # OK to rebuild this package. echo "$pkg" elif [ -f $pkg/%fedora-branch/dead.package ]; then