Conditionalize arches for RHEL

RHEL 10 has dropped Java on i686, and therefore ELN, c10s, and RHEL 10
(and newer) builds must also be limited to %java_arches.
This commit is contained in:
Yaakov Selkowitz 2024-02-04 22:49:11 -05:00
parent 794ffe44a8
commit f1a028dec7

View File

@ -18,7 +18,7 @@ BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(jakarta.xml.bind:jakarta.xml.bind-api) BuildRequires: mvn(jakarta.xml.bind:jakarta.xml.bind-api)
BuildArch: noarch BuildArch: noarch
%if 0%{?fedora} %if 0%{?fedora} || 0%{?rhel} >= 10
ExclusiveArch: %{java_arches} noarch ExclusiveArch: %{java_arches} noarch
%endif %endif