From e5fb81a440d7e8edb14e196304116fcaeaca31f5 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Tue, 25 Aug 2015 06:38:17 +0000 Subject: [PATCH 1/1] - from PLD, updated to 1.8.2, dropped binary - we are x86 only distro --- seabios.spec | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 seabios.spec diff --git a/seabios.spec b/seabios.spec new file mode 100644 index 0000000..d2a48a4 --- /dev/null +++ b/seabios.spec @@ -0,0 +1,60 @@ +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 +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/ +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%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 +use of coreboot. + +SeaBIOS is the default BIOS for QEMU, KVM and Xen HVM. + +%description -l pl.UTF-8 +SeaBIOS to mająca otwarte źródła implementacją 16-bitowego BIOS-u X86. +SeaBIOS może działać pod kontrolą emulatora lub natywnie na sprzęcie +X86 przy użyciu bootloadera coreboot. + +SeaBIOS to domyślny BIOS dla narzędzi QEMU, KVM i Xen HVM. + +%prep +%setup -q + +%build +%ifarch %{ix86} %{x8664} +%{__make} +%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 +%dir %{_datadir}/%{name} +%{_datadir}/%{name}/bios.bin +%ifarch %{ix86} %{x8664} +%{_datadir}/%{name}/*.aml +%endif -- 2.46.0