This repository has been archived on 2024-11-07. You can view files and clone it, but cannot push or open issues or pull requests.
yaboot/yaboot.spec

90 lines
3.0 KiB
RPMSpec
Raw Permalink Normal View History

Name: yaboot
Version: 1.3.17
Release: 1mamba
Summary: An OpenFirmware bootloader for Open Firmware based machine
Group: System/Kernel and Hardware
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://yaboot.ozlabs.org/
Source: http://yaboot.ozlabs.org/releases/yaboot-%{version}.tar.gz
Patch0: yaboot-1.3.13-gcc34.patch
Patch1: yaboot-1.3.13-Makefile.patch
Patch2: yaboot-1.3.13-gcc4.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
## AUTOBUILDREQ-END
%ifarch ppc
Provides: bootloader
%endif
Requires: hfsutils
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Yaboot is an OpenFirmware bootloader for Open Firmware based machines. It is known to work on "NewWorld" class PowerMacs (iMac and all machines released after it), RS/6000, and possibly other OF based CHRP machines. "OldWorld" PowerMacs (with the built-in MacOS ROM) are not supported.
Ybin is the GNU/Linux utility to install the yaboot boot loader onto a bootstrap partition. It will not run from MacOS.
Ybin (YaBoot INstaller) was created so that there could be a lilo/quik style bootloader installer for yaboot. With a properly configured system one can simply type ybin, and the bootloader will be installed/updated on the bootstrap partition without any further user intervention. Ybin is required to install yaboot.
%prep
%setup -q
#%patch0 -p1
%patch1 -p1
#%patch2 -p1
sed -i "s|/usr/local|/usr|" etc/yaboot.conf
sed -i -e "s/-Werror//" Makefile
%build
make \
PREFIX=%{_prefix} \
MANDIR=%{_mandir} \
CROSS=ppc-openmamba-linux-gnu-
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
make install \
PREFIX=%{_prefix} \
MANDIR=share/man \
CROSS=ppc-openmamba-linux-gnu- \
ROOT=%{buildroot}
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/yaboot.conf
%dir %{_libdir}/yaboot
%{_libdir}/yaboot/*
%{_sbindir}/*
%{_mandir}/man5/yaboot.conf.5.gz
%{_mandir}/man8/bootstrap.8.gz
%{_mandir}/man8/mkofboot.8.gz
%{_mandir}/man8/ofpath.8.gz
%{_mandir}/man8/yaboot.8.gz
%{_mandir}/man8/yabootconfig.8.gz
%{_mandir}/man8/ybin.8.gz
%doc COPYING ChangeLog
#BUGS INSTALL README README.man.patch THANKS TODO
%changelog
* Wed Feb 06 2013 Automatic Build System <autodist@mambasoft.it> 1.3.17-1mamba
- automatic version update by autodist
* Fri Sep 10 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.16-2mamba
- added requirement for hfsutils
* Mon Aug 09 2010 Automatic Build System <autodist@mambasoft.it> 1.3.16-1mamba
- update to 1.3.16
* Sun Mar 21 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.13-3mamba
- don't build as noarch
* Fri Nov 28 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.13-2mamba
- specfile fixes
- not updated to 1.3.14 because it requires libe2fs in ppc cross build environment
* Sun Aug 21 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.13-1qilnx
- package created by autospec