From 9b829c72518b37bf867a0716276fdb16b27c02a2 Mon Sep 17 00:00:00 2001 From: Alexey Sheplyakov Date: Wed, 6 Sep 2023 13:19:04 +0000 Subject: [PATCH] spec: do NOT build documentation on LoongArch The package is noarch, hence %ifarch is not going to work. Check for %_build_cpu instead. --- .gear/mkimage-profiles.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gear/mkimage-profiles.spec b/.gear/mkimage-profiles.spec index a16ece72..7056c040 100644 --- a/.gear/mkimage-profiles.spec +++ b/.gear/mkimage-profiles.spec @@ -24,11 +24,11 @@ Requires: mkimage-preinstall %define mpdir %_datadir/%name %add_findreq_skiplist %mpdir/*.in/* -%ifarch loongarch64 -# No java here [yet] -%def_without doc -%else +%if %_build_cpu != "loongarch64" %def_with doc +%else +# XXX: documentation tools dependencies are INSANE (java) +%def_without doc %endif %define docs $HOME/docs