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