Set ExclusiveArch on any OS with java_arches

Fedora builds are not the only ones which no longer build Java for ix86;
Fedora ELN and RHEL 10 are following that as well.  This will avoid
builds landing on Java-less architecture builders and thereby failing.

Submitted upstream: https://github.com/dogtagpki/ldap-sdk/pull/53
This commit is contained in:
Yaakov Selkowitz 2023-07-25 20:04:17 -04:00
parent 1a74f825e7
commit 72426aec77

View File

@ -45,7 +45,7 @@ Source: https://github.com/dogtagpki/ldap-sdk/archive/v%{version}%{?phase:-}%{?p
# Patch: ldap-sdk-VERSION-RELEASE.patch
BuildArch: noarch
%if 0%{?fedora}
%if 0%{?java_arches:1}
ExclusiveArch: %{java_arches} noarch
%endif