From 8e6d0ee105c077e75614b44c7c12c501eed0d09e Mon Sep 17 00:00:00 2001 From: Chris Kelley Date: Wed, 26 Jul 2023 20:01:07 +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. --- jakarta-activation.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jakarta-activation.spec b/jakarta-activation.spec index 4a66171..5098c66 100644 --- a/jakarta-activation.spec +++ b/jakarta-activation.spec @@ -8,7 +8,9 @@ Summary: Jakarta Activation API License: EPL-2.0 or BSD or GPLv2 with exceptions URL: https://jakartaee.github.io/jaf-api/ BuildArch: noarch +%if 0%{?java_arches:1} ExclusiveArch: %{java_arches} noarch +%endif Source0: https://github.com/eclipse-ee4j/jaf/archive/%{version}/jaf-%{version}.tar.gz