refit/refit.spec
Silvan Calarco 7228158b62 added patches from https://patches.ubuntu.com/doh/r/refit/extracted/ to build refit.efi
added icons and default configuration file [release 0.14-2mamba;Wed Jul 11 2012]
2024-01-05 17:24:44 +01:00

126 lines
4.5 KiB
RPMSpec

Name: refit
Version: 0.14
Release: 2mamba
Summary: A boot menu and maintenance toolkit for EFI-based machines like the Intel Macs
Group: System/Kernel and Hardware
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://refit.sourceforge.net
Source: http://downloads.sourceforge.net/sourceforge/refit/refit-src-%{version}.tar.gz
# Binary contains some resources missing in source package e.g. icons
Source1: http://downloads.sourceforge.net/sourceforge/refit/refit-bin-%{version}.tar.gz
Patch0: %{name}-0.14-disable_EFI110_features.patch
Patch1: %{name}-0.14-libeg_uefi_call_wrapper.patch
Patch2: %{name}-0.14-refit_uefi_call_wrapper.patch
Patch3: %{name}-0.14-gptsync_uefi_call_wrapper.patch
Patch4: %{name}-0.14-gptsync_64bit_fix.patch
Patch5: %{name}-0.14-gptsync_nom_nom_nom_newline.patch
License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-root
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
BuildRequires: gnu-efi
%description
rEFIt is a boot menu and maintenance toolkit for EFI-based machines like the Intel Macs. You can use it to boot multiple operating systems easily, including triple-boot setups with Boot Camp. It also provides an easy way to enter and explore the EFI pre-boot environment.
%package tools
Summary: Tools for refit, a boot menu and maintenance toolkit for EFI-based machines
Group: Development/Libraries
%description tools
rEFIt is a boot menu and maintenance toolkit for EFI-based machines like the Intel Macs. You can use it to boot multiple operating systems easily, including triple-boot setups with Boot Camp. It also provides an easy way to enter and explore the EFI pre-boot environment.
%package efi
Summary: refit EFI binaries
Group: Development/Libraries
%description efi
rEFIt is a boot menu and maintenance toolkit for EFI-based machines like the Intel Macs. You can use it to boot multiple operating systems easily, including triple-boot setups with Boot Camp. It also provides an easy way to enter and explore the EFI pre-boot environment.
This package contains the efi binaries.
%prep
%setup -q -n refit-src-%{version} -a1
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%build
cd libeg
make \
%ifarch x86_64
CFLAGS="-fpic -fshort-wchar"
%endif
cd ../gptsync
make -f Makefile.unix
make -f Makefile.gnuefi \
%ifarch x86_64
CFLAGS="-fpic -fshort-wchar" \
EFILIB=%{_libdir} \
GNUEFILIB=%{_libdir} \
EFICRT0=%{_libdir}
%endif
cd ../refit
make \
%ifarch x86_64
CFLAGS="-fpic -fshort-wchar" \
EFILIB=%{_libdir} \
GNUEFILIB=%{_libdir} \
EFICRT0=%{_libdir}
%endif
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -D -m0755 gptsync/gptsync %{buildroot}%{_sbindir}/gptsync
install -D -m0755 gptsync/showpart %{buildroot}%{_sbindir}/showpart
install -D -m0644 gptsync/gptsync.8 %{buildroot}%{_mandir}/man8/gptsync.8
install -D -m0755 gptsync/gptsync.efi %{buildroot}%{_datadir}/refit/efi/tools/gptsync.efi
install -D -m0755 refit/refit.efi %{buildroot}%{_datadir}/refit/efi/refit/refit.efi
install -D -m0644 refit-bin-%{version}/efi/refit/refit.conf %{buildroot}%{_datadir}/refit/efi/refit/refit.conf
cp -a refit-bin-%{version}/efi/refit/icons %{buildroot}%{_datadir}/refit/efi/refit/
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files tools
%defattr(-,root,root)
%{_sbindir}/gptsync
%{_sbindir}/showpart
%{_mandir}/man8/gptsync.8.gz
%files efi
%defattr(-,root,root)
%dir %{_datadir}/refit
%dir %{_datadir}/refit/efi
%dir %{_datadir}/refit/efi/tools
%{_datadir}/refit/efi/tools/gptsync.efi
%dir %{_datadir}/refit/efi/refit
%{_datadir}/refit/efi/refit/refit.efi
%{_datadir}/refit/efi/refit/refit.conf
%dir %{_datadir}/refit/efi/refit/icons
%{_datadir}/refit/efi/refit/icons/*
%changelog
* Wed Jul 11 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.14-2mamba
- added patches from https://patches.ubuntu.com/doh/r/refit/extracted/ to build refit.efi
- added icons and default configuration file
* Thu Jun 03 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.14-1mamba
- update to 0.14
* Mon Mar 30 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.13-1mamba
- automatic update by autodist
* Tue Jan 27 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.12-1mamba
- automatic update by autodist
* Fri Sep 14 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 0.10-1mamba
- package created by autospec