|
|
8c8771 |
Name: dbxtool
|
|
|
8c8771 |
Version: 7
|
|
|
8c8771 |
Release: 1%{?dist}
|
|
|
8c8771 |
Summary: Secure Boot DBX updater
|
|
|
8c8771 |
License: GPLv2
|
|
|
8c8771 |
URL: https://github.com/vathpela/dbxtool
|
|
|
8c8771 |
ExclusiveArch: i386 x86_64 aarch64
|
|
|
8c8771 |
BuildRequires: popt-devel git systemd
|
|
|
8c8771 |
BuildRequires: efivar-devel >= 26-1
|
|
|
8c8771 |
Requires: efivar >= 26-1
|
|
|
8c8771 |
Requires(post): systemd
|
|
|
8c8771 |
Requires(preun):systemd
|
|
|
8c8771 |
Source0: https://github.com/vathpela/dbxtool/releases/download/dbxtool-%{version}/dbxtool-%{version}.tar.bz2
|
|
|
8c8771 |
|
|
|
8c8771 |
%description
|
|
|
8c8771 |
This package contains DBX updates for UEFI Secure Boot.
|
|
|
8c8771 |
|
|
|
8c8771 |
%prep
|
|
|
8c8771 |
%setup -q -n %{name}-%{version}
|
|
|
8c8771 |
git init
|
|
|
8c8771 |
git config user.email "%{name}-owner@fedoraproject.org"
|
|
|
8c8771 |
git config user.name "Fedora Ninjas"
|
|
|
8c8771 |
git add .
|
|
|
8c8771 |
git commit -a -q -m "%{version} baseline."
|
|
|
8c8771 |
git am %{patches}
|
|
|
8c8771 |
git config --unset user.email
|
|
|
8c8771 |
git config --unset user.name
|
|
|
8c8771 |
|
|
|
8c8771 |
%build
|
|
|
8c8771 |
make PREFIX=%{_prefix} LIBDIR=%{_libdir} CFLAGS="$RPM_OPT_FLAGS"
|
|
|
8c8771 |
|
|
|
8c8771 |
%install
|
|
|
8c8771 |
rm -rf $RPM_BUILD_ROOT
|
|
|
8c8771 |
mkdir -p %{buildroot}/%{_libdir}
|
|
|
8c8771 |
make PREFIX=%{_prefix} LIBDIR=%{_libdir} INSTALLROOT=%{buildroot} \
|
|
|
8c8771 |
install
|
|
|
8c8771 |
rm -f %{buildroot}/%{_docdir}/%{name}/COPYING
|
|
|
8c8771 |
|
|
|
8c8771 |
%post
|
|
|
8c8771 |
%systemd_post dbxtool.service
|
|
|
8c8771 |
|
|
|
8c8771 |
%preun
|
|
|
8c8771 |
%systemd_preun dbxtool.service
|
|
|
8c8771 |
|
|
|
8c8771 |
%files
|
|
|
8c8771 |
%{!?_licensedir:%global license %%doc}
|
|
|
8c8771 |
%license COPYING
|
|
|
8c8771 |
%{_bindir}/dbxtool
|
|
|
8c8771 |
%doc %{_mandir}/man1/*
|
|
|
8c8771 |
%dir %{_datadir}/dbxtool/
|
|
|
8c8771 |
%{_datadir}/dbxtool/*.bin
|
|
|
8c8771 |
%{_unitdir}/dbxtool.service
|
|
|
8c8771 |
|
|
|
8c8771 |
%changelog
|
|
|
8c8771 |
* Thu Mar 30 2017 Peter Jones <pjones@redhat.com> - 7-1
|
|
|
8c8771 |
- Initial import for RHEL
|
|
|
8c8771 |
Resolves: rhbz#1078990
|