Justin M. Forbes e9236f
Name:           seabios
Justin M. Forbes 9c63fd
Version:        0.6.1
Paolo Bonzini 8c17f8
Release:        2%{?dist}
Justin M. Forbes e9236f
Summary:        Open-source legacy BIOS implementation
Justin M. Forbes e9236f
Justin M. Forbes e9236f
Group:          Applications/Emulators
Justin M. Forbes e9236f
License:        LGPLv3
Justin M. Forbes e9236f
URL:            http://www.coreboot.org/SeaBIOS
Justin M. Forbes 9c63fd
Source0:        http://www.linuxtogo.org/~kevin/SeaBIOS/%{name}-%{version}.tar.gz
Justin M. Forbes 41145f
Paolo Bonzini 8c17f8
Patch00: seabios-do-not-advertise-S4-S3-in-DSDT.patch
Paolo Bonzini 8c17f8
Justin M. Forbes e9236f
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Justin M. Forbes e9236f
Paolo Bonzini 8c17f8
BuildRequires: python iasl
Justin M. Forbes e9236f
ExclusiveArch: %{ix86} x86_64
Justin M. Forbes e9236f
Justin M. Forbes d6248a
Requires: %{name}-bin = %{version}-%{release}
Justin M. Forbes d6248a
Justin M. Forbes d6248a
# Seabios is noarch, but required on architectures which cannot build it.
Justin M. Forbes d6248a
# Disable debuginfo because it is of no use to us.
Justin M. Forbes d6248a
%global debug_package %{nil}
Justin M. Forbes d6248a
Justin M. Forbes e9236f
%description
Justin M. Forbes e9236f
SeaBIOS is an open-source legacy BIOS implementation which can be used as
Justin M. Forbes e9236f
a coreboot payload. It implements the standard BIOS calling interfaces
Justin M. Forbes e9236f
that a typical x86 proprietary BIOS implements.
Justin M. Forbes e9236f
Justin M. Forbes d6248a
%ifarch %{ix86} x86_64 
Justin M. Forbes d6248a
%package bin
Justin M. Forbes d6248a
Summary: Seabios for x86
Justin M. Forbes d6248a
Buildarch: noarch
Justin M. Forbes d6248a
Justin M. Forbes d6248a
%description bin
Justin M. Forbes d6248a
SeaBIOS is an open-source legacy BIOS implementation which can be used as
Justin M. Forbes d6248a
a coreboot payload. It implements the standard BIOS calling interfaces
Justin M. Forbes d6248a
that a typical x86 proprietary BIOS implements.
Justin M. Forbes d6248a
%endif
Justin M. Forbes e9236f
Justin M. Forbes e9236f
%prep
Justin M. Forbes e9236f
%setup -q
Justin M. Forbes 41145f
Paolo Bonzini 8c17f8
%patch00 -p1
Paolo Bonzini 8c17f8
Justin M. Forbes 41145f
# Makefile changes version to include date and buildhost
Justin M. Forbes 41145f
sed -i 's,VERSION=%{version}.*,VERSION=%{version},g' Makefile
Justin M. Forbes e9236f
Justin M. Forbes e9236f
Justin M. Forbes e9236f
%build
Justin M. Forbes d6248a
%ifarch %{ix86} x86_64 
Justin M. Forbes d6248a
export CFLAGS="$RPM_OPT_FLAGS"
Justin M. Forbes e9236f
make
Justin M. Forbes d6248a
%endif
Justin M. Forbes e9236f
Justin M. Forbes e9236f
Justin M. Forbes e9236f
%install
Justin M. Forbes e9236f
rm -rf $RPM_BUILD_ROOT
Justin M. Forbes e9236f
mkdir -p $RPM_BUILD_ROOT%{_datadir}/seabios
Justin M. Forbes d6248a
%ifarch %{ix86} x86_64 
Justin M. Forbes e9236f
install -m 0644 out/bios.bin $RPM_BUILD_ROOT%{_datadir}/seabios
Justin M. Forbes d6248a
%endif
Justin M. Forbes e9236f
Justin M. Forbes e9236f
Justin M. Forbes e9236f
%clean
Justin M. Forbes e9236f
rm -rf $RPM_BUILD_ROOT
Justin M. Forbes e9236f
Justin M. Forbes e9236f
Justin M. Forbes e9236f
%files
Justin M. Forbes e9236f
%defattr(-,root,root,-)
Justin M. Forbes e9236f
%doc COPYING COPYING.LESSER README TODO
Justin M. Forbes e9236f
Justin M. Forbes d6248a
%ifarch %{ix86} x86_64 
Justin M. Forbes d6248a
%files bin
Justin M. Forbes d6248a
%defattr(-,root,root,-)
Justin M. Forbes d6248a
%dir %{_datadir}/seabios/
Justin M. Forbes d6248a
%{_datadir}/seabios/bios.bin
Justin M. Forbes d6248a
%endif
Justin M. Forbes e9236f
Justin M. Forbes e9236f
Justin M. Forbes e9236f
%changelog
Paolo Bonzini 8c17f8
* Wed Mar 21 2012 Paolo Bonzini <pbonzini@redhat.com> - 0.6.1-2
Paolo Bonzini 8c17f8
- Stop advertising S3 and S4 in DSDT (bz#704467)
Paolo Bonzini 8c17f8
- incdule iasl buildreq
Paolo Bonzini 8c17f8
Justin M. Forbes 9c63fd
* Mon Feb 14 2011 Justin M. forbes <jforbes@redhat.com> - 0.6.1-1
Justin M. Forbes 9c63fd
- Update to 0.6.1 upstream for a number of bugfixes
Justin M. Forbes 9c63fd
774ffc
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-2
774ffc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
774ffc
Justin M. Forbes ee29b9
* Tue Aug 10 2010 Justin M. Forbes <jforbes@redhat.com> 0.6.0-1
Justin M. Forbes ee29b9
- Update seabios to latest stable so we can drop patches.
Justin M. Forbes ee29b9
Justin M. Forbes d6248a
* Tue Apr 20 2010 Justin M. Forbes <jforbes@redhat.com> 0.5.1-2
Justin M. Forbes d6248a
- Ugly hacks to make package noarch and available for arch that cannot build it.
Justin M. Forbes d6248a
- Disable useless debuginfo
Justin M. Forbes d6248a
Justin M. Forbes 41145f
* Wed Mar 03 2010 Justin M. Forbes <jforbes@redhat.com> 0.5.1-1
Justin M. Forbes 41145f
- Update to 0.5.1 stable release
Justin M. Forbes 41145f
- Pick up patches required for current qemu
Justin M. Forbes 41145f
Justin M. Forbes e9236f
* Thu Jan 07 2010 Justin M. Forbes <jforbes@redhat.com> 0.5.1-0.1.20100108git669c991
Justin M. Forbes e9236f
- Created initial package