SPEC: add build-require 'bison' for LoongArch

Signed-off-by: ticat_fp <fanpeng@loongson.cn>
This commit is contained in:
ticat_fp 2024-04-15 10:21:20 +08:00 committed by Wenlong Zhang
parent 46971c5d22
commit 9f0e33046b

View File

@ -2,7 +2,7 @@
Summary: A GNU collection of binary utilities Summary: A GNU collection of binary utilities
Name: binutils%{?_with_debug:-debug} Name: binutils%{?_with_debug:-debug}
Version: 2.41 Version: 2.41
Release: 4 Release: 5
License: GPL-3.0-or-later AND (GPL-3.0-or-later WITH Bison-exception-2.2) AND (LGPL-2.0-or-later WITH GCC-exception-2.0) AND BSD-3-Clause AND GFDL-1.3-or-later AND GPL-2.0-or-later AND LGPL-2.1-or-later AND LGPL-2.0-or-later License: GPL-3.0-or-later AND (GPL-3.0-or-later WITH Bison-exception-2.2) AND (LGPL-2.0-or-later WITH GCC-exception-2.0) AND BSD-3-Clause AND GFDL-1.3-or-later AND GPL-2.0-or-later AND LGPL-2.1-or-later AND LGPL-2.0-or-later
URL: https://sourceware.org/binutils URL: https://sourceware.org/binutils
@ -288,6 +288,10 @@ BuildRequires: zlib-devel
BuildRequires: elfutils-debuginfod-client-devel BuildRequires: elfutils-debuginfod-client-devel
%endif %endif
%ifarch loongarch64
BuildRequires: bison
%endif
Requires(post): %{_sbindir}/alternatives Requires(post): %{_sbindir}/alternatives
Requires(preun): %{_sbindir}/alternatives Requires(preun): %{_sbindir}/alternatives
# We also need rm. # We also need rm.
@ -1266,6 +1270,9 @@ exit 0
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
%changelog %changelog
* Mon Apr 15 2024 Peng Fan <fanpeng@loongson.cn> - 2.41-5
- SPEC: add build-require 'bison' for LoongArch
* Wed Mar 13 2024 peng.zou <peng.zou@shingroup.cn> - 2.41-4 * Wed Mar 13 2024 peng.zou <peng.zou@shingroup.cn> - 2.41-4
- add ppc64le support to fix error about gold - add ppc64le support to fix error about gold