e55a89
%define efivar_version 36-4
e55a89
e55a89
Summary: EFI Boot Manager
e55a89
Name: efibootmgr
e55a89
Version: 17
e55a89
Release: 2%{?dist}
e55a89
Group: System Environment/Base
e55a89
License: GPLv2+
e55a89
URL: http://github.com/rhinstaller/%{name}/
e55a89
BuildRequires: git, popt-devel
e55a89
BuildRequires: efivar-libs >= %{efivar_version}
e55a89
BuildRequires: efivar-devel >= %{efivar_version}
e55a89
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXXXX)
e55a89
# EFI/UEFI don't exist on PPC
e55a89
ExclusiveArch: x86_64 aarch64
e55a89
e55a89
# for RHEL / Fedora when efibootmgr was part of the elilo package
e55a89
Conflicts: elilo <= 3.6-6
e55a89
Obsoletes: elilo <= 3.6-6
e55a89
e55a89
Source0: https://github.com/rhinstaller/%{name}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2
e55a89
Patch0001: 0001-RHEL-7.x-popt-doesn-t-have-popt.pc-work-around-its-a.patch
e55a89
Patch0002: 0002-Don-t-build-efibootdump-on-RHEL-7.4.patch
e55a89
Patch0003: 0003-remove-extra-decl.patch
e55a89
e55a89
%global efidir %(eval echo $(grep ^ID= /etc/os-release | sed -e 's/^ID=//' -e 's/rhel/redhat/'))
e55a89
e55a89
%description
e55a89
%{name} displays and allows the user to edit the Intel Extensible
e55a89
Firmware Interface (EFI) Boot Manager variables.  Additional
e55a89
information about EFI can be found at
e55a89
http://developer.intel.com/technology/efi/efi.htm and http://uefi.org/.
e55a89
e55a89
%prep
e55a89
%setup -q
e55a89
git init
e55a89
git config user.email "example@example.com"
e55a89
git config user.name "RHEL Ninjas"
e55a89
git add .
e55a89
git commit -a -q -m "%{version} baseline."
e55a89
git am %{patches} 
e55a89
git config --unset user.email
e55a89
git config --unset user.name
e55a89
e55a89
%build
e55a89
make %{?_smp_mflags} EXTRA_CFLAGS='%{optflags}' EFIDIR=%{efidir}
e55a89
e55a89
%install
e55a89
rm -rf %{buildroot}
e55a89
%make_install EFIDIR=%{efidir} libdir=%{_libdir} \
e55a89
	bindir=%{_bindir} mandir=%{_mandir} localedir=%{_datadir}/locale/ \
e55a89
	includedir=%{_includedir} libexecdir=%{_libexecdir} \
e55a89
	datadir=%{_datadir}
e55a89
e55a89
%clean
e55a89
rm -rf %{buildroot}
e55a89
e55a89
%files
e55a89
%defattr(-,root,root,-)
e55a89
%{!?_licensedir:%global license %%doc}
e55a89
%license COPYING
e55a89
%{_sbindir}/*
e55a89
%{_mandir}/*/*.?.gz
e55a89
%doc README
e55a89
e55a89
%changelog
e55a89
* Wed Jun 13 2018 Peter Jones <pjones@redhat.com> - 17-2
e55a89
- Try to make covscan actually complete the scan...
e55a89
  Related: rhbz#1570032
e55a89
  Related: rhbz#1558937
e55a89
  Related: rhbz#1520533
e55a89
e55a89
* Sun Jun 10 2018 Peter Jones <pjones@redhat.com> - 17-1
e55a89
- Update to efibootmgr 17
e55a89
  Related: rhbz#1570032
e55a89
  Related: rhbz#1558937
e55a89
  Resolves: rhbz#1520533
e55a89
e55a89
* Tue May 09 2017 Peter Jones <pjones@redhat.com> - 15-2
e55a89
- Fix some coverity issues
e55a89
  Related: rhbz#1380825
e55a89
e55a89
* Mon Mar 13 2017 Peter Jones <pjones@redhat.com> - 15-1
e55a89
- Update to efivar 15 for fwupdate
e55a89
  Related: rhbz#1380825
e55a89
e55a89
* Tue Jul 19 2016 Peter Jones <pjones@redhat.com> - 0.8.0-10
e55a89
- Another man page update for Memory Address Range Mirroring
e55a89
  Related: rhbz#1271412
e55a89
e55a89
* Wed Jul 13 2016 Peter Jones <pjones@redhat.com> - 0.8.0-9
e55a89
- Update man page for Memory Address Range Mirroring
e55a89
  Related: rhbz#1271412
e55a89
e55a89
* Mon Jun 06 2016 Peter Jones <pjones@redhat.com> - - 0.8.0-8
e55a89
- Add options for Memory Address Range Mirroring
e55a89
  Resolves: rhbz#1271412
e55a89
e55a89
* Thu Jul 09 2015 Peter Jones <pjones@redhat.com> - 0.8.0-7
e55a89
- Fix a couple of problems parsing command line options QA is seeing.
e55a89
  Resolves: rhbz#1241411
e55a89
e55a89
* Tue Jun 30 2015 Peter Jones <pjones@redhat.com> - 0.8.0-6
e55a89
- Handle -b and -o parsing in a way that matches the documentation.
e55a89
  Resolves: rhbz#1174964
e55a89
- Use the right GUID when setting boot entries active/inactive
e55a89
  Resolves: rhbz#1221771
e55a89
e55a89
* Mon Feb 02 2015 Peter Jones <pjones@redhat.com> - 0.8.0-5
e55a89
- Fix patch merge error from -4
e55a89
  Resolves: rhbz#1188313
e55a89
e55a89
* Thu Jan 08 2015 Peter Jones <pjones@redhat.com> - 0.8.0-4
e55a89
- Fix buffer overflow when remove_from_boot_order removes nothing (lennysz)
e55a89
  Resolves: rhbz#1168019
e55a89
e55a89
* Wed Oct 15 2014 Peter Jones <pjones@redhat.com> - 0.8.0-3
e55a89
- Don't error when BootOrder is unset and we're trying to add to it.
e55a89
  Related:rhbz#967969
e55a89
e55a89
* Wed Sep 10 2014 Peter Jones <pjones@redhat.com> - 0.8.0-2
e55a89
- Fix some covscan related errors.
e55a89
  Related: rhbz#1129435
e55a89
e55a89
* Fri Sep 05 2014 Peter Jones <pjones@redhat.com> - 0.8.0-1
e55a89
- Rebase to 0.8.0
e55a89
  Resolves: rhbz#1129435