cvsdist 2d1a145
Summary: Development Libraries and headers for EFI
cvsdist 2d1a145
Name: gnu-efi
0d85a58
Version: 3.0.3
1b3f362
Release: 3%{?dist}
c566169
Epoch:	1
cvsdist 2d1a145
Group: Development/System
Matthew Garrett 76e9368
License: BSD 
2af649b
URL: ftp://ftp.hpl.hp.com/pub/linux-ia64
2af649b
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
059be1a
ExclusiveArch: %{ix86} x86_64 ia64 aarch64
e5688ed
BuildRequires: git
c566169
Source: http://superb-dca2.dl.sourceforge.net/project/gnu-efi/gnu-efi-%{version}.tar.bz2
1b3f362
Patch0001: 0001-Add-the-missing-URI-device-path-to-the-unions.patch
1b3f362
Patch0002: 0002-From-Pete-Batard-pete-akeo.ie.patch
1b3f362
Patch0003: 0003-From-Pete-Batard-pete-akeo.ie.patch
1b3f362
Patch0004: 0004-From-Julian-Andres-Klode-jak-debian.org.patch
1b3f362
Patch0005: 0005-From-Ard-Biesheuvel-ard.biesheuvel-linaro.org.patch
1b3f362
Patch0006: 0006-From-Ard-Biesheuvel-ard.biesheuvel-linaro.org.patch
1b3f362
Patch0007: 0007-From-Ard-Biesheuvel-ard.biesheuvel-linaro.org.patch
1b3f362
Patch0008: 0008-From-Ard-Biesheuvel-ard.biesheuvel-linaro.org.patch
1b3f362
Patch0009: 0009-arm-fix-linker-script-for-building-efi-binaries.patch
1b3f362
Patch0010: 0010-Explicitly-place-our-build-id-notes-on-all-arches.patch
631ab97
f727ccd
%define debug_package %{nil}
f727ccd
be24ef3
# Figure out the right file path to use
3daacdc
%global efidir %(eval echo $(grep ^ID= /etc/os-release | sed -e 's/^ID=//' -e 's/rhel/redhat/'))
be24ef3
ebbb4d7
%ifarch x86_64
ebbb4d7
%global efiarch x86_64
ebbb4d7
%endif
ebbb4d7
%ifarch aarch64
ebbb4d7
%global efiarch aarch64
ebbb4d7
%endif
5b30b98
%ifarch %{arm}
5b30b98
%global efiarch arm
5b30b98
%endif
ebbb4d7
%ifarch %{ix86}
ebbb4d7
%global efiarch ia32
ebbb4d7
%endif
ebbb4d7
cvsdist 2d1a145
%description
cvsdist 2d1a145
This package contains development headers and libraries for developing
cvsdist 2d1a145
applications that run under EFI (Extensible Firmware Interface).
cvsdist 2d1a145
be24ef3
%package devel
be24ef3
Summary: Development Libraries and headers for EFI
be24ef3
Group: Development/System
1258f00
Obsoletes: gnu-efi < 3.0.1-1
1258f00
Requires: gnu-efi
be24ef3
be24ef3
%description devel
be24ef3
This package contains development headers and libraries for developing
be24ef3
applications that run under EFI (Extensible Firmware Interface).
be24ef3
be24ef3
%package utils
be24ef3
Summary: Utilities for EFI systems
be24ef3
Group: Applications/System
be24ef3
be24ef3
%description utils
be24ef3
This package contains utilties for debugging and developing EFI systems.
be24ef3
cvsdist 2d1a145
%prep
c566169
%setup -q -n gnu-efi-%{version}
e5688ed
git init
1258f00
git config user.email "gnu-efi-owner@fedoraproject.org"
e5688ed
git config user.name "Fedora Ninjas"
1258f00
git config sendemail.to "gnu-efi-owner@fedoraproject.org"
e5688ed
git add .
e5688ed
git commit -a -q -m "%{version} baseline."
ed4f2f7
git am %{patches} 
c566169
git config --unset user.email
c566169
git config --unset user.name
cvsdist 2d1a145
cvsdist 2d1a145
%build
2af649b
# Package cannot build with %{?_smp_mflags}.
2af649b
make
ebbb4d7
make apps
cvsdist 2d1a145
cvsdist 2d1a145
%install
2af649b
rm -rf %{buildroot}
cvsdist 2d1a145
2af649b
mkdir -p %{buildroot}/%{_libdir}
cvsdist 2d1a145
64e8d4f
make PREFIX=%{_prefix} LIBDIR=%{_libdir} INSTALLROOT=%{buildroot} install
cvsdist 2d1a145
2af649b
mkdir -p %{buildroot}/%{_libdir}/gnuefi
2af649b
mv %{buildroot}/%{_libdir}/*.lds %{buildroot}/%{_libdir}/*.o %{buildroot}/%{_libdir}/gnuefi
cvsdist 2d1a145
be24ef3
mkdir -p %{buildroot}/boot/efi/EFI/%{efidir}/
ebbb4d7
mv %{efiarch}/apps/{route80h.efi,modelist.efi} %{buildroot}/boot/efi/EFI/%{efidir}/
cvsdist 48a0809
cvsdist 2d1a145
%clean
2af649b
rm -rf %{buildroot}
cvsdist 2d1a145
cvsdist 2d1a145
%files
be24ef3
%{_libdir}/*
be24ef3
be24ef3
%files devel
2af649b
%defattr(-,root,root,-)
c7f2344
%doc README.* ChangeLog
2af649b
%{_includedir}/efi
be24ef3
be24ef3
%files utils
be24ef3
%dir /boot/efi/EFI/%{efidir}/
be24ef3
%attr(0644,root,root) /boot/efi/EFI/%{efidir}/*.efi
cvsdist 2d1a145
cvsdist 2d1a145
%changelog
1b3f362
* Tue Feb 23 2016 Peter Jones <pjones@redhat.com> - 3.0.3-3
1b3f362
- Include patches from upstream that are after 3.0.3 This should fix the arm
1b3f362
  and aarch64 builds.
1b3f362
c9952e9
* Tue Feb 23 2016 Peter Jones <pjones@redhat.com> - 3.0.3-2
c9952e9
- We still need build-id patches in some places.
c9952e9
0d85a58
* Mon Feb 22 2016 Peter Jones <pjones@redhat.com> - 3.0.3-1
0d85a58
- Rebase to 3.0.3
0d85a58
2e3fff4
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.0.2-4
2e3fff4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2e3fff4
3daacdc
* Fri Jan 29 2016 Dan HorĂ¡k <dan[at]danny.cz> - 1:3.0.2-3
3daacdc
- use safer method to evaluate %%efidir
3daacdc
1134a70
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.0.2-2
1134a70
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
1134a70
1258f00
* Wed May 13 2015 Peter Jones <pjones@redhat.com> - 3.0.2-1
1258f00
- Update to 3.0.2
1258f00
- Fix base package requirement on subpackages
1258f00
- Add setjmp, because this is my life.
1258f00
c566169
* Tue Mar 10 2015 Peter Jones <pjones@redhat.com> - 3.0.1-1
c566169
- Update to 3.0.1
c566169
- New versioning scheme!
c566169
631ab97
* Thu Nov 20 2014 Peter Jones <pjones@redhat.com> - 3.0w-2
631ab97
- Use patches upstream is going to take for the build fixes
631ab97
- Add some new protocol definitons.
631ab97
Kyle McMartin aaf26dd
* Fri Aug 22 2014 Kyle McMartin <kyle@fedoraproject.org> - 3.0w-0.1
Kyle McMartin aaf26dd
- New upstream version 3.0w
Kyle McMartin aaf26dd
- Add pjones' build fixes patch from that other distro.
Kyle McMartin aaf26dd
- Enable AArch64
Kyle McMartin aaf26dd
b924a22
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0u-0.4
b924a22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
b924a22
0c52098
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0u-0.3
0c52098
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
0c52098
be24ef3
* Tue Sep 24 2013 Peter Jones <pjones@redhat.com> - 3.0u-0.1
be24ef3
- Update to 3.0u
be24ef3
- Split out subpackages so -devel can be multilib
be24ef3
- Fix path in apps subpackage to vary by distro.
be24ef3
8330e26
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0t-0.2
8330e26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
8330e26
1b13f90
* Fri Jun 07 2013 Peter Jones <pjones@redhat.com> - 3.0t-0.1
1b13f90
- Update to 3.0t
1b13f90
- Don't allow use of mmx or sse registers.
1b13f90
e2027bc
* Thu May 16 2013 Peter Jones <pjones@redhat.com> - 3.0s-2
e2027bc
- Update to 3.0s
e2027bc
  Related: rhbz#963359
e2027bc
92fe416
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0q-2
92fe416
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
92fe416
Matthew Garrett 76e9368
* Fri Jul 27 2012 Matthew Garrett <mjg@redhat.com> - 3.0q-1
Matthew Garrett 76e9368
- Update to current upstream
Matthew Garrett 76e9368
- License change - GPLv2+ to BSD
Matthew Garrett 76e9368
53c181b
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0e-18
53c181b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
53c181b
0a0c1a9
* Wed Apr 25 2012 Peter Jones <pjones@redhat.com> - 3.0e-17
0a0c1a9
- Align .reloc section as well to make secureboot work (mfleming)
0a0c1a9
b5f9899
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0e-16
b5f9899
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b5f9899
0479b73
* Thu Aug 11 2011 Peter Jones <pjones@redhat.com> - 3.0e-15
50f718a
- Correctly pad the stack when doing uefi calls
50f718a
  Related: rhbz#677468
50f718a
- Add ability to write UEFI callbacks and drivers
50f718a
- Add test harness for ABI Calling Conventions
0479b73
1d92660
* Thu Jun 16 2011 Peter Jones <pjones@redhat.com> - 3.0e-14
1d92660
- Handle uninitialized GOP driver gracefully.
50f718a
efff3ba
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0e-13
efff3ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
efff3ba
c7f2344
* Fri Sep 10 2010 Peter Jones <pjones@redhat.com> - 3.0e-12
c7f2344
- Add "modelist.efi" test utility in apps/
c7f2344
bb9a5da
* Mon Jul 26 2010 Peter Jones <pjones@redhat.com> - 3.0e-11
bb9a5da
- Add PciIo headers.
bb9a5da
e5688ed
* Fri Jul 23 2010 Peter Jones <pjones@redhat.com> - 3.0e-10
e5688ed
- Add UEFI 2.x boot services.
e5688ed
87d971e
* Tue Aug 11 2009 Peter Jones <pjones@redhat.com> - 3.0e-9
87d971e
- Change ExclusiveArch to reflect arch changes in repos.
87d971e
74aa1de
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0e-8
74aa1de
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
74aa1de
7ed20e5
* Fri Apr 03 2009 Peter Jones <pjones@redhat.com> - 3.0e-7
7ed20e5
- Use nickc's workaround for #492183
7ed20e5
7ed20e5
* Tue Mar 31 2009 Peter Jones <pjones@redhat.com> - 3.0e-6.1
7ed20e5
- Make a test package for nickc.
7ed20e5
84d71c7
* Thu Mar 12 2009 Chris Lumens <clumens@redhat.com> 3.0e-6
84d71c7
- Add IA64 back into the list of build arches (#489544).
84d71c7
fdb7bff
* Mon Mar 02 2009 Peter Jones <pjones@redhat.com> - 3.0e-5
fdb7bff
- Switch to i586 from i386.
fdb7bff
6a01434
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0e-4
6a01434
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
6a01434
2b933aa
* Fri Feb 13 2009 Peter Jones <pjones@redhat.com> - 3.0e-3
2b933aa
- Pad sections out in the provided linker scripts to make sure they all of
2b933aa
  some content.
2b933aa
64e8d4f
* Fri Oct 03 2008 Peter Jones <pjones@redhat.com> - 3.0e-2
64e8d4f
- Fix install paths on x86_64.
64e8d4f
0628246
* Thu Oct 02 2008 Peter Jones <pjones@redhat.com> - 3.0e-1
0628246
- Update to 3.0e
0628246
- Fix relocation bug in 3.0e
0628246
c4a1c3f
* Tue Jul 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 3.0d-6
c4a1c3f
- fix license tag
c4a1c3f
dc61dc3
* Mon Jul 28 2008 Peter Jones <pjones@redhat.com> - 3.0d-5
dc61dc3
- Remove ia64 palproc code since its license isn't usable.
dc61dc3
- Remove ia64 from ExclusiveArch since it can't build...
dc61dc3
32f0550
* Thu Mar 27 2008 Peter Jones <pjones@redhat.com> - 3.0d-4
32f0550
- Fix uefi_call_wrapper(x, 10, ...) .
32f0550
- Add efi_main wrappers and EFI_CALL() macro so drivers are possible.
32f0550
627b9b5
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.0d-3
627b9b5
- Autorebuild for GCC 4.3
627b9b5
6d38009
* Fri Jan 11 2008 Peter Jones <pjones@redhat.com> - 3.0d-2
6d38009
- Get rid of a bogus #ifdef .
6d38009
3708703
* Wed Dec 19 2007 Peter Jones <pjones@redhat.com> - 3.0d-1
3708703
- Update to 3.0d
f0da5ac
2af649b
* Tue Jun 12 2007 Chris Lumens <clumens@redhat.com> - 3.0c-2
2af649b
- Fixes for package review (#225846).
2af649b
0bd1749
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 3.0c-1.1
0bd1749
- rebuild
0bd1749
1456338
* Thu Apr 27 2006 Chris Lumens <clumens@redhat.com> 3.0c-1
1456338
- Upgrade to gnu-efi-3.0c.
1456338
- Enable build on i386.
1456338
ec9bce0
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 3.0a-7.2
ec9bce0
- rebuilt for new gcc4.1 snapshot and glibc changes
ec9bce0
a927ff3
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
a927ff3
- rebuilt
a927ff3
6a0a14e
* Thu Mar  3 2005 Jeremy Katz <katzj@redhat.com> - 3.0a-7
6a0a14e
- rebuild with gcc 4
6a0a14e
b566beb
* Tue Sep 21 2004 Jeremy Katz <katzj@redhat.com> - 3.0a-6
b566beb
- add fix from Jesse Barnes for newer binutils (#129197)
b566beb
cvsdist 6df78e1
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 6df78e1
- rebuilt
cvsdist 6df78e1
cvsdist 15768aa
* Wed Apr 21 2004 Jeremy Katz <katzj@redhat.com> - 3.0a-4
cvsdist 15768aa
- actually add the patch
cvsdist 15768aa
cvsdist bcaf189
* Tue Apr 20 2004 Bill Nottingham <notting@redhat.com> 3.0a-3
cvsdist bcaf189
- add patch to coalesce some relocations (#120080, <erikj@sgi.com>)
cvsdist bcaf189
cvsdist 633e9d9
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 633e9d9
- rebuilt
cvsdist 633e9d9
cvsdist 915b58f
* Fri Oct  4 2002 Jeremy Katz <katzj@redhat.com>
cvsdist 915b58f
- rebuild in new environment
cvsdist 915b58f
cvsdist d97f859
* Sun Jul  8 2001 Bill Nottingham <notting@redhat.com>
cvsdist d97f859
- update to 3.0
cvsdist d97f859
cvsdist 48a0809
* Tue Jun  5 2001 Bill Nottingham <notting@redhat.com>
cvsdist 48a0809
- add fix for invocations from the boot manager menu (#42222)
cvsdist 48a0809
cvsdist 48a0809
* Tue May 22 2001 Bill Nottingham <notting@redhat.com>
cvsdist 48a0809
- add bugfix for efibootmgr (<schwab@suse.de>)
cvsdist 48a0809
cvsdist 48a0809
* Mon May 21 2001 Bill Nottingham <notting@redhat.com>
cvsdist 48a0809
- update to 2.5
cvsdist 48a0809
- add in efibootmgr from Dell (<Matt_Domsch@dell.com>)
cvsdist 48a0809
cvsdist 48a0809
* Thu May  3 2001 Bill Nottingham <notting@redhat.com>
cvsdist 48a0809
- fix booting of kernels with extra arguments (#37711)
cvsdist 48a0809
cvsdist 48a0809
* Wed Apr 25 2001 Bill Nottingham <notting@redhat.com>
cvsdist 48a0809
- take out Stephane's initrd patch
cvsdist 48a0809
cvsdist 48a0809
* Fri Apr 20 2001 Bill Nottingham <notting@redhat.com>
cvsdist 48a0809
- fix the verbosity patch to not break passing arguments to images
cvsdist 48a0809
cvsdist 48a0809
* Wed Apr 18 2001 Bill Nottingham <notting@redhat.com>
cvsdist 48a0809
- update to 2.0, build elilo, obsolete eli
cvsdist 48a0809
cvsdist 2d1a145
* Tue Dec  5 2000 Bill Nottingham <notting@redhat.com>
cvsdist 2d1a145
- update to 1.1
cvsdist 2d1a145
cvsdist 2d1a145
* Thu Oct 26 2000 Bill Nottingham <notting@redhat.com>
cvsdist 2d1a145
- add patch for new toolchain, update to 1.0
cvsdist 2d1a145
cvsdist 2d1a145
* Thu Aug 17 2000 Bill Nottingham <notting@redhat.com>
cvsdist 2d1a145
- update to 0.9