2020-05-13 09:44:04 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package dbxtool
|
|
|
|
|
#
|
2022-06-23 09:21:50 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2020-05-13 09:44:04 +00:00
|
|
|
#
|
|
|
|
|
# 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 https://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: dbxtool
|
2020-08-16 13:12:30 +00:00
|
|
|
Version: 8
|
2020-05-13 09:44:04 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Secure Boot DBX updater
|
|
|
|
|
License: GPL-2.0-only
|
|
|
|
|
URL: https://github.com/rhboot/dbxtool
|
|
|
|
|
BuildRequires: efivar-devel >= 26-1
|
|
|
|
|
BuildRequires: popt-devel
|
|
|
|
|
Requires: efivar >= 26-1
|
|
|
|
|
Source0: https://github.com/rhboot/dbxtool/releases/download/dbxtool-%version/dbxtool-%version.tar.bz2
|
|
|
|
|
Patch0: dbxtool-fixes.patch
|
2021-09-01 14:48:53 +00:00
|
|
|
Patch1: harden_dbxtool.service.patch
|
2022-06-23 09:21:50 +00:00
|
|
|
Patch2: dbxtool-FORTIFY_SOURCE.patch
|
2020-05-13 09:44:04 +00:00
|
|
|
%systemd_requires
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This package contains DBX updates for UEFI Secure Boot.
|
|
|
|
|
|
|
|
|
|
%prep
|
2022-06-23 09:21:50 +00:00
|
|
|
%autosetup -p1
|
2020-05-13 09:44:04 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
make CFLAGS="%optflags"
|
|
|
|
|
|
|
|
|
|
%install
|
2022-06-23 09:21:50 +00:00
|
|
|
%make_install
|
2020-05-13 09:44:04 +00:00
|
|
|
|
|
|
|
|
rm %buildroot/usr/share/doc/dbxtool/COPYING
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
%service_add_pre dbxtool.service
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%service_add_post dbxtool.service
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
%service_del_preun dbxtool.service
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%service_del_postun dbxtool.service
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{_bindir}/dbxtool
|
|
|
|
|
%doc %{_mandir}/man1/*
|
|
|
|
|
%dir %{_datadir}/dbxtool/
|
|
|
|
|
%{_datadir}/dbxtool/*.bin
|
|
|
|
|
%{_unitdir}/dbxtool.service
|
|
|
|
|
|
|
|
|
|
%changelog
|