5f4674c
%global date 20161123
5f4674c
%global hash ef8a14e
70f9133
70f9133
# Disable unhelpful RPM test.
70f9133
%global _binaries_in_noarch_packages_terminate_build 0
70f9133
70f9133
Name:           openbios
8cce3e4
Version:        %{date}
31d3cca
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
009d8ab
BuildRequires:  fcode-utils
70f9133
BuildRequires:  libxslt
70f9133
1e85be0
Obsoletes:      openbios-common
1e85be0
Obsoletes:      openbios-ppc
1e85be0
Obsoletes:      openbios-sparc32
1e85be0
Obsoletes:      openbios-sparc64
1e85be0
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
31d3cca
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1: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.