SPEC: add build-require 'bison' for LoongArch

Signed-off-by: ticat_fp <fanpeng@loongson.cn>
(cherry picked from commit 74f11877eda748195a92efec671a31183c098350)
This commit is contained in:
ticat_fp 2024-04-15 11:13:14 +08:00 committed by openeuler-sync-bot
parent 2c4ab3b44e
commit 721cc2336d

View File

@ -2,7 +2,7 @@
Summary: A GNU collection of binary utilities
Name: binutils%{?_with_debug:-debug}
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
URL: https://sourceware.org/binutils
@ -288,6 +288,10 @@ BuildRequires: zlib-devel
BuildRequires: elfutils-debuginfod-client-devel
%endif
%ifarch loongarch64
BuildRequires: bison
%endif
Requires(post): %{_sbindir}/alternatives
Requires(preun): %{_sbindir}/alternatives
# We also need rm.
@ -1266,6 +1270,9 @@ exit 0
#----------------------------------------------------------------------------
%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
- add ppc64le support to fix error about gold