diff --git a/crash.spec b/crash.spec index 9b9e5015dbc47202d0892e2425624f84dc011911..c45c7647e58dd462b6a426be7f3459887249992b 100644 --- a/crash.spec +++ b/crash.spec @@ -9,11 +9,8 @@ Release: 6%{anolis_release}%{?dist} License: GPLv3 Group: Development/Debuggers Source0: https://github.com/crash-utility/crash/archive/crash-%{version}.tar.gz -%ifarch loongarch64 -Source1: gdb-8.1.tar.gz -%else Source1: http://ftp.gnu.org/gnu/gdb/gdb-7.6.tar.gz -%endif +Source2: gdb-8.1.tar.gz URL: https://crash-utility.github.io ExclusiveOS: Linux ExclusiveArch: %{ix86} ia64 x86_64 ppc ppc64 s390 s390x %{arm} aarch64 ppc64le loongarch64 @@ -89,7 +86,11 @@ Doc pages for %{name}. %endif %build +%ifnarch loongarch64 cp %{SOURCE1} . +%else +cp %{SOURCE2} . +%endif #make RPMPKG="%{version}-%{release}" CFLAGS="%{optflags}" make RPMPKG="%{version}-%{release}" CFLAGS="%{optflags}" LDFLAGS="%{build_ldflags}"