Sisyphus repository
Last update: 19 january 2021 | SRPMs: 17774 | Visits: 20094483
en ru br
ALT Linux repos

Group :: Emulators
RPM: openbios

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: openbios
Version: 1.0
Release: alt1
Summary: OpenBios implementation of IEEE 1275-1994
Group: Emulators
License: GPLv2
Packager: Ilya Mashkin <oddity at>
# Getting openbios tarball:
# svn export -r463 svn:// openbios-1.0
# tar czvf openbios-1.0.tar.gz openbios-1.0
Source0: %name/%name-%version.tar.gz
Patch0: openbios-noerror.patch
Patch1: openbios-1.0-merge-sbss-into-bss.patch

BuildRequires: libxslt

# debugging firmwares does not goes the same way as a normal program.

# moreover, all architectures providing debuginfo for a single noarch
# package is currently clashing in koji, so don't bother.
%global debug_package %nil
%define _binaries_in_noarch_packages_terminate_build 0

%define ob_desc \
The OpenBIOS project provides you with most free and open source Open Firmware \
implementations available. Here you find several implementations of \
IEEE 1275-1994 (Referred to as Open Firmware) compliant firmware. Among its \
features, Open Firmware provides an instruction set independent device \
interface. This can be used to boot the operating system from expansion cards \
without native initialization code. \
It is Open Firmware's goal to work on all common platforms, like x86, AMD64, \
PowerPC, ARM and Mips. With its flexible and modular design, Open Firmware \
targets servers, workstations and embedded systems, where a sane and unified \
firmware is a crucial design goal and reduces porting efforts noticably. \
Open Firmware is found on many servers and workstations and there are sever \
commercial implementations from SUN, Firmworks, CodeGen, Apple, IBM and others. \
In most cases, the Open Firmware implementations provided on this site rely on \
an additional low-level firmware for hardware initialization, such as coreboot \
or U-Boot. \

%description %ob_desc
# building firmwares are quite tricky, because they often has to be built on
# their native architecture (or in a cross-capable compiler, that we lack in
# koji), and deployed everywhere. Recent koji builders support a feature
# that allow us to build packages in a single architecture, and create noarch
# subpackages that will be deployed everywhere. Because the package can only
# be built in certain architectures, the main package has to use
# BuildArch: <nativearch>, or something like that.
# Note that using ExclusiveArch is _wrong_, because it will prevent the noarch
# packages from getting into the excluded repositories.
# Openbios is even trickier compared to other firmwares, because the same
# source must originate firmwares for multiple architectures. The magic here
# is to only create the subpackages in the architectures that can build it.
%ifarch sparcv9
%package sparc
Summary: OpenBIOS for sparc
BuildArch: noarch
Requires: %name-common = %version-%release

%description sparc %ob_desc

%ifarch sparc64
%package sparc64
Summary: OpenBIOS for sparc64
BuildArch: noarch
Requires: %name-common = %version-%release

%description sparc64 %ob_desc

%ifarch ppc ppc64
%package ppc
Summary: OpenBIOS for ppc
BuildArch: noarch
Requires: %name-common = %version-%release

%description ppc %ob_desc

%package common
Summary: Common files for OpenBIOS
Group: Emulators
BuildArch: noarch

%description common %ob_desc
%setup -q
%patch0 -p1
%patch1 -p1

%ifarch ppc
/bin/sh ./config/scripts/switch-arch ppc
make build-verbose %{?_smp_mflags}

%ifarch sparcv9
/bin/sh ./config/scripts/switch-arch sparc32
make build-verbose %{?_smp_mflags}

%ifarch sparc64
/bin/sh ./config/scripts/switch-arch sparc64
make build-verbose %{?_smp_mflags}

mkdir -p $RPM_BUILD_ROOT%_datadir/openbios
%ifarch sparcv9
install -p -m 0644  obj-sparc32/openbios-builtin.elf $RPM_BUILD_ROOT%_datadir/openbios/openbios-sparc32
%ifarch sparc64
install -p -m 0644  obj-sparc64/openbios-builtin.elf $RPM_BUILD_ROOT%_datadir/openbios/openbios-sparc64
%ifarch ppc
install -p -m 0644  obj-ppc/openbios-qemu.elf $RPM_BUILD_ROOT%_datadir/openbios/openbios-ppc

%ifarch sparcv9
%files sparc

%ifarch sparc64
%files sparc64

%ifarch ppc
%files ppc

%files common
%dir %_datadir/openbios/


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin