From 14dfcf91409e5ec9c58e184835b1b68dee4cbc39 Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Thu, 8 Feb 2024 14:19:10 +0200 Subject: [PATCH] Do not require java outside of supported Java architectures When building pre-releases, RelaxNG needs java but Fedora does not ship one on i686: https://fedoraproject.org/wiki/Changes/Drop_i686_JDKs Signed-off-by: Alexander Bokovoy --- opendnssec.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/opendnssec.spec b/opendnssec.spec index 70a2ae1..66c54d7 100644 --- a/opendnssec.spec +++ b/opendnssec.spec @@ -41,7 +41,10 @@ Requires(preun): systemd-units Requires(postun): systemd-units %if 0%{?prever:1} # For building development snapshots -Buildrequires: autoconf, automake, libtool, java +Buildrequires: autoconf, automake, libtool +%ifarch %{java_arches} +Buildrequires: java +%endif %endif %description