2006-12-20 01:22:33 +00:00
|
|
|
#
|
2011-09-20 10:52:59 +00:00
|
|
|
# spec file for package efibootmgr
|
2006-12-20 01:22:33 +00:00
|
|
|
#
|
2017-03-02 07:27:59 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2006-12-20 01:22:33 +00:00
|
|
|
#
|
2008-10-15 10:20:59 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-20 01:22:33 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: efibootmgr
|
2015-06-12 07:46:58 +00:00
|
|
|
Version: 0.12
|
|
|
|
Release: 0
|
2006-12-20 01:22:33 +00:00
|
|
|
Summary: EFI Boot Manager
|
2011-12-06 17:07:47 +00:00
|
|
|
License: GPL-2.0+
|
2012-06-13 07:14:07 +00:00
|
|
|
Group: System/Boot
|
2015-06-12 07:46:58 +00:00
|
|
|
Url: https://github.com/rhinstaller/efibootmgr
|
|
|
|
Source: https://github.com/rhinstaller/efibootmgr/releases/download/efibootmgr-%{version}/efibootmgr-%{version}.tar.bz2
|
|
|
|
Patch1: %{name}-derhat.diff
|
|
|
|
Patch2: %{name}-check-boot-order.diff
|
2016-07-13 16:05:52 +00:00
|
|
|
Patch3: %{name}-fix-efivar-0.24.patch
|
2016-08-23 10:22:58 +00:00
|
|
|
Patch4: %{name}-fix-usage-of-efi_loadopt_path-again.patch
|
2017-03-02 07:27:59 +00:00
|
|
|
BuildRequires: efivar-devel >= 0.24
|
2008-07-31 19:30:20 +00:00
|
|
|
BuildRequires: pciutils-devel
|
2015-06-12 07:46:58 +00:00
|
|
|
BuildRequires: pkg-config
|
2012-06-13 07:14:07 +00:00
|
|
|
BuildRequires: zlib-devel
|
2015-06-12 07:46:58 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2006-12-20 01:22:33 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The EFI Boot Manager allows the user to edit the Intel Extensible
|
|
|
|
Firmware Interface (EFI) Boot Manager variables. Additional
|
|
|
|
information about the EFI can be found at
|
|
|
|
<http://developer.intel.com/technology/efi/efi.htm>.
|
|
|
|
|
|
|
|
%prep
|
2008-07-31 19:30:20 +00:00
|
|
|
%setup -q
|
2013-02-19 11:36:40 +00:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
2016-07-13 16:05:52 +00:00
|
|
|
%patch3 -p1
|
2016-08-23 10:22:58 +00:00
|
|
|
%patch4 -p1
|
2006-12-20 01:22:33 +00:00
|
|
|
|
|
|
|
%build
|
2013-12-19 16:49:29 +00:00
|
|
|
LOADER="grub.efi" # default loader
|
|
|
|
[ "$RPM_ARCH" != ia64 ] || LOADER="elilo.efi" # except Itanium
|
|
|
|
|
|
|
|
case "%{_repository}" in
|
|
|
|
(openSUSE*) VENDOR="openSUSE";;
|
|
|
|
(SLE_11_SP*) VENDOR="SuSE" LOADER="elilo.efi";;
|
|
|
|
(SUSE*|SLE*) VENDOR="SUSE";;
|
|
|
|
(*) VENDOR="linux";;
|
|
|
|
esac
|
2015-06-12 07:46:58 +00:00
|
|
|
make %{?_smp_mflags} EXTRA_CFLAGS="%{optflags}" \
|
2013-12-19 16:49:29 +00:00
|
|
|
OS_VENDOR="$VENDOR" EFI_LOADER="$LOADER"
|
2006-12-20 01:22:33 +00:00
|
|
|
|
|
|
|
%install
|
2015-06-12 07:46:58 +00:00
|
|
|
install -d %{buildroot}%{_sbindir}
|
|
|
|
make install BINDIR=%{buildroot}%{_sbindir}
|
|
|
|
install -d %{buildroot}%{_mandir}/man8
|
|
|
|
install -m 644 src/man/man8/efibootmgr.8 %{buildroot}%{_mandir}/man8
|
2006-12-20 01:22:33 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2014-02-11 13:10:25 +00:00
|
|
|
%doc README COPYING
|
2008-07-31 19:30:20 +00:00
|
|
|
%{_sbindir}/efibootmgr
|
2006-12-20 01:22:33 +00:00
|
|
|
%{_mandir}/man8/*.gz
|
|
|
|
|
2008-07-31 19:30:20 +00:00
|
|
|
%changelog
|