Summary: Open source implementation of a 16-bit x86 BIOS
Summary(pl.UTF-8): Implementacja 16-bitowego BIOS-u x86 o otwartych źródłach
Name: seabios
-Version: 1.7.5
-Release: 2
+Version: 1.16.3
+Release: 1
License: LGPL v3
Group: Applications/System
-Source0: http://code.coreboot.org/p/seabios/downloads/get/%{name}-%{version}.tar.gz
-# Source0-md5: 3f1e17485ca327b245ae5938d9aa02d9
-# binary for non-x86 archs
-Source1: http://code.coreboot.org/p/seabios/downloads/get/bios.bin-%{version}.gz
-# Source1-md5: f14eccbad35cd802ef785bde48a43519
-URL: http://seabios.org/
+Source0: https://www.seabios.org/downloads/%{name}-%{version}.tar.gz
+# Source0-md5: 9f854ca1ae32bfdc081377717a18e1b3
+URL: https://www.seabios.org/SeaBIOS
+BuildRequires: acpica
+%ifnarch %{ix86} %{x8664} x32
+# i386 crosscompiler could be used as well, but we have only x86_64 as more universal
+BuildRequires: crossx8664-binutils
+BuildRequires: crossx8664-gcc
+%endif
+BuildRequires: python3
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define _enable_debug_packages 0
+
%description
SeaBIOS is an open source implementation of a 16-bit X86 BIOS. SeaBIOS
can run in an emulator or it can run natively on X86 hardware with the
%setup -q
%build
-%ifarch %{ix86} %{x8664}
-%{__make}
+%{__make} \
+ V=1 PYTHON=%{__python3} \
+%ifnarch %{ix86} %{x8664} x32
+ CROSS_PREFIX=x86_64-tld-linux
%endif
%install
rm -rf $RPM_BUILD_ROOT
-
install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
-%ifarch %{ix86} %{x8664}
install out/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios.bin
-install out/src/fw/*.aml $RPM_BUILD_ROOT%{_datadir}/%{name}
-%else
-gunzip -c %{SOURCE1} > $RPM_BUILD_ROOT%{_datadir}/%{name}/bios.bin
-%endif
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README TODO
+%doc README docs/{Debugging.md,Mailinglist.md,Memory_Model.md,Releases.md,Runtime_config.md,SeaBIOS.md,SeaVGABIOS.md}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/bios.bin
-%ifarch %{ix86} %{x8664}
-%{_datadir}/%{name}/*.aml
-%endif