mokutil/mokutil.spec
2019-09-30 11:04:46 -04:00

70 lines
1.5 KiB
RPMSpec

Name: mokutil
Version: 0.3.0
Release: 11
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-Fix-the-potential-buffer-overflow.patch
Patch0002: 0002-Fix-the-32bit-signedness-comparison.patch
Patch0003: 0003-Build-with-fshort-wchar-so-toggle-passwords-work-rig.patch
Patch0004: 0004-Don-t-allow-sha1-on-the-mokutil-command-line.patch
Patch0005: 0005-Make-all-efi_guid_t-const.patch
Patch0006: 0006-mokutil-be-explicit-about-file-modes-in-all-cases.patch
Patch0007: 0007-Add-bash-completion-file.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
* Fri Aug 23 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:0.3.0-11
- Package init