From 6d56296060c83e844f4296a81fa2230a56fd6dca Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Thu, 14 Dec 2023 12:11:49 -0500 Subject: [PATCH] Build only on %java_arches While the resulting RPM is noarch, this package uses java-devel for testing purposes, and therefore can only be built on java-enabled arches. This prevents the build from landing on an i686 builder and failing. --- crypto-policies.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto-policies.spec b/crypto-policies.spec index 356a0d2..a7bfc14 100644 --- a/crypto-policies.spec +++ b/crypto-policies.spec @@ -36,6 +36,7 @@ URL: https://gitlab.com/redhat-crypto/fedora-crypto-policies # For RHEL-9 we use the upstream branch rhel9. Source0: https://gitlab.com/redhat-crypto/fedora-crypto-policies/-/archive/%{git_commit_hash}/%{name}-git%{git_commit_hash}.tar.gz +ExclusiveArch: %{java_arches} noarch BuildArch: noarch BuildRequires: asciidoc BuildRequires: libxslt