778380a
%global hash 7e5b89e
778380a
%global date 20191022
70f9133
70f9133
# Disable unhelpful RPM test.
70f9133
%global _binaries_in_noarch_packages_terminate_build 0
70f9133
70f9133
Name:           openbios
8cce3e4
Version:        %{date}
75a2f22
Release:        2.git%{hash}%{?dist}
8cce3e4
Epoch:          1
70f9133
Summary:        OpenBIOS implementation of IEEE 1275-1994
70f9133
70f9133
License:        GPLv2
70f9133
URL:            http://www.openfirmware.info/OpenBIOS
70f9133
BuildArch:      noarch
70f9133
70f9133
# There are no upstream tarballs.  This tarball is prepared as follows:
70f9133
#
8cce3e4
# git clone https://github.com/openbios/openbios
8cce3e4
# cd openbios
8cce3e4
# hash=`git log -1 --format='%h'`
8cce3e4
# date=`git log -1 --format='%cd' --date=short | tr -d -`
8cce3e4
# git archive --prefix openbios-${date}-git${hash}/ ${hash} | xz -7e > ../openbios-${date}-git${hash}.tar.xz
8cce3e4
Source0:        %{name}-%{date}-git%{hash}.tar.xz
70f9133
70f9133
# Note that these packages build 32 bit binaries with the -m32 flag.
70f9133
BuildRequires:  gcc-powerpc64-linux-gnu
70f9133
BuildRequires:  gcc-sparc64-linux-gnu
70f9133
e5671ce
BuildRequires:  gcc
009d8ab
BuildRequires:  fcode-utils
70f9133
BuildRequires:  libxslt
70f9133
70f9133
70f9133
%description
70f9133
The OpenBIOS project provides you with most free and open source Open
70f9133
Firmware implementations available. Here you find several
70f9133
implementations of IEEE 1275-1994 (Referred to as Open Firmware)
70f9133
compliant firmware. Among its features, Open Firmware provides an
70f9133
instruction set independent device interface. This can be used to boot
70f9133
the operating system from expansion cards without native
70f9133
initialization code.
70f9133
70f9133
It is Open Firmware's goal to work on all common platforms, like x86,
70f9133
AMD64, PowerPC, ARM and Mips. With its flexible and modular design,
70f9133
Open Firmware targets servers, workstations and embedded systems,
70f9133
where a sane and unified firmware is a crucial design goal and reduces
70f9133
porting efforts noticably.
70f9133
70f9133
Open Firmware is found on many servers and workstations and there are
70f9133
sever commercial implementations from SUN, Firmworks, CodeGen, Apple,
70f9133
IBM and others.
70f9133
70f9133
In most cases, the Open Firmware implementations provided on this site
70f9133
rely on an additional low-level firmware for hardware initialization,
70f9133
such as coreboot or U-Boot.
70f9133
70f9133
70f9133
%prep
8cce3e4
%setup -q -n %{name}-%{date}-git%{hash}
70f9133
70f9133
70f9133
%build
7d26078
# Disable -Werror, cross-gcc-6.0.0-0.1.fc24 has some issues but they are fixed
7d26078
# in gcc upstream
a198e31
sed -i -e "s/-Werror/-Wno-error/" Makefile.target
a198e31
70f9133
/bin/sh config/scripts/switch-arch ppc
5f9c334
make build-verbose V=1 %{?_smp_mflags}
70f9133
/bin/sh config/scripts/switch-arch sparc32
5f9c334
make build-verbose V=1 %{?_smp_mflags}
70f9133
/bin/sh config/scripts/switch-arch sparc64
70f9133
make build-verbose V=1 %{?_smp_mflags}
70f9133
70f9133
70f9133
%install
70f9133
qemudir=$RPM_BUILD_ROOT%{_datadir}/qemu
70f9133
mkdir -p $qemudir
70f9133
cp -a obj-ppc/openbios-qemu.elf $qemudir/openbios-ppc
70f9133
cp -a obj-sparc32/openbios-builtin.elf $qemudir/openbios-sparc32
70f9133
cp -a obj-sparc64/openbios-builtin.elf $qemudir/openbios-sparc64
70f9133
70f9133
70f9133
%files
70f9133
%doc COPYING
70f9133
%doc README
70f9133
%doc VERSION
70f9133
%dir %{_datadir}/qemu
70f9133
%{_datadir}/qemu/openbios-ppc
70f9133
%{_datadir}/qemu/openbios-sparc32
70f9133
%{_datadir}/qemu/openbios-sparc64
70f9133
70f9133
70f9133
%changelog
75a2f22
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:20191022-2.git7e5b89e
75a2f22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
75a2f22
778380a
* Tue Nov 12 2019 Cole Robinson <aintdiscole@gmail.com> - 20191022-1.git7e5b89e
778380a
- Update to openbios 7e5b89e for qemu-4.2
778380a
a6af1b6
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:20190626-2.gitc79e0ec
a6af1b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a6af1b6
728a684
* Thu Jul 11 2019 Cole Robinson <aintdiscole@gmail.com> - 20190626-1.gitc79e0ec
728a684
- Update to openbios c79e0ec for qemu-4.1
728a684
75bcc52
* Wed Mar 27 2019 Cole Robinson <aintdiscole@gmail.com> - 20190208-1.git3464681
75bcc52
- Update to openbios 3464681 for qemu-4.0
75bcc52
19e8644
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20181005-2.git441a84d
078164c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
078164c
19e8644
* Thu Nov 15 2018 Cole Robinson <crobinso@redhat.com> - 20181005-1.git441a84d
4ee7784
- Update to openbios 441a84d for qemu-3.1
4ee7784
19e8644
* Tue Jul 31 2018 Cole Robinson <crobinso@redhat.com> - 20180609-1.git8fe6f5f
dea24fa
- Update to openbios 8fe6f5f for qemu-3.0
dea24fa
19e8644
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20180213-2.git54d959d
72ef482
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
72ef482
19e8644
* Thu Mar 22 2018 Cole Robinson <crobinso@redhat.com> - 20180213-1.git54d959d
9bf1127
- Update to openbios 54d959d for qemu-2.12
9bf1127
19e8644
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20171016-2.git83818bd
f9a8509
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f9a8509
19e8644
* Mon Nov 20 2017 Cole Robinson <crobinso@redhat.com> - 20171016-1.git83818bd
df6bced
- Update to openbios 83818bd for qemu-2.11
df6bced
19e8644
* Thu Aug 03 2017 Cole Robinson <crobinso@redhat.com> - 20170712-1.gitfbc1b4a
bcde2a3
- Update to fbc1b4a for qemu 2.10
bcde2a3
19e8644
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20170311-2.gitf233c3f
a4cf219
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a4cf219
19e8644
* Tue Mar 21 2017 Cole Robinson <crobinso@redhat.com> - 20170311-1.gitf233c3f
81ed01d
- Update to f233c3f for qemu 2.9
81ed01d
19e8644
* Wed Mar 15 2017 Cole Robinson <crobinso@redhat.com> - 20170213-1.git0cd97cc
d1fdcf3
- Update to 0cd97cc for qemu 2.9
d1fdcf3
19e8644
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20161123-2.gitef8a14e
31d3cca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
31d3cca
5f4674c
* Sun Dec 04 2016 Cole Robinson <crobinso@redhat.com> - 20161123-1.gitef8a14e
5f4674c
- Update to ef8a14e for qemu 2.8
5f4674c
b0f2f54
* Mon Apr 18 2016 Cole Robinson <crobinso@redhat.com> 1.1.svn1395-1
b0f2f54
- Update to r1395 for qemu 2.6
b0f2f54
7d26078
* Thu Apr 07 2016 Cole Robinson <crobinso@redhat.com> 1.1.svn1394-1
7d26078
- Update to r1394, pulls in some -Werror fixes
7d26078
a198e31
* Sat Mar 05 2016 Cole Robinson <crobinso@redhat.com> 1.1.svn1378-3
a198e31
- Disable -Werror, hitting issues on gcc6
a198e31
a198e31
* Fri Feb 05 2016 Cole Robinson <crobinso@redhat.com> 1.1.svn1378-2
bdc8b12
- Update to r1378
bdc8b12
- Fix build with latest cross-gcc (bz 1282890)
bdc8b12
ccaa196
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.svn1353-2
ccaa196
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
ccaa196
02edcf6
* Tue Nov 17 2015 Cole Robinson <crobinso@redhat.com> 1.1.svn1353-1
02edcf6
- Update to r1353 for qemu 2.5
02edcf6
d0a1a2f
* Tue Jul 14 2015 Cole Robinson <crobinso@redhat.com> 1.1.svn1340-1
d0a1a2f
- Update to r1340 for qemu 2.4
d0a1a2f
c12b37b
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.svn1334-2
c12b37b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c12b37b
6751151
* Wed Mar 18 2015 Cole Robinson <crobinso@redhat.com> 1.1.svn1334-1
6751151
- Update to r1334 for qemu 2.3
6751151
d747a09
* Sat Nov 15 2014 Cole Robinson <crobinso@redhat.com> - 1.1.svn1321-1
d747a09
- Update to r1321 for qemu 2.2
d747a09
4973c8a
* Wed Jul 02 2014 Cole Robinson <crobinso@redhat.com> - 1.1.svn1306-1
4973c8a
- Update to svn1306 shipped with qemu 2.1
4973c8a
370b007
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.svn1280-2
370b007
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
370b007
3a97e6a
* Sun Mar 16 2014 Cole Robinson <crobinso@redhat.com> - 1.1.svn1280-1
3a97e6a
- Update to openbios version queued for qemu 2.0
3a97e6a
eee0878
* Mon Dec 16 2013 Cole Robinson <crobinso@redhat.com> - 1.1.svn1239-1
eee0878
- Update from SVN to fix building on arm
eee0878
8dc26b6
* Tue Nov 19 2013 Cole Robinson <crobinso@redhat.com> - 1.1.svn1229-1
8dc26b6
- Update to svn1229 for qemu 1.7
8dc26b6
009d8ab
* Tue Aug 20 2013 Cole Robinson <crobinso@redhat.com> 1.1.svn1198-1
009d8ab
- Update to svn1198 for qemu 1.6
009d8ab
c03b5d6
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.svn1136-2
c03b5d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c03b5d6
5f9c334
* Tue May 21 2013 Cole Robinson <crobinso@redhat.com> - 1.1.svn1136-1
5f9c334
- Update to openbios 1.1 for qemu 1.5
5f9c334
752bb99
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.svn1063-2
752bb99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
752bb99
537616f
* Tue Oct 16 2012 Paolo Bonzini <pbonzini@redhat.com> - 1.0.svn1063-1
537616f
- Move date from release to version.
537616f
1e85be0
* Mon Sep 17 2012 Cole Robinson <crobinso@redhat.com> - 1.0-6.svn1063
1e85be0
- Update to r1063, version qemu 1.2 shipped with
1e85be0
70f9133
* Tue Jul 31 2012 Richard W.M. Jones <rjones@redhat.com> - 1.0-5.svn1061
70f9133
- Initial release in Fedora.