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