2006-12-20 02:22:33 +01:00
|
|
|
#
|
2011-09-20 12:52:59 +02:00
|
|
|
# spec file for package efibootmgr
|
2006-12-20 02:22:33 +01:00
|
|
|
#
|
2023-03-13 16:48:09 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2006-12-20 02:22:33 +01:00
|
|
|
#
|
2008-10-15 12:20:59 +02: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.
|
|
|
|
|
2021-11-30 10:03:48 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-20 02:22:33 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: efibootmgr
|
2023-03-13 14:56:29 +01:00
|
|
|
Version: 18
|
2015-06-12 09:46:58 +02:00
|
|
|
Release: 0
|
2006-12-20 02:22:33 +01:00
|
|
|
Summary: EFI Boot Manager
|
2018-04-04 10:13:09 +02:00
|
|
|
License: GPL-2.0-or-later
|
2012-06-13 09:14:07 +02:00
|
|
|
Group: System/Boot
|
2021-11-30 10:03:48 +01:00
|
|
|
URL: https://github.com/rhinstaller/efibootmgr
|
2023-03-13 14:56:29 +01:00
|
|
|
Source: https://github.com/rhboot/efibootmgr/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.bz2
|
2021-11-30 10:03:48 +01:00
|
|
|
Patch0: %{name}-delete-multiple.diff
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(efiboot) >= 31
|
|
|
|
BuildRequires: pkgconfig(efivar) >= 31
|
|
|
|
BuildRequires: pkgconfig(libpci)
|
|
|
|
BuildRequires: pkgconfig(popt)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
2006-12-20 02:22:33 +01: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
|
2021-11-30 10:03:48 +01:00
|
|
|
%autosetup -p1
|
2006-12-20 02:22:33 +01:00
|
|
|
|
|
|
|
%build
|
2021-11-30 10:03:48 +01:00
|
|
|
# removing hotfix function declaration:
|
|
|
|
# https://github.com/rhboot/efibootmgr/issues/128
|
|
|
|
sed -e '/extern int efi_set_verbose/d' -i "src/efibootmgr.c"
|
|
|
|
|
2013-12-19 17:49:29 +01: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
|
2021-11-30 10:03:48 +01:00
|
|
|
%make_build CFLAGS="%{optflags} -flto -fPIE -pie" \
|
|
|
|
OS_VENDOR="$VENDOR" EFI_LOADER="$LOADER" EFIDIR="$VENDOR"
|
2006-12-20 02:22:33 +01:00
|
|
|
|
|
|
|
%install
|
2021-11-30 10:03:48 +01:00
|
|
|
case "%{_repository}" in
|
|
|
|
(openSUSE*) VENDOR="openSUSE";;
|
|
|
|
(SLE_11_SP*) VENDOR="SuSE" LOADER="elilo.efi";;
|
|
|
|
(SUSE*|SLE*) VENDOR="SUSE";;
|
|
|
|
(*) VENDOR="linux";;
|
|
|
|
esac
|
|
|
|
make DESTDIR=%{buildroot} sbindir=%{_sbindir} EFIDIR="$VENDOR" install
|
2006-12-20 02:22:33 +01:00
|
|
|
|
|
|
|
%files
|
2018-04-04 10:13:09 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc README
|
2017-03-06 11:25:22 +01:00
|
|
|
%{_sbindir}/efiboot*
|
2006-12-20 02:22:33 +01:00
|
|
|
%{_mandir}/man8/*.gz
|
|
|
|
|
2008-07-31 21:30:20 +02:00
|
|
|
%changelog
|