forked from rhboot/nmbl-poc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nmbl-builder.spec.in
76 lines (65 loc) · 2.07 KB
/
nmbl-builder.spec.in
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
68
69
70
71
72
73
74
75
76
%global debug_package %{nil}
%global kver %{expand:%(rpm -q kernel-core --qf '%%{VERSION}\\n' | tail -n 1 )}
%global krel %{expand:%(rpm -q kernel-core --qf '%%{RELEASE}\\n' | tail -n 1 )}
Summary: nmbl proof of concept as a package
Name: nmbl-builder
Version: @@VERSION@@
Release: @@RELEASE@@%{?dist}
Group: System Environment/Base
License: GPLv3
URL: https://github.com/rhboot/nmbl-poc
BuildRequires: binutils
BuildRequires: btrfs-progs
BuildRequires: dhcp-client
BuildRequires: dracut
BuildRequires: dracut-nmbl
BuildRequires: dracut-network
BuildRequires: efi-srpm-macros
BuildRequires: findutils
BuildRequires: git
BuildRequires: grub2-emu
BuildRequires: grub2-tools
BuildRequires: grub2-tools-minimal
BuildRequires: kernel-core
BuildRequires: kernel-modules
BuildRequires: kernel-modules-core
BuildRequires: kexec-tools
BuildRequires: keyutils
BuildRequires: lvm2
BuildRequires: make
BuildRequires: openssh-clients
BuildRequires: pesign
BuildRequires: systemd-boot
BuildRequires: systemd-networkd
BuildRequires: systemd-ukify
Source0: nmbl-builder-%{VERSION}.tar.xz
%description
nmbl-poc is a proof of concept for a bootloader for UEFI machines based on
the linux kernel and grub-emu, using either switchroot or kexec.
%package -n nmbl
Summary: nmbl proof of concept as a package
Version: %{kver}
Release: %{krel}
%description -n nmbl
nmbl-poc is a proof of concept for a bootloader for UEFI machines based on
the linux kernel and grub-emu, using either switchroot or kexec.
%prep
%autosetup -S git_am
%build
make nmbl-cloud.uki
%pesign -s -i nmbl-cloud.uki -o nmbl-cloud.signed.uki
mv nmbl-cloud.signed.uki nmbl-cloud.uki
make nmbl-megalith.uki
%pesign -s -i nmbl-megalith.uki -o nmbl-megalith.signed.uki
mv nmbl-megalith.signed.uki nmbl-megalith.uki
make nmbl-workstation.uki
%pesign -s -i nmbl-workstation.uki -o nmbl-workstation.signed.uki
mv nmbl-workstation.signed.uki nmbl-workstation.uki
%install
%make_install ESPDIR="%{efi_esp_dir}"
%files -n nmbl
%defattr(-,root,root,-)
%{efi_esp_dir}/*.uki
%changelog
* Fri Mar 17 2023 Peter Jones <[email protected]> - 0-0
- Yeet a spec file into the world