efibootmgr/efibootmgr.spec
Dirk Mueller 7de38aff65 Accepting request 258751 from home:gary_lin:branches:Base:System
- Update version number to 0.11.0
- Rebase patches
  (efibootmgr-0.11.0-derhat.diff,
   efibootmgr-0.11.0-check-boot-order.diff)
- Drop efibootmgr-0.6.0-set_boot_order.diff since the data size of
  the variable is handled properly now
- Drop efibootmgr-0.6.0-fail-visibly.diff since err() and warn()
  are introduced to show more meaningful messages
- Drop upstreamed patch
  (efibootmgr-0.6.0-gcc-Wall.diff,
   efibootmgr-0.6.0-write-unique-id-once.diff)

OBS-URL: https://build.opensuse.org/request/show/258751
OBS-URL: https://build.opensuse.org/package/show/Base:System/efibootmgr?expand=0&rev=21
2014-10-31 09:41:17 +00:00

73 lines
2.2 KiB
RPMSpec

#
# spec file for package efibootmgr
#
# Copyright (c) 2014 SUSE LINUX Products 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
Summary: EFI Boot Manager
License: GPL-2.0+
Group: System/Boot
Version: 0.11.0
Release: 0
Url: http://linux.dell.com/efibootmgr/
Source: http://linux.dell.com/%{name}/%{name}-%{version}/%{name}-%{version}.tar.gz
Patch1: %{name}-0.11.0-derhat.diff
Patch2: %{name}-0.11.0-check-boot-order.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: efivar-devel
BuildRequires: pciutils-devel
BuildRequires: zlib-devel
ExclusiveArch: ia64 x86_64 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="$RPM_OPT_FLAGS" \
OS_VENDOR="$VENDOR" EFI_LOADER="$LOADER"
%install
install -d $RPM_BUILD_ROOT%{_sbindir}
make install BINDIR=$RPM_BUILD_ROOT%{_sbindir}
install -d $RPM_BUILD_ROOT%{_mandir}/man8
install -m 644 src/man/man8/efibootmgr.8 $RPM_BUILD_ROOT%{_mandir}/man8
%files
%defattr(-, root, root)
%doc README COPYING
%{_sbindir}/efibootmgr
%{_mandir}/man8/*.gz
%changelog