efibootmgr/efibootmgr.spec
Raymund Will 660597f14d Accepting request 311729 from home:pluskalm:branches:Base:System
- Update to 0.12
  * This release is mostly a maintenance release that uses 
    libefivar's new library API for creating device paths and load 
    options.
  * Also DHCPv4 network boot entries are now something you can 
    create without knowing an awful lot about ACPI.
- Refresh patches
  efibootmgr-0.11.0-derhat.diff as efibootmgr-derhat.diff
  efibootmgr-0.11.0-check-boot-order.diff as 
  efibootmgr-check-boot-order.diff
- Update project and download url

OBS-URL: https://build.opensuse.org/request/show/311729
OBS-URL: https://build.opensuse.org/package/show/Base:System/efibootmgr?expand=0&rev=30
2015-06-12 07:46:58 +00:00

73 lines
2.3 KiB
RPMSpec

#
# spec file for package efibootmgr
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: efibootmgr
Version: 0.12
Release: 0
Summary: EFI Boot Manager
License: GPL-2.0+
Group: System/Boot
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
BuildRequires: efivar-devel
BuildRequires: pciutils-devel
BuildRequires: pkg-config
BuildRequires: zlib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: ia64 x86_64 i586 aarch64
%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
%setup -q
%patch1 -p1
%patch2 -p1
%build
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="%{optflags}" \
OS_VENDOR="$VENDOR" EFI_LOADER="$LOADER"
%install
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
%files
%defattr(-, root, root)
%doc README COPYING
%{_sbindir}/efibootmgr
%{_mandir}/man8/*.gz
%changelog