spec: do NOT build documentation on LoongArch

The package is noarch, hence %ifarch is not going to work.
Check for %_build_cpu instead.
This commit is contained in:
Алексей Шепляков 2023-09-06 13:19:04 +00:00
parent 33684d737d
commit 9b829c7251

View File

@ -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