-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathakmods-keys.spec
57 lines (38 loc) · 1.29 KB
/
akmods-keys.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
Name: akmods-keys
Version: 0.0.2
Release: 8%{?dist}
Summary: Keys for akmods
License: MIT
URL: http://rpmfusion.org/Packaging/KernelModules/Akmods
# We are upstream, these files are maintained directly in pkg-git
Source0: public_key.der
Source1: private_key.priv
Source2: macros.kmodtool
BuildArch: noarch
Supplements: akmods
%description
Akmods ostree keys for signing modules.
%prep
%setup -q -c -T
%build
# Nothing to build
%install
mkdir -p %{buildroot}%{_sysconfdir}/pki/%{name}/certs \
%{buildroot}%{_sysconfdir}/pki/%{name}/private \
%{buildroot}%{_sysconfdir}/rpm/
install -pm 0640 %{SOURCE0} %{buildroot}%{_sysconfdir}/pki/%{name}/certs/
install -pm 0640 %{SOURCE1} %{buildroot}%{_sysconfdir}/pki/%{name}/private/
install -pm 0640 %{SOURCE2} %{buildroot}%{_sysconfdir}/rpm/
%pre
%post
%preun
%postun
%files
%attr(0644,root,root) %{_sysconfdir}/pki/%{name}/certs
%attr(0644,root,root) %{_sysconfdir}/pki/%{name}/private
%attr(0644,root,root) %{_sysconfdir}/rpm/macros.kmodtool
%changelog
* Tue Jun 28 2022 Christian Mainka <[email protected]> - 0.0.2
- Used macros.kmodtool to avoid filename conflicts
* Mon Jun 27 2022 Christian Mainka <[email protected]> - 0.0.1
- First Version