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
|
2017-03-06 10:25:22 +00:00
|
|
|
Version: 14
|
2015-06-12 07:46:58 +00:00
|
|
|
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
|
2017-03-06 10:39:51 +00:00
|
|
|
Source: https://github.com/rhinstaller/efibootmgr/releases/download/14/efibootmgr-14.tar.bz2
|
2017-03-06 10:25:22 +00:00
|
|
|
Patch1: 0001-Don-t-use-fshort-wchar-when-building-63.patch
|
|
|
|
Patch2: 0002-Remove-extra-const-keywords-gcc-7-gripes-about.patch
|
|
|
|
Patch3: 0003-Add-support-for-parsing-optional-data-as-ucs2.patch
|
|
|
|
Patch4: %{name}-derhat.diff
|
|
|
|
Patch5: MARM-sanitize-set_mirror.diff
|
|
|
|
Patch6: %{name}-delete-multiple.diff
|
|
|
|
BuildRequires: efivar-devel >= 31
|
2008-07-31 19:30:20 +00:00
|
|
|
BuildRequires: pciutils-devel
|
2015-06-12 07:46:58 +00:00
|
|
|
BuildRequires: pkg-config
|
2017-03-06 10:25:22 +00:00
|
|
|
BuildRequires: popt-devel
|
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
|
2017-03-06 10:25:22 +00:00
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -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
|
2017-06-27 11:00:52 +00:00
|
|
|
make %{?_smp_mflags} CFLAGS="%{optflags} -flto -fPIE -pie" \
|
2013-12-19 16:49:29 +00:00
|
|
|
OS_VENDOR="$VENDOR" EFI_LOADER="$LOADER"
|
2006-12-20 01:22:33 +00:00
|
|
|
|
|
|
|
%install
|
2017-03-06 10:25:22 +00:00
|
|
|
make DESTDIR=%{buildroot} sbindir=%{_sbindir} install
|
2006-12-20 01:22:33 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2014-02-11 13:10:25 +00:00
|
|
|
%doc README COPYING
|
2017-03-06 10:25:22 +00:00
|
|
|
%{_sbindir}/efiboot*
|
2006-12-20 01:22:33 +00:00
|
|
|
%{_mandir}/man8/*.gz
|
|
|
|
|
2008-07-31 19:30:20 +00:00
|
|
|
%changelog
|