From 536a5324db2af490d7adea7eda1afcbdf1cbdc20 Mon Sep 17 00:00:00 2001 From: Chris Kelley Date: Wed, 26 Jul 2023 19:48:51 +0100 Subject: [PATCH] Set ExclusiveArch on any OS with java_arches This change allows downstream distros such as CentOS Stream/RHEL 9 to re-use this spec file without having to patch out the undefined java_arches macro. --- jaxb-api.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jaxb-api.spec b/jaxb-api.spec index a50963c..06b3be4 100644 --- a/jaxb-api.spec +++ b/jaxb-api.spec @@ -5,7 +5,9 @@ Summary: Jakarta XML Binding API License: BSD-3-Clause URL: https://github.com/eclipse-ee4j/jaxb-api BuildArch: noarch +%if 0%{?java_arches:1} ExclusiveArch: %{java_arches} noarch +%endif Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz