e9236f4
Name:           seabios
ee29b99
Version:        0.6.0
ee29b99
Release:        1%{?dist}
e9236f4
Summary:        Open-source legacy BIOS implementation
e9236f4
e9236f4
Group:          Applications/Emulators
e9236f4
License:        LGPLv3
e9236f4
URL:            http://www.coreboot.org/SeaBIOS
41145fb
Source0:        http://linuxtogo.org/~kevin/SeaBIOS/%{name}-%{version}.tar.gz
41145fb
e9236f4
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
e9236f4
e9236f4
BuildRequires: python
e9236f4
ExclusiveArch: %{ix86} x86_64
e9236f4
d6248aa
Requires: %{name}-bin = %{version}-%{release}
d6248aa
d6248aa
# Seabios is noarch, but required on architectures which cannot build it.
d6248aa
# Disable debuginfo because it is of no use to us.
d6248aa
%global debug_package %{nil}
d6248aa
e9236f4
%description
e9236f4
SeaBIOS is an open-source legacy BIOS implementation which can be used as
e9236f4
a coreboot payload. It implements the standard BIOS calling interfaces
e9236f4
that a typical x86 proprietary BIOS implements.
e9236f4
d6248aa
%ifarch %{ix86} x86_64 
d6248aa
%package bin
d6248aa
Summary: Seabios for x86
d6248aa
Buildarch: noarch
d6248aa
d6248aa
%description bin
d6248aa
SeaBIOS is an open-source legacy BIOS implementation which can be used as
d6248aa
a coreboot payload. It implements the standard BIOS calling interfaces
d6248aa
that a typical x86 proprietary BIOS implements.
d6248aa
%endif
e9236f4
e9236f4
%prep
e9236f4
%setup -q
41145fb
41145fb
# Makefile changes version to include date and buildhost
41145fb
sed -i 's,VERSION=%{version}.*,VERSION=%{version},g' Makefile
e9236f4
e9236f4
e9236f4
%build
d6248aa
%ifarch %{ix86} x86_64 
d6248aa
export CFLAGS="$RPM_OPT_FLAGS"
e9236f4
make
d6248aa
%endif
e9236f4
e9236f4
e9236f4
%install
e9236f4
rm -rf $RPM_BUILD_ROOT
e9236f4
mkdir -p $RPM_BUILD_ROOT%{_datadir}/seabios
d6248aa
%ifarch %{ix86} x86_64 
e9236f4
install -m 0644 out/bios.bin $RPM_BUILD_ROOT%{_datadir}/seabios
d6248aa
%endif
e9236f4
e9236f4
e9236f4
%clean
e9236f4
rm -rf $RPM_BUILD_ROOT
e9236f4
e9236f4
e9236f4
%files
e9236f4
%defattr(-,root,root,-)
e9236f4
%doc COPYING COPYING.LESSER README TODO
e9236f4
d6248aa
%ifarch %{ix86} x86_64 
d6248aa
%files bin
d6248aa
%defattr(-,root,root,-)
d6248aa
%dir %{_datadir}/seabios/
d6248aa
%{_datadir}/seabios/bios.bin
d6248aa
%endif
e9236f4
e9236f4
e9236f4
%changelog
ee29b99
* Tue Aug 10 2010 Justin M. Forbes <jforbes@redhat.com> 0.6.0-1
ee29b99
- Update seabios to latest stable so we can drop patches.
ee29b99
d6248aa
* Tue Apr 20 2010 Justin M. Forbes <jforbes@redhat.com> 0.5.1-2
d6248aa
- Ugly hacks to make package noarch and available for arch that cannot build it.
d6248aa
- Disable useless debuginfo
d6248aa
41145fb
* Wed Mar 03 2010 Justin M. Forbes <jforbes@redhat.com> 0.5.1-1
41145fb
- Update to 0.5.1 stable release
41145fb
- Pick up patches required for current qemu
41145fb
e9236f4
* Thu Jan 07 2010 Justin M. Forbes <jforbes@redhat.com> 0.5.1-0.1.20100108git669c991
e9236f4
- Created initial package