d6d98a
%define tardir %{name}-0
d6d98a
d6d98a
Name:           sgabios
d6d98a
Epoch:          1
d6d98a
Version:        0.20110622svn
758578
Release:        4%{?dist}
d6d98a
Summary:        Open-source serial graphics BIOS option rom
d6d98a
d6d98a
Group:          Applications/Emulators
d6d98a
License:        ASL 2.0
d6d98a
URL:            http://code.google.com/p/sgabios/
d6d98a
# Tarball created from SVN archive using the following commands:
d6d98a
# svn export -r 8 http://sgabios.googlecode.com/svn/trunk sgabios-0
d6d98a
# tar -czvf sgabios-0-svnr8.tar.gz sgabios-0
d6d98a
Source0:        sgabios-0-svnr8.tar.gz
d6d98a
d6d98a
ExclusiveArch:  x86_64
d6d98a
d6d98a
Requires: %{name}-bin = %{epoch}:%{version}-%{release}
d6d98a
d6d98a
# Sgabios is noarch, but required on architectures which cannot build it.
d6d98a
# Disable debuginfo because it is of no use to us.
d6d98a
%global debug_package %{nil}
d6d98a
d6d98a
%description
d6d98a
SGABIOS is designed to be inserted into a BIOS as an option rom to provide over
d6d98a
a serial port the display and input capabilities normally handled by a VGA
d6d98a
adapter and a keyboard, and additionally provide hooks for logging displayed
d6d98a
characters for later collection after an operating system boots.
d6d98a
d6d98a
%ifarch %{ix86} x86_64
d6d98a
%package bin
d6d98a
Summary: Sgabios for x86
d6d98a
Buildarch: noarch
d6d98a
d6d98a
%description bin
d6d98a
SGABIOS is designed to be inserted into a BIOS as an option rom to provide over
d6d98a
a serial port the display and input capabilities normally handled by a VGA
d6d98a
adapter and a keyboard, and additionally provide hooks for logging displayed
d6d98a
characters for later collection after an operating system boots.
d6d98a
%endif
d6d98a
d6d98a
%prep
d6d98a
%setup -q -n %{tardir}
d6d98a
d6d98a
%build
d6d98a
unset MAKEFLAGS
d6d98a
%ifarch %{ix86} x86_64
d6d98a
export CFLAGS="$RPM_OPT_FLAGS"
d6d98a
make
d6d98a
%endif
d6d98a
d6d98a
d6d98a
%install
d6d98a
mkdir -p $RPM_BUILD_ROOT%{_datadir}/sgabios
d6d98a
%ifarch %{ix86} x86_64
d6d98a
install -m 0644 sgabios.bin $RPM_BUILD_ROOT%{_datadir}/sgabios
d6d98a
%endif
d6d98a
d6d98a
d6d98a
%files
d6d98a
%doc COPYING design.txt
d6d98a
d6d98a
%ifarch %{ix86} x86_64
d6d98a
%files bin
d6d98a
%dir %{_datadir}/sgabios/
d6d98a
%{_datadir}/sgabios/sgabios.bin
d6d98a
%endif
d6d98a
d6d98a
d6d98a
%changelog
758578
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1:0.20110622svn-4
758578
- Mass rebuild 2013-12-27
758578
d6d98a
* Wed Oct 17 2012 Cole Robinson <crobinso@redhat.com> - 1:0.20110622svn-2
d6d98a
- Fix deps with epoch bump
d6d98a
d6d98a
* Tue Oct 15 2012 Paolo Bonzini <pbonzini@redhat.com> - 1:0.20110622svn-1
d6d98a
- Move date from release to version (requires epoch bump).
d6d98a
d6d98a
* Sun Aug 12 2012 Richard W.M. Jones <rjones@redhat.com> - 0-1.1.20110622svn
d6d98a
- Fix date in release string.
d6d98a
  NB: To make this version > than the previous, I had to use 1.1.20110622
d6d98a
  instead of 0.1.20110622, since the old second field was 20110623.
d6d98a
- Unset MAKEFLAGS, since parallel make breaks the build.
d6d98a
- Bring the spec file up to modern standards.
d6d98a
d6d98a
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.20110623SVN
d6d98a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d6d98a
d6d98a
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.20110622SVN
d6d98a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d6d98a
d6d98a
* Mon Nov 21 2011 Justin M. Forbes <jforbes@redhat.com> 0.0-0.20110621SVN
d6d98a
- Updates per review.
d6d98a
d6d98a
* Tue Jun 21 2011 Justin M. Forbes <jforbes@redhat.com> 0.1-0.20110621SVN
d6d98a
- Created initial package