090f46
Summary: Development Libraries and headers for EFI
090f46
Name: gnu-efi
090f46
Version: 3.0w
090f46
Release: 0.1%{?dist}
090f46
Group: Development/System
090f46
License: BSD 
090f46
URL: ftp://ftp.hpl.hp.com/pub/linux-ia64
090f46
Source: ftp://ftp.hpl.hp.com/pub/linux-ia64/gnu-efi_%{version}.orig.tar.gz
090f46
Patch0: build-fix.patch
090f46
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
090f46
ExclusiveArch: x86_64 aarch64
090f46
BuildRequires: git
090f46
090f46
%define debug_package %{nil}
090f46
090f46
# Figure out the right file path to use
090f46
%if 0%{?rhel}
090f46
%global efidir redhat
090f46
%endif
090f46
%if 0%{?fedora}
090f46
%global efidir fedora
090f46
%endif
090f46
090f46
%description
090f46
This package contains development headers and libraries for developing
090f46
applications that run under EFI (Extensible Firmware Interface).
090f46
090f46
%package devel
090f46
Summary: Development Libraries and headers for EFI
090f46
Group: Development/System
090f46
Obsoletes: gnu-efi < %{version}-%{release}
090f46
090f46
%description devel
090f46
This package contains development headers and libraries for developing
090f46
applications that run under EFI (Extensible Firmware Interface).
090f46
090f46
%package utils
090f46
Summary: Utilities for EFI systems
090f46
Group: Applications/System
090f46
090f46
%description utils
090f46
This package contains utilties for debugging and developing EFI systems.
090f46
090f46
%prep
090f46
%setup -q -n gnu-efi-3.0
090f46
git init
090f46
git config user.email "pjones@fedoraproject.org"
090f46
git config user.name "Fedora Ninjas"
090f46
git add .
090f46
git commit -a -q -m "%{version} baseline."
090f46
git am %{patches} 
090f46
090f46
%build
090f46
# Package cannot build with %{?_smp_mflags}.
090f46
make
090f46
090f46
%install
090f46
rm -rf %{buildroot}
090f46
090f46
mkdir -p %{buildroot}/%{_libdir}
090f46
090f46
make PREFIX=%{_prefix} LIBDIR=%{_libdir} INSTALLROOT=%{buildroot} install
090f46
090f46
mkdir -p %{buildroot}/%{_libdir}/gnuefi
090f46
mv %{buildroot}/%{_libdir}/*.lds %{buildroot}/%{_libdir}/*.o %{buildroot}/%{_libdir}/gnuefi
090f46
090f46
make -C apps clean route80h.efi modelist.efi
090f46
mkdir -p %{buildroot}/boot/efi/EFI/%{efidir}/
090f46
mv apps/{route80h.efi,modelist.efi} %{buildroot}/boot/efi/EFI/%{efidir}/
090f46
090f46
%clean
090f46
rm -rf %{buildroot}
090f46
090f46
%files
090f46
%{_libdir}/*
090f46
090f46
%files devel
090f46
%defattr(-,root,root,-)
090f46
%doc README.* ChangeLog
090f46
%{_includedir}/efi
090f46
090f46
%files utils
090f46
%dir /boot/efi/EFI/%{efidir}/
090f46
%attr(0644,root,root) /boot/efi/EFI/%{efidir}/*.efi
090f46
090f46
%changelog
090f46
* Fri Aug 22 2014 Kyle McMartin <kyle@fedoraproject.org> - 3.0w-0.1
090f46
- New upstream version 3.0w
090f46
- Add pjones' build fixes patch from that other distro.
090f46
- Enable AArch64
090f46
090f46
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.0u-2
090f46
- Mass rebuild 2013-12-27
090f46
090f46
* Fri Oct 25 2013 Peter Jones <pjones@redhat.com> - 3.0u-1
090f46
- Reflect that we're not supporting this on anything but x86_64.
090f46
  Related: rhbz#1017861
090f46
090f46
* Tue Sep 24 2013 Peter Jones <pjones@redhat.com> - 3.0u-0.1
090f46
- Update to 3.0u
090f46
  Related: rhbz#996863
090f46
- Split out subpackages so -devel can be multilib
090f46
- Fix path in apps subpackage to vary by distro.
090f46
090f46
* Thu Jul 25 2013 Peter Jones <pjones@redhat.com> - 3.0q-3
090f46
- Revert to 3.0q
090f46
  Related: rhbz#978766
090f46
090f46
* Fri Jun 07 2013 Peter Jones <pjones@redhat.com> - 3.0t-0.1
090f46
- Update to 3.0t
090f46
- Don't allow use of mmx or sse registers.
090f46
090f46
* Thu May 16 2013 Peter Jones <pjones@redhat.com> - 3.0s-2
090f46
- Update to 3.0s
090f46
  Related: rhbz#963359
090f46
090f46
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0q-2
090f46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
090f46
090f46
* Fri Jul 27 2012 Matthew Garrett <mjg@redhat.com> - 3.0q-1
090f46
- Update to current upstream
090f46
- License change - GPLv2+ to BSD
090f46
090f46
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0e-18
090f46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
090f46
090f46
* Wed Apr 25 2012 Peter Jones <pjones@redhat.com> - 3.0e-17
090f46
- Align .reloc section as well to make secureboot work (mfleming)
090f46
090f46
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0e-16
090f46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
090f46
090f46
* Thu Aug 11 2011 Peter Jones <pjones@redhat.com> - 3.0e-15
090f46
- Correctly pad the stack when doing uefi calls
090f46
  Related: rhbz#677468
090f46
- Add ability to write UEFI callbacks and drivers
090f46
- Add test harness for ABI Calling Conventions
090f46
090f46
* Thu Jun 16 2011 Peter Jones <pjones@redhat.com> - 3.0e-14
090f46
- Handle uninitialized GOP driver gracefully.
090f46
090f46
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0e-13
090f46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
090f46
090f46
* Fri Sep 10 2010 Peter Jones <pjones@redhat.com> - 3.0e-12
090f46
- Add "modelist.efi" test utility in apps/
090f46
090f46
* Mon Jul 26 2010 Peter Jones <pjones@redhat.com> - 3.0e-11
090f46
- Add PciIo headers.
090f46
090f46
* Fri Jul 23 2010 Peter Jones <pjones@redhat.com> - 3.0e-10
090f46
- Add UEFI 2.x boot services.
090f46
090f46
* Tue Aug 11 2009 Peter Jones <pjones@redhat.com> - 3.0e-9
090f46
- Change ExclusiveArch to reflect arch changes in repos.
090f46
090f46
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0e-8
090f46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
090f46
090f46
* Fri Apr 03 2009 Peter Jones <pjones@redhat.com> - 3.0e-7
090f46
- Use nickc's workaround for #492183
090f46
090f46
* Tue Mar 31 2009 Peter Jones <pjones@redhat.com> - 3.0e-6.1
090f46
- Make a test package for nickc.
090f46
090f46
* Thu Mar 12 2009 Chris Lumens <clumens@redhat.com> 3.0e-6
090f46
- Add IA64 back into the list of build arches (#489544).
090f46
090f46
* Mon Mar 02 2009 Peter Jones <pjones@redhat.com> - 3.0e-5
090f46
- Switch to i586 from i386.
090f46
090f46
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0e-4
090f46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
090f46
090f46
* Fri Feb 13 2009 Peter Jones <pjones@redhat.com> - 3.0e-3
090f46
- Pad sections out in the provided linker scripts to make sure they all of
090f46
  some content.
090f46
090f46
* Fri Oct 03 2008 Peter Jones <pjones@redhat.com> - 3.0e-2
090f46
- Fix install paths on x86_64.
090f46
090f46
* Thu Oct 02 2008 Peter Jones <pjones@redhat.com> - 3.0e-1
090f46
- Update to 3.0e
090f46
- Fix relocation bug in 3.0e
090f46
090f46
* Tue Jul 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 3.0d-6
090f46
- fix license tag
090f46
090f46
* Mon Jul 28 2008 Peter Jones <pjones@redhat.com> - 3.0d-5
090f46
- Remove ia64 palproc code since its license isn't usable.
090f46
- Remove ia64 from ExclusiveArch since it can't build...
090f46
090f46
* Thu Mar 27 2008 Peter Jones <pjones@redhat.com> - 3.0d-4
090f46
- Fix uefi_call_wrapper(x, 10, ...) .
090f46
- Add efi_main wrappers and EFI_CALL() macro so drivers are possible.
090f46
090f46
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.0d-3
090f46
- Autorebuild for GCC 4.3
090f46
090f46
* Fri Jan 11 2008 Peter Jones <pjones@redhat.com> - 3.0d-2
090f46
- Get rid of a bogus #ifdef .
090f46
090f46
* Wed Dec 19 2007 Peter Jones <pjones@redhat.com> - 3.0d-1
090f46
- Update to 3.0d
090f46
090f46
* Tue Jun 12 2007 Chris Lumens <clumens@redhat.com> - 3.0c-2
090f46
- Fixes for package review (#225846).
090f46
090f46
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 3.0c-1.1
090f46
- rebuild
090f46
090f46
* Thu Apr 27 2006 Chris Lumens <clumens@redhat.com> 3.0c-1
090f46
- Upgrade to gnu-efi-3.0c.
090f46
- Enable build on i386.
090f46
090f46
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 3.0a-7.2
090f46
- rebuilt for new gcc4.1 snapshot and glibc changes
090f46
090f46
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
090f46
- rebuilt
090f46
090f46
* Thu Mar  3 2005 Jeremy Katz <katzj@redhat.com> - 3.0a-7
090f46
- rebuild with gcc 4
090f46
090f46
* Tue Sep 21 2004 Jeremy Katz <katzj@redhat.com> - 3.0a-6
090f46
- add fix from Jesse Barnes for newer binutils (#129197)
090f46
090f46
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
090f46
- rebuilt
090f46
090f46
* Wed Apr 21 2004 Jeremy Katz <katzj@redhat.com> - 3.0a-4
090f46
- actually add the patch
090f46
090f46
* Tue Apr 20 2004 Bill Nottingham <notting@redhat.com> 3.0a-3
090f46
- add patch to coalesce some relocations (#120080, <erikj@sgi.com>)
090f46
090f46
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
090f46
- rebuilt
090f46
090f46
* Fri Oct  4 2002 Jeremy Katz <katzj@redhat.com>
090f46
- rebuild in new environment
090f46
090f46
* Sun Jul  8 2001 Bill Nottingham <notting@redhat.com>
090f46
- update to 3.0
090f46
090f46
* Tue Jun  5 2001 Bill Nottingham <notting@redhat.com>
090f46
- add fix for invocations from the boot manager menu (#42222)
090f46
090f46
* Tue May 22 2001 Bill Nottingham <notting@redhat.com>
090f46
- add bugfix for efibootmgr (<schwab@suse.de>)
090f46
090f46
* Mon May 21 2001 Bill Nottingham <notting@redhat.com>
090f46
- update to 2.5
090f46
- add in efibootmgr from Dell (<Matt_Domsch@dell.com>)
090f46
090f46
* Thu May  3 2001 Bill Nottingham <notting@redhat.com>
090f46
- fix booting of kernels with extra arguments (#37711)
090f46
090f46
* Wed Apr 25 2001 Bill Nottingham <notting@redhat.com>
090f46
- take out Stephane's initrd patch
090f46
090f46
* Fri Apr 20 2001 Bill Nottingham <notting@redhat.com>
090f46
- fix the verbosity patch to not break passing arguments to images
090f46
090f46
* Wed Apr 18 2001 Bill Nottingham <notting@redhat.com>
090f46
- update to 2.0, build elilo, obsolete eli
090f46
090f46
* Tue Dec  5 2000 Bill Nottingham <notting@redhat.com>
090f46
- update to 1.1
090f46
090f46
* Thu Oct 26 2000 Bill Nottingham <notting@redhat.com>
090f46
- add patch for new toolchain, update to 1.0
090f46
090f46
* Thu Aug 17 2000 Bill Nottingham <notting@redhat.com>
090f46
- update to 0.9