Use efi-rpm-macros for efi macro definitions
- Use %%{efi} and similar macros from efi-rpm-macros - Use '%%autosetup -S git' now that it imports patches without rewriting the commit message. - Fix some URLs maybe. Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
parent
3801634cda
commit
ba384ecc89
@ -1,25 +1,22 @@
|
|||||||
%define efivar_version 35-1
|
%define efivar_version 35-2
|
||||||
|
|
||||||
Summary: EFI Boot Manager
|
Summary: EFI Boot Manager
|
||||||
Name: efibootmgr
|
Name: efibootmgr
|
||||||
Version: 16
|
Version: 16
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://github.com/rhinstaller/%{name}/
|
URL: https://github.com/rhboot/%{name}/
|
||||||
BuildRequires: git, popt-devel
|
BuildRequires: efi-rpm-macros git popt-devel
|
||||||
BuildRequires: efivar-libs >= %{efivar_version}
|
BuildRequires: efivar-libs >= %{efivar_version}
|
||||||
BuildRequires: efivar-devel >= %{efivar_version}
|
BuildRequires: efivar-devel >= %{efivar_version}
|
||||||
# EFI/UEFI don't exist on PPC
|
ExclusiveArch: %{efi}
|
||||||
ExclusiveArch: %{ix86} x86_64 aarch64 arm
|
|
||||||
|
|
||||||
# for RHEL / Fedora when efibootmgr was part of the elilo package
|
# for RHEL / Fedora when efibootmgr was part of the elilo package
|
||||||
Conflicts: elilo <= 3.6-6
|
Conflicts: elilo <= 3.6-6
|
||||||
Obsoletes: elilo <= 3.6-6
|
Obsoletes: elilo <= 3.6-6
|
||||||
|
|
||||||
Source0: https://github.com/rhinstaller/%{name}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2
|
Source0: https://github.com/rhboot/%{name}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2
|
||||||
|
|
||||||
%global efidir %(eval echo $(grep ^ID= /etc/os-release | sed -e 's/^ID=//' -e 's/rhel/redhat/'))
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{name} displays and allows the user to edit the Intel Extensible
|
%{name} displays and allows the user to edit the Intel Extensible
|
||||||
@ -28,26 +25,17 @@ information about EFI can be found at
|
|||||||
http://developer.intel.com/technology/efi/efi.htm and http://uefi.org/.
|
http://developer.intel.com/technology/efi/efi.htm and http://uefi.org/.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -S git
|
||||||
git init
|
git config --local --add efibootmgr.efidir %{efi_vendor}
|
||||||
git config user.email "example@example.com"
|
|
||||||
git config user.name "RHEL Ninjas"
|
|
||||||
git add .
|
|
||||||
git commit -a -q -m "%{version} baseline."
|
|
||||||
git am %{patches} </dev/null
|
|
||||||
git config --unset user.email
|
|
||||||
git config --unset user.name
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?_smp_mflags} CFLAGS='%{optflags}' LDFLAGS='%{build_ldflags}' \
|
%make_build CFLAGS='%{optflags}' LDFLAGS='%{build_ldflags}'
|
||||||
EFIDIR=%{efidir}
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
%make_install EFIDIR=%{efidir} libdir=%{_libdir} \
|
%make_install libdir=%{_libdir} bindir=%{_bindir} mandir=%{_mandir} \
|
||||||
bindir=%{_bindir} mandir=%{_mandir} localedir=%{_datadir}/locale/ \
|
localedir=%{_datadir}/locale/ includedir=%{_includedir} \
|
||||||
includedir=%{_includedir} libexecdir=%{_libexecdir} \
|
libexecdir=%{_libexecdir} datadir=%{_datadir}
|
||||||
datadir=%{_datadir}
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -56,8 +44,14 @@ rm -rf %{buildroot}
|
|||||||
%{_sbindir}/*
|
%{_sbindir}/*
|
||||||
%{_mandir}/*/*.?.gz
|
%{_mandir}/*/*.?.gz
|
||||||
%doc README
|
%doc README
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed May 02 2018 Peter Jones <pjones@redhat.com> - 16-2
|
||||||
|
- Use %%{efi} and similar macros from efi-rpm-macros
|
||||||
|
- Use '%%autosetup -S git' now that it imports patches without rewriting
|
||||||
|
the commit message.
|
||||||
|
- Fix some URLs maybe.
|
||||||
|
|
||||||
* Mon Apr 09 2018 Peter Jones <pjones@redhat.com> - 16-1
|
* Mon Apr 09 2018 Peter Jones <pjones@redhat.com> - 16-1
|
||||||
- efibootmgr 16
|
- efibootmgr 16
|
||||||
- better coverity and clang-analyzer support
|
- better coverity and clang-analyzer support
|
||||||
|
Loading…
Reference in New Issue
Block a user