forked from ublue-os/hwe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ublue-os-nvidia-addons.spec
78 lines (60 loc) · 3.79 KB
/
ublue-os-nvidia-addons.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
68
69
70
71
72
73
74
75
76
77
78
Name: ublue-os-nvidia-addons
Version: 0.8
Release: 1%{?dist}
Summary: Additional files for nvidia driver support
License: MIT
URL: https://github.com/ublue-os/nvidia
BuildArch: noarch
Supplements: mokutil policycoreutils
Source0: nvidia-container-runtime.repo
Source1: eyecantcu-supergfxctl.repo
Source2: config-rootless.toml
Source3: nvidia-container.pp
Source4: environment
%description
Adds various runtime files for nvidia support.
%prep
%setup -q -c -T
%build
# Have different name for *.der in case kmodgenca is needed for creating more keys
install -Dm0644 %{SOURCE0} %{buildroot}%{_datadir}/ublue-os/%{_sysconfdir}/yum.repos.d/nvidia-container-runtime.repo
install -Dm0644 %{SOURCE1} %{buildroot}%{_datadir}/ublue-os/%{_sysconfdir}/yum.repos.d/eyecantcu-supergfxctl.repo
install -Dm0644 %{SOURCE2} %{buildroot}%{_datadir}/ublue-os/%{_sysconfdir}/nvidia-container-runtime/config-rootless.toml
install -Dm0644 %{SOURCE3} %{buildroot}%{_datadir}/ublue-os/%{_datadir}/selinux/packages/nvidia-container.pp
install -Dm0644 %{SOURCE4} %{buildroot}%{_datadir}/ublue-os/%{_sysconfdir}/sway/environment
sed -i 's@enabled=1@enabled=0@g' %{buildroot}%{_datadir}/ublue-os/%{_sysconfdir}/yum.repos.d/{eyecantcu-supergfxctl,nvidia-container-runtime}.repo
install -Dm0644 %{buildroot}%{_datadir}/ublue-os/%{_sysconfdir}/yum.repos.d/nvidia-container-runtime.repo %{buildroot}%{_sysconfdir}/yum.repos.d/nvidia-container-runtime.repo
install -Dm0644 %{buildroot}%{_datadir}/ublue-os/%{_sysconfdir}/yum.repos.d/eyecantcu-supergfxctl.repo %{buildroot}%{_sysconfdir}/yum.repos.d/eyecantcu-supergfxctl.repo
install -Dm0644 %{buildroot}%{_datadir}/ublue-os/%{_sysconfdir}/nvidia-container-runtime/config-rootless.toml %{buildroot}%{_sysconfdir}/nvidia-container-runtime/config-rootless.toml
install -Dm0644 %{buildroot}%{_datadir}/ublue-os/%{_datadir}/selinux/packages/nvidia-container.pp %{buildroot}%{_datadir}/selinux/packages/nvidia-container.pp
%files
%attr(0644,root,root) %{_datadir}/ublue-os/%{_sysconfdir}/yum.repos.d/nvidia-container-runtime.repo
%attr(0644,root,root) %{_datadir}/ublue-os/%{_sysconfdir}/yum.repos.d/eyecantcu-supergfxctl.repo
%attr(0644,root,root) %{_datadir}/ublue-os/%{_sysconfdir}/nvidia-container-runtime/config-rootless.toml
%attr(0644,root,root) %{_datadir}/ublue-os/%{_datadir}/selinux/packages/nvidia-container.pp
%attr(0644,root,root) %{_datadir}/ublue-os/%{_sysconfdir}/sway/environment
%attr(0644,root,root) %{_sysconfdir}/yum.repos.d/nvidia-container-runtime.repo
%attr(0644,root,root) %{_sysconfdir}/yum.repos.d/eyecantcu-supergfxctl.repo
%attr(0644,root,root) %{_sysconfdir}/nvidia-container-runtime/config-rootless.toml
%attr(0644,root,root) %{_datadir}/selinux/packages/nvidia-container.pp
%changelog
* Sat Aug 3 2023 RJ Trujillo <[email protected]> - 0.8
- Add new copr for supergfxctl
* Sat Jun 17 2023 Benjamin Sherman <[email protected]> - 0.7
- Remove MOK keys; now provided by ublue-os-akmods-addons
* Sat Jun 17 2023 RJ Trujillo <[email protected]> - 0.6
- Add supergfxctl-plasmoid COPR
* Sun May 17 2023 Benjamin Sherman <[email protected]> - 0.5
- Add new ublue akmod public key for MOK enrollment
* Sun Mar 26 2023 Joshua Stone <[email protected]> - 0.4
- Add asus-linux COPR
* Fri Feb 24 2023 Joshua Stone <[email protected]> - 0.3
- Add sway environment file
- Put ublue-os modifications into a separate data directory
* Thu Feb 16 2023 Joshua Stone <[email protected]> - 0.2
- Add nvidia-container-runtime repo
- Add nvidia-container-runtime selinux policy file
- Re-purpose into a general-purpose add-on package
- Update URL to point to ublue-os project
* Fri Feb 03 2023 Joshua Stone <[email protected]> - 0.1
- Add key for enrolling kernel modules in alpha builds