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