801f1b
%define efivar_version 35-1
801f1b
801f1b
Summary: EFI Boot Manager
801f1b
Name: efibootmgr
801f1b
Version: 16
801f1b
Release: 1%{?dist}
801f1b
Group: System Environment/Base
801f1b
License: GPLv2+
801f1b
URL: http://github.com/rhinstaller/%{name}/
801f1b
BuildRequires: git, popt-devel
801f1b
BuildRequires: efivar-libs >= %{efivar_version}
801f1b
BuildRequires: efivar-devel >= %{efivar_version}
801f1b
# EFI/UEFI don't exist on PPC
801f1b
ExclusiveArch: %{ix86} x86_64 aarch64 arm
801f1b
801f1b
# for RHEL / Fedora when efibootmgr was part of the elilo package
801f1b
Conflicts: elilo <= 3.6-6
801f1b
Obsoletes: elilo <= 3.6-6
801f1b
801f1b
Source0: https://github.com/rhinstaller/%{name}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2
801f1b
801f1b
%global efidir %(eval echo $(grep ^ID= /etc/os-release | sed -e 's/^ID=//' -e 's/rhel/redhat/'))
801f1b
801f1b
%description
801f1b
%{name} displays and allows the user to edit the Intel Extensible
801f1b
Firmware Interface (EFI) Boot Manager variables.  Additional
801f1b
information about EFI can be found at
801f1b
http://developer.intel.com/technology/efi/efi.htm and http://uefi.org/.
801f1b
801f1b
%prep
801f1b
%setup -q
801f1b
git init
801f1b
git config user.email "example@example.com"
801f1b
git config user.name "RHEL Ninjas"
801f1b
git add .
801f1b
git commit -a -q -m "%{version} baseline."
801f1b
git am %{patches} 
801f1b
git config --unset user.email
801f1b
git config --unset user.name
801f1b
801f1b
%build
801f1b
make %{?_smp_mflags} CFLAGS='%{optflags}' LDFLAGS='%{build_ldflags}' \
801f1b
  EFIDIR=%{efidir}
801f1b
801f1b
%install
801f1b
rm -rf %{buildroot}
801f1b
%make_install EFIDIR=%{efidir} libdir=%{_libdir} \
801f1b
       bindir=%{_bindir} mandir=%{_mandir} localedir=%{_datadir}/locale/ \
801f1b
       includedir=%{_includedir} libexecdir=%{_libexecdir} \
801f1b
       datadir=%{_datadir}
801f1b
801f1b
%files
801f1b
%defattr(-,root,root,-)
801f1b
%{!?_licensedir:%global license %%doc}
801f1b
%license COPYING
801f1b
%{_sbindir}/*
801f1b
%{_mandir}/*/*.?.gz
801f1b
%doc README
801f1b
    
801f1b
%changelog
801f1b
* Mon Apr 09 2018 Peter Jones <pjones@redhat.com> - 16-1
801f1b
- efibootmgr 16
801f1b
- better coverity and clang-analyzer support
801f1b
- better CI
801f1b
- minor fixes
801f1b
801f1b
* Tue Feb 27 2018 Peter Jones <pjones@redhat.com> - 15-6
801f1b
- Rebuild against newer efivar.
801f1b
801f1b
* Fri Feb 23 2018 Florian Weimer <fweimer@redhat.com> - 15-5
801f1b
- Use CFLAGS & LDFLAGS from redhat-rpm-config
801f1b
801f1b
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 15-4
801f1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
801f1b
801f1b
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 15-3
801f1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
801f1b
801f1b
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 15-2
801f1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
801f1b
801f1b
* Sat Jul 08 2017 Peter Jones <pjones@redhat.com> - 15-1
801f1b
- Update to efibootmgr 15
801f1b
- Make efibootmgr use EFIDIR / efibootmgr.efidir like fwupdate does
801f1b
- make --loader default build-time configurable
801f1b
- sanitize set_mirror()/get_mirror()
801f1b
- Add support for parsing loader options as UCS2
801f1b
- GCC 7 fixes
801f1b
- Don't use -fshort-wchar since we don't run on EFI machines.
801f1b
- Also rebuild for efivar-31-1.fc26 to get symbol versioning right.
801f1b
  Resolves: rhbz#1468841
801f1b
801f1b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 14-4
801f1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
801f1b
801f1b
* Wed Sep 28 2016 Peter Jones <pjones@redhat.com> - 14-3
801f1b
- Rebuild for efivar-30-3, this time with the right library sonames.
801f1b
801f1b
* Wed Sep 28 2016 Peter Jones <pjones@redhat.com> - 14-2
801f1b
- Rebuild for efivar-30-2
801f1b
801f1b
* Tue Sep 27 2016 Peter Jones <pjones@redhat.com> - 14-1
801f1b
- Update to efibootmgr 14
801f1b
- Remove "(hex)" from description of --delete-bootnum
801f1b
- Fix a typo in the popt options
801f1b
- Add README.md
801f1b
- make efibootdump install by default
801f1b
- Man page fixes
801f1b
- Better compiler detection
801f1b
- Don't use --default-symver in efibootmgr
801f1b
- Make -flto part of the overrideable CFLAGS
801f1b
801f1b
* Wed Aug 17 2016 Peter Jones <pjones@redhat.com> - 13-2
801f1b
- Update to efibootmgr 13
801f1b
- Add support for --sysprep and --driver to support UEFI System Prep
801f1b
  Applications and UEFI Drivers.
801f1b
- use efivar's error reporting facility, and show error traces when
801f1b
  "-v -v" is used.
801f1b
- Still yet better error codes returned on failures.
801f1b
- Add -m and -M to support Memory Address Range Mirroring.
801f1b
- Add efibootdump, to examine Boot* variables found in tarballs in bug
801f1b
  reports and similar.
801f1b
- miscellaneous bugfixes.
801f1b
801f1b
* Thu Aug 11 2016 Peter Jones <pjones@redhat.com> - 13-1
801f1b
- Update to version 13
801f1b
- add efibootdump
801f1b
- use efivar's error reporting facility
801f1b
- Add address range mirroring support
801f1b
- lots of bug fixes
801f1b
801f1b
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-3
801f1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
801f1b
801f1b
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-2
801f1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
801f1b
801f1b
* Thu May 28 2015 Peter Jones <pjones@redhat.com> - 0.12-1
801f1b
- Update to 0.12
801f1b
- use libefiboot and libefivar to make device paths and load options
801f1b
- don't depend on -lz or -lpci any more
801f1b
801f1b
* Tue Oct 21 2014 Peter Jones <pjones@redhat.com> - 0.11.0-1
801f1b
- Fix "-n" and friends not being assigned/checked right sometimes from 0.10.0-1
801f1b
- Generate more archives to avoid people using github's, because they're just
801f1b
  bad.
801f1b
801f1b
* Mon Oct 20 2014 Peter Jones <pjones@redhat.com> - 0.10.0-1
801f1b
- Make -o parameter validation work better and be more informative
801f1b
- Better exit values
801f1b
- Fix a segfault with appending ascii arguments.
801f1b
801f1b
* Tue Sep 09 2014 Peter Jones <pjones@redhat.com> - 0.8.0-1
801f1b
- Release 0.8.0
801f1b
801f1b
* Mon Jan 13 2014 Peter Jones <pjones@redhat.com> - 0.6.1-1
801f1b
- Release 0.6.1
801f1b
801f1b
* Mon Jan 13 2014 Jared Dominguez <Jared_Dominguez@dell.com>
801f1b
- new home https://github.com/vathpela/efibootmgr
801f1b
801f1b
* Thu Jan  3 2008 Matt Domsch <Matt_Domsch@dell.com> 0.5.4-1
801f1b
- split efibootmgr into its own RPM for Fedora/RHEL.
801f1b
801f1b
* Tue Aug 24 2004 Matt Domsch <Matt_Domsch@dell.com>
801f1b
- new home linux.dell.com
801f1b
801f1b
* Fri May 18 2001 Matt Domsch <Matt_Domsch@dell.com>
801f1b
- See doc/ChangeLog