- Enable building for ppc64le

This commit is contained in:
eabdullin 2024-09-06 08:49:21 +03:00
parent b5d774947b
commit 90c3abb7d2

View File

@ -1,6 +1,6 @@
Name: seabios Name: seabios
Version: 1.16.3 Version: 1.16.3
Release: 4%{?dist} Release: 4%{?dist}.alma.1
Summary: Open-source legacy BIOS implementation Summary: Open-source legacy BIOS implementation
License: LGPL-3.0-only License: LGPL-3.0-only
@ -25,6 +25,10 @@ BuildRequires: python3 iasl
ExclusiveArch: x86_64 ExclusiveArch: x86_64
%if 0%{?almalinux} > 9
ExclusiveArch: x86_64 %{power64}
%endif
Requires: %{name}-bin = %{version}-%{release} Requires: %{name}-bin = %{version}-%{release}
Requires: seavgabios-bin = %{version}-%{release} Requires: seavgabios-bin = %{version}-%{release}
@ -74,6 +78,9 @@ SeaVGABIOS is an open-source VGABIOS implementation.
%autopatch -p1 %autopatch -p1
%build %build
# This ifarch is needed to start the build on ppc64le and finish it with 0 exit code
# to synchronize noarch packages between x86_64 and ppc64le
%ifarch x86_64
%define _lto_cflags %{nil} %define _lto_cflags %{nil}
export CFLAGS="$RPM_OPT_FLAGS" export CFLAGS="$RPM_OPT_FLAGS"
mkdir binaries mkdir binaries
@ -133,7 +140,13 @@ install -m 0644 binaries/vgabios*.bin $RPM_BUILD_ROOT%{_datadir}/seavgabios
%dir %{_datadir}/seavgabios/ %dir %{_datadir}/seavgabios/
%{_datadir}/seavgabios/vgabios*.bin %{_datadir}/seavgabios/vgabios*.bin
# endif for %ifarch x86_64
%endif
%changelog %changelog
* Fri Sep 06 2024 Eduard Abdullin <eabdullin@almalinux.org> - 1.16.3-4.alma.1
- Allow the build to start on ppc64le
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.16.3-4 * Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.16.3-4
- Bump release for June 2024 mass rebuild - Bump release for June 2024 mass rebuild