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