8dd33d
Summary: EFI Boot Manager
8dd33d
Name: efibootmgr
5fb29d
Version: 0.8.0
38ab4d
Release: 10%{?dist}
8dd33d
Group: System Environment/Base
8dd33d
License: GPLv2+
5fb29d
URL: http://github.com/vathpela/%{name}/
8dd33d
BuildRequires: pciutils-devel, zlib-devel, git
5fb29d
BuildRequires: efivar-libs, efivar-devel
8dd33d
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXXXX)
8dd33d
# EFI/UEFI don't exist on PPC
5fb29d
ExclusiveArch: x86_64 aarch64
8dd33d
8dd33d
# for RHEL / Fedora when efibootmgr was part of the elilo package
5fb29d
Conflicts: elilo <= 3.6-6
5fb29d
Obsoletes: elilo <= 3.6-6
5fb29d
5fb29d
Source0: https://github.com/vathpela/%{name}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2
38ab4d
Patch0001: 0001-Make-EFI-redhat-shim.efi-the-default-bootloader.patch
38ab4d
Patch0002: 0002-Fix-a-bad-allocation-size.patch
38ab4d
Patch0003: 0003-Make-the-return-path-something-coverity-can-actually.patch
38ab4d
Patch0004: 0004-Don-t-leak-our-socket-s-fd-when-determining-network-.patch
38ab4d
Patch0005: 0005-Fix-another-leaked-fd.patch
38ab4d
Patch0006: 0006-Fix-some-minor-memory-leaks.patch
38ab4d
Patch0007: 0007-Make-sure-data-created-for-load-options-is-freed.patch
38ab4d
Patch0008: 0008-Fix-an-error-path-not-checking-the-return-right-in-m.patch
38ab4d
Patch0009: 0009-Try-to-avoid-covscan-freaking-out-about-sscanf-with-.patch
38ab4d
Patch0010: 0010-Get-rid-of-an-invalid-comparison.patch
38ab4d
Patch0011: 0011-Covscan-can-t-tell-that-we-re-not-filling-a-buffer.patch
38ab4d
Patch0012: 0012-Don-t-free-something-that-shouldn-t-ever-be-non-NULL.patch
38ab4d
Patch0013: 0013-Don-t-reuse-a-pointer-to-static-data-and-free-condit.patch
38ab4d
Patch0014: 0014-Handle-the-case-where-there-are-no-EFI-variables.patch
38ab4d
Patch0015: 0015-Make-a-free-non-conditional-since-the-condition-can-.patch
38ab4d
Patch0016: 0016-Check-malloc-return.patch
38ab4d
Patch0017: 0017-Check-open-s-return-correctly.patch
38ab4d
Patch0018: 0018-Check-lseek-for-errors.patch
38ab4d
Patch0019: 0019-Don-t-leak-our-partition-table-structures.patch
38ab4d
Patch0020: 0020-Don-t-error-on-unset-BootOrder-when-we-re-trying-to-.patch
38ab4d
Patch0021: 0021-Fix-buffer-overflow-when-remove_from_boot_order-remo.patch
38ab4d
Patch0022: 0022-Make-sure-BootOrder-gets-shortened-while-deleting.patch
38ab4d
Patch0023: 0023-Make-o-s-behavior-actually-match-the-documented-beha.patch
38ab4d
Patch0024: 0024-Make-all-the-other-places-we-re-parsing-XXXX-also-do.patch
38ab4d
Patch0025: 0025-Set-guid-when-reading-boot-entries-in-read_vars.patch
38ab4d
Patch0026: 0026-Don-t-check-for-bootnext-existing-until-we-ve-read-t.patch
38ab4d
Patch0027: 0027-Actually-set-the-values-we-re-using-to-the-results-o.patch
38ab4d
Patch0028: 0028-Add-m-and-M-options-to-support-address-range-mirror.patch
38ab4d
Patch0029: 0029-Fix-insusufficient-validation-check-of-M-option.patch
38ab4d
Patch0030: 0030-Add-lacking-description-of-man-for-m-and-M-option.patch
38ab4d
Patch0031: 0031-Manually-define-NVME_IOCTL_ID.patch
38ab4d
Patch0032: 0032-efibootmgr.8-Fix-typos-grammar-for-mirroring-options.patch
8dd33d
8dd33d
%description
8dd33d
%{name} displays and allows the user to edit the Intel Extensible
8dd33d
Firmware Interface (EFI) Boot Manager variables.  Additional
8dd33d
information about EFI can be found at
8dd33d
http://developer.intel.com/technology/efi/efi.htm and http://uefi.org/.
8dd33d
8dd33d
%prep
8dd33d
%setup -q
8dd33d
git init
5fb29d
git config user.email "example@example.com"
5fb29d
git config user.name "RHEL Ninjas"
8dd33d
git add .
8dd33d
git commit -a -q -m "%{version} baseline."
5fb29d
git am %{patches} 
5fb29d
git config --unset user.email
5fb29d
git config --unset user.name
8dd33d
8dd33d
%build
8dd33d
make %{?_smp_mflags} EXTRA_CFLAGS='%{optflags}'
8dd33d
8dd33d
%install
8dd33d
rm -rf %{buildroot}
8dd33d
mkdir -p %{buildroot}%{_sbindir} %{buildroot}%{_mandir}/man8
8dd33d
install -p --mode 755 src/%{name}/%{name} %{buildroot}%{_sbindir}
8dd33d
gzip -9 -c src/man/man8/%{name}.8 > src/man/man8/%{name}.8.gz
8dd33d
touch -r src/man/man8/%{name}.8 src/man/man8/%{name}.8.gz
8dd33d
install -p --mode 644 src/man/man8/%{name}.8.gz %{buildroot}%{_mandir}/man8
8dd33d
8dd33d
%clean
8dd33d
rm -rf %{buildroot}
8dd33d
8dd33d
%files
8dd33d
%defattr(-,root,root,-)
8dd33d
%{_sbindir}/%{name}
8dd33d
%{_mandir}/man8/%{name}.8.gz
8dd33d
%doc README INSTALL COPYING
bbe12c
8dd33d
%changelog
38ab4d
* Tue Jul 19 2016 Peter Jones <pjones@redhat.com> - 0.8.0-10
38ab4d
- Another man page update for Memory Address Range Mirroring
38ab4d
  Related: rhbz#1271412
38ab4d
38ab4d
* Wed Jul 13 2016 Peter Jones <pjones@redhat.com> - 0.8.0-9
38ab4d
- Update man page for Memory Address Range Mirroring
38ab4d
  Related: rhbz#1271412
38ab4d
38ab4d
* Mon Jun 06 2016 Peter Jones <pjones@redhat.com> - - 0.8.0-8
38ab4d
- Add options for Memory Address Range Mirroring
38ab4d
  Resolves: rhbz#1271412
38ab4d
c9eda1
* Thu Jul 09 2015 Peter Jones <pjones@redhat.com> - 0.8.0-7
c9eda1
- Fix a couple of problems parsing command line options QA is seeing.
c9eda1
  Resolves: rhbz#1241411
c9eda1
c9eda1
* Tue Jun 30 2015 Peter Jones <pjones@redhat.com> - 0.8.0-6
c9eda1
- Handle -b and -o parsing in a way that matches the documentation.
c9eda1
  Resolves: rhbz#1174964
c9eda1
- Use the right GUID when setting boot entries active/inactive
c9eda1
  Resolves: rhbz#1221771
c9eda1
5fb29d
* Mon Feb 02 2015 Peter Jones <pjones@redhat.com> - 0.8.0-5
5fb29d
- Fix patch merge error from -4
5fb29d
  Resolves: rhbz#1188313
8dd33d
5fb29d
* Thu Jan 08 2015 Peter Jones <pjones@redhat.com> - 0.8.0-4
5fb29d
- Fix buffer overflow when remove_from_boot_order removes nothing (lennysz)
5fb29d
  Resolves: rhbz#1168019
8dd33d
5fb29d
* Wed Oct 15 2014 Peter Jones <pjones@redhat.com> - 0.8.0-3
5fb29d
- Don't error when BootOrder is unset and we're trying to add to it.
5fb29d
  Related:rhbz#967969
8dd33d
5fb29d
* Wed Sep 10 2014 Peter Jones <pjones@redhat.com> - 0.8.0-2
5fb29d
- Fix some covscan related errors.
5fb29d
  Related: rhbz#1129435
8dd33d
5fb29d
* Fri Sep 05 2014 Peter Jones <pjones@redhat.com> - 0.8.0-1
5fb29d
- Rebase to 0.8.0
5fb29d
  Resolves: rhbz#1129435