spec=$pkg/%fedora-branch/$pkg.spec
if [ -f $spec ]; then
# Check that the spec file excludes i686.
- if ! rpmspec -P $spec | grep -sq 'ExcludeArch:.*i386' ; then
+ # Only implement this check for ocaml-* packages, as the
+ # other packages are more complicated.
+ if [[ "$spec" =~ ^ocaml ]] &&
+ ! rpmspec -P $spec | grep -sq 'ExcludeArch:.*i386' ; then
echo "ERROR: $pkg does not ExcludeArch: %%{ix86}" >&2
exit 1
fi