mokutil/mokutil.spec
Chenxi Mao 05417e978e Upgrade mokutil to 0.6.0
SBAT revocation update support delivered in mokutil 0.6.0
as well as shim-15.6 invoke "mokutil --set-sbat-policy latest"
during the post script installation stage.
So upgrade the version to 0.6.0 to make sure shim-15.6 can be
upgraded smoothly.

On the other hand, there are 4 patches delivered after 0.6.0 release
to fix some bugs, apply these patches as well.

*e498f64 Fix leak of fd in mok_get_variable()
*d978c18 Fix leak of list in delete_data_from_req_var()
*04791c2 mokutil bugfix: del unused opt "-s"
*82694cb Show usage instead of aborting on bad flags

Git-commit: e498f6460ff5aea6a7cd61a33087d03e88a2f52a
Git-commit: d978c18f61b877afaab45a82d260b525423b8248
Git-commit: 04791c29e198b18808bca519267e31c8d3786a08
Git-commit: 82694cb1ce3b29c3705c25ae4cea3d07fe57b558
Link: https://github.com/lcp/mokutil/
Signed-off-by: Chenxi Mao <chenxi.mao@suse.com>
2022-06-29 20:11:44 +08:00

78 lines
1.8 KiB
RPMSpec

Name: mokutil
Version: 0.6.0
Release: 1
Epoch: 1
Summary: Tools for manipulating machine owner keys
License: GPLv3+
URL: https://github.com/lcp/mokutil
Source0: https://github.com/lcp/mokutil/archive/%{version}.tar.gz
Patch0001: 0001-Show-usage-instead-of-aborting-on-bad-flags.patch
Patch0002: 0002-mokutil-bugfix-del-unused-opt-s.patch
Patch0003: 0003-Fix-leak-of-list-in-delete_data_from_req_var.patch
Patch0004: 0004-Fix-leak-of-fd-in-mok_get_variable.patch
BuildRequires:gcc autoconf automake gnu-efi git openssl-devel openssl efivar-devel >= 31-1 git
Conflicts: shim < 0.8-1
Obsoletes: mokutil < 0.2.0
%description
The utility to manipulate machines owner keys which managed in shim.
%package help
Summary: Documents for %{name}
Buildarch: noarch
Requires: man info
%description help
Man page and other related documents for %{name}.
%prep
%autosetup -n %{name}-%{version} -p1 -Sgit
%build
./autogen.sh
%configure
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
%make_install
%check
make check
%pre
%preun
%post
%postun
%files
%defattr(-,root,root)
%license COPYING
%{_bindir}/mokutil
%{_datadir}/bash-completion/completions/mokutil
%files help
%defattr(-,root,root)
%doc README
%{_mandir}/man1/*
%changelog
* Wed Jun 29 2022 Chenxi Mao <chenxi.mao@suse.com> - 1:0.6.0-1
- Update to 0.6.0 with latest bug fix
* Mon Dec 27 2021 openEuler Buildteam <buildteam@openeuler.org> - 1:0.5.0-1
- Update to 0.5.0
* Mon Jun 22 2020 openEuler Buildteam <buildteam@openeuler.org> - 1:0.4.0-2
- fix build err of -Waddress-of-packed-member for gcc update to 9.3.1
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 1:0.4.0-1
- Update to 0.4.0
* Fri Aug 23 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:0.3.0-11
- Package init