[packages/seabios] - binary release moved to seabios-bin.spec; use crosscompiler here in case of non-x86 build - update

qboosh qboosh at pld-linux.org
Sat Sep 12 13:52:15 CEST 2015


commit 2b279fccb3fe4a44b908a20359a2b66fdbf1c967
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Sep 12 13:53:55 2015 +0200

    - binary release moved to seabios-bin.spec; use crosscompiler here in case of non-x86 build
    - updated to 1.8.2
    - completed BRs

 seabios.spec | 27 +++++++++++++--------------
 1 file changed, 13 insertions(+), 14 deletions(-)
---
diff --git a/seabios.spec b/seabios.spec
index 85bef5b..aa14109 100644
--- a/seabios.spec
+++ b/seabios.spec
@@ -1,16 +1,20 @@
 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.8.0
+Version:	1.8.2
 Release:	1
 License:	LGPL v3
 Group:		Applications/System
 Source0:	http://code.coreboot.org/p/seabios/downloads/get/%{name}-%{version}.tar.gz
-# Source0-md5:	a4bbfa4139ae0b7f31cb11674080e1ed
-# binary for non-x86 archs
-Source1:	http://code.coreboot.org/p/seabios/downloads/get/bios.bin-%{version}.gz
-# Source1-md5:	0d224123289f68db9087873dd61e9c18
+# Source0-md5:	d08a501fb918698f24a0de012c687729
 URL:		http://seabios.org/
+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:	python
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -31,21 +35,18 @@ SeaBIOS to domyślny BIOS dla narzędzi QEMU, KVM i Xen HVM.
 %setup -q
 
 %build
-%ifarch %{ix86} %{x8664}
-%{__make}
+%{__make} \
+	V=1 \
+%ifnarch %{ix86} %{x8664} x32
+	CROSS_PREFIX=x86_64-pld-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
@@ -55,6 +56,4 @@ rm -rf $RPM_BUILD_ROOT
 %doc README
 %dir %{_datadir}/%{name}
 %{_datadir}/%{name}/bios.bin
-%ifarch %{ix86} %{x8664}
 %{_datadir}/%{name}/*.aml
-%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/seabios.git/commitdiff/2b279fccb3fe4a44b908a20359a2b66fdbf1c967



More information about the pld-cvs-commit mailing list