Minor spec cleanups, remove dead links

This commit is contained in:
Peter Robinson 2021-01-14 11:05:55 +00:00
parent ec05058b65
commit dea4ff34f9

View File

@ -1,25 +1,22 @@
%define efivar_version 35-2 %define efivar_version 35-2
Summary: EFI Boot Manager
Name: efibootmgr Name: efibootmgr
Version: 16 Version: 16
Release: 9%{?dist} Release: 9%{?dist}
Summary: EFI Boot Manager
License: GPLv2+ License: GPLv2+
URL: https://github.com/rhboot/%{name}/ URL: https://github.com/rhboot/%{name}/
BuildRequires: gcc
BuildRequires: efi-srpm-macros >= 3-2 BuildRequires: efi-srpm-macros >= 3-2
BuildRequires: efi-filesystem BuildRequires: efi-filesystem
BuildRequires: git popt-devel BuildRequires: git popt-devel
BuildRequires: efivar-libs >= %{efivar_version} BuildRequires: efivar-libs >= %{efivar_version}
BuildRequires: efivar-devel >= %{efivar_version} BuildRequires: efivar-devel >= %{efivar_version}
BuildRequires: gcc
BuildRequires: make BuildRequires: make
Requires: efi-filesystem Requires: efi-filesystem
ExclusiveArch: %{efi} ExclusiveArch: %{efi}
# for RHEL / Fedora when efibootmgr was part of the elilo package
Conflicts: elilo <= 3.6-6
Obsoletes: elilo <= 3.6-6
Source0: https://github.com/rhboot/%{name}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2 Source0: https://github.com/rhboot/%{name}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2
# Fixes to compiler errors manually cherry picked from upstream commit # Fixes to compiler errors manually cherry picked from upstream commit
@ -29,8 +26,7 @@ Patch0: efibootmgr-16-efidp_format_device_path-argfix.patch
%description %description
%{name} displays and allows the user to edit the Intel Extensible %{name} displays and allows the user to edit the Intel Extensible
Firmware Interface (EFI) Boot Manager variables. Additional Firmware Interface (EFI) Boot Manager variables. Additional
information about EFI can be found at information about EFI can be found at https://uefi.org/.
http://developer.intel.com/technology/efi/efi.htm and http://uefi.org/.
%prep %prep
%autosetup -S git %autosetup -S git
@ -40,13 +36,11 @@ git config --local --add efibootmgr.efidir %{efi_vendor}
%make_build CFLAGS='%{optflags}' LDFLAGS='%{build_ldflags}' %make_build CFLAGS='%{optflags}' LDFLAGS='%{build_ldflags}'
%install %install
rm -rf %{buildroot}
%make_install libdir=%{_libdir} bindir=%{_bindir} mandir=%{_mandir} \ %make_install libdir=%{_libdir} bindir=%{_bindir} mandir=%{_mandir} \
localedir=%{_datadir}/locale/ includedir=%{_includedir} \ localedir=%{_datadir}/locale/ includedir=%{_includedir} \
libexecdir=%{_libexecdir} datadir=%{_datadir} libexecdir=%{_libexecdir} datadir=%{_datadir}
%files %files
%{!?_licensedir:%global license %%doc}
%license COPYING %license COPYING
%{_sbindir}/* %{_sbindir}/*
%{_mandir}/*/*.?.gz %{_mandir}/*/*.?.gz