-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathkernel-install-tools.spec
67 lines (56 loc) · 1.83 KB
/
kernel-install-tools.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#
# spec file for package kernel-install-tools
#
# Copyright (c) 2022 SUSE LLC
#
# 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: kernel-install-tools
Version: 0.3
Release: 0
Summary: Useful tools for installing self-built kernels
Group: Development/Tools/Other
License: GPL-2.0-only
URL: https://github.com/jeffmahoney/kernel-install-tools
Source: %{name}-%{version}.tar.xz
Source1: %{name}-rpmlintrc
Requires: openssl
%ifarch ia64 %ix86 x86_64 aarch64 %arm riscv64
Requires: mozilla-nss-tools
Requires: pesign
%else
Requires: kernel-default-devel
%endif
%description
A collection of tools useful for installing self-built kernels.
In addition to the baseline /sbin/installkernel, this package includes
several tools for properly signing and installing kernels and certificates
for use on systems with UEFI Secure Boot enabled.
%prep
%setup -q
%build
%install
%make_install
%if 0%{?usrmerged}
mv %{buildroot}/sbin/installkernel %{buildroot}/usr/sbin/installkernel
%endif
%files
%license COPYING
%doc README.md
%{_bindir}/sbtool-genkey
%{_bindir}/sbtool-sign-kernel
%{_sbindir}/sbtool-enroll-key
%if 0%{?usrmerged}
%{_sbindir}/installkernel
%else
/sbin/installkernel
%endif
%changelog