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
|
|
|
#
|
2014-01-23 21:54:12 +00:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products 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
|
|
|
|
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
|
2014-10-31 09:41:17 +00:00
|
|
|
Version: 0.11.0
|
2012-06-13 07:14:07 +00:00
|
|
|
Release: 0
|
2014-11-01 18:50:41 +00:00
|
|
|
Url: https://github.com/vathpela/efibootmgr
|
|
|
|
Source: https://github.com/vathpela/efibootmgr/releases/download/efibootmgr-%{version}/efibootmgr-%{version}.tar.gz
|
2014-10-31 09:41:17 +00:00
|
|
|
Patch1: %{name}-0.11.0-derhat.diff
|
|
|
|
Patch2: %{name}-0.11.0-check-boot-order.diff
|
2013-12-19 16:49:29 +00:00
|
|
|
|
2006-12-20 01:22:33 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-10-31 09:41:17 +00:00
|
|
|
BuildRequires: efivar-devel
|
2008-07-31 19:30:20 +00:00
|
|
|
BuildRequires: pciutils-devel
|
2012-06-13 07:14:07 +00:00
|
|
|
BuildRequires: zlib-devel
|
2014-12-24 13:08:19 +00:00
|
|
|
ExclusiveArch: ia64 x86_64 i586 aarch64
|
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
|
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
|
|
|
|
make %{?_smp_mflags} EXTRA_CFLAGS="$RPM_OPT_FLAGS" \
|
|
|
|
OS_VENDOR="$VENDOR" EFI_LOADER="$LOADER"
|
2006-12-20 01:22:33 +00:00
|
|
|
|
|
|
|
%install
|
2008-07-31 19:30:20 +00:00
|
|
|
install -d $RPM_BUILD_ROOT%{_sbindir}
|
|
|
|
make install BINDIR=$RPM_BUILD_ROOT%{_sbindir}
|
2006-12-20 01:22:33 +00:00
|
|
|
install -d $RPM_BUILD_ROOT%{_mandir}/man8
|
|
|
|
install -m 644 src/man/man8/efibootmgr.8 $RPM_BUILD_ROOT%{_mandir}/man8
|
|
|
|
|
|
|
|
%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
|