forked from negativo17/nvidia-kmod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nvidia-kmod.spec
217 lines (156 loc) · 7.03 KB
/
nvidia-kmod.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
# buildforkernels macro hint: when you build a new version or a new release
# that contains bugfixes or other improvements then you must disable the
# "buildforkernels newest" macro for just that build; immediately after
# queuing that build enable the macro again for subsequent builds; that way
# a new akmod package will only get build when a new one is actually needed
%define buildforkernels akmod
%global debug_package %{nil}
%global zipmodules 1
%define __spec_install_post \
%{__arch_install_post}\
%{__os_install_post}\
%{__mod_compress_install_post}
%define __mod_compress_install_post \
if [ "%{zipmodules}" -eq "1" ] && [ $kernel_version ]; then \
find %{buildroot}/usr/lib/modules/ -type f -name '*.ko' | xargs xz; \
fi
Name: nvidia-kmod
Version: 455.46.04
Release: 1%{?dist}
Summary: NVIDIA display driver kernel module
Epoch: 3
License: NVIDIA License
URL: http://www.nvidia.com/object/unix.html
ExclusiveArch: x86_64
Source0: %{name}-%{version}-x86_64.tar.xz
Source11: nvidia-kmodtool-excludekernel-filterfile
# get the needed BuildRequires (in parts depending on what we build for)
BuildRequires: kmodtool
# kmodtool does its magic here
%{expand:%(kmodtool --target %{_target_cpu} --repo rpmfusion --kmodname %{name} --filterfile %{SOURCE11} --obsolete-name nvidia-newest --obsolete-version "%{version}" %{?buildforkernels:--%{buildforkernels}} %{?kernels:--for-kernels "%{?kernels}"} 2>/dev/null) }
%description
The NVidia %{version} display driver kernel module for kernel %{kversion}.
%prep
# error out if there was something wrong with kmodtool
%{?kmodtool_check}
# print kmodtool output for debugging purposes:
kmodtool --target %{_target_cpu} --repo rpmfusion --kmodname %{name} --filterfile %{SOURCE11} --obsolete-name nvidia-newest --obsolete-version "%{version}" %{?buildforkernels:--%{buildforkernels}} %{?kernels:--for-kernels "%{?kernels}"} 2>/dev/null
%autosetup -p1 -n %{name}-%{version}-x86_64
for kernel_version in %{?kernel_versions}; do
mkdir _kmod_build_${kernel_version%%___*}
cp -fr kernel/* _kmod_build_${kernel_version%%___*}
done
%build
for kernel_version in %{?kernel_versions}; do
pushd _kmod_build_${kernel_version%%___*}/
make %{?_smp_mflags} \
IGNORE_XEN_PRESENCE=1 \
IGNORE_PREEMPT_RT_PRESENCE=1 \
IGNORE_CC_MISMATCH=1 \
SYSSRC="${kernel_version##*___}" \
module
popd
done
%install
for kernel_version in %{?kernel_versions}; do
mkdir -p %{buildroot}/%{kmodinstdir_prefix}/${kernel_version%%___*}/%{kmodinstdir_postfix}/
install -p -m 0755 _kmod_build_${kernel_version%%___*}/*.ko \
%{buildroot}/%{kmodinstdir_prefix}/${kernel_version%%___*}/%{kmodinstdir_postfix}/
done
%{?akmod_install}
%changelog
* Wed Dec 16 2020 Christian Birk <[email protected]> - 3:455.46.04-1
- Update to 455.46.04
* Mon Nov 23 2020 Christian Birk <[email protected]> - 3:455.46.02-1
- Update to 455.46.02
* Thu Nov 12 01:38:33 CET 2020 Christian Birk <[email protected]> - 3:455.46.01-1
- Update to 455.46.01
* Tue Nov 3 2020 Christian Birk <[email protected]> - 3:455.34.01-1
- Update to 455.34.01
* Tue Oct 20 2020 Christian Birk <[email protected]> - 3:455.26.02-1
- Update to 455.26.02
* Sat Oct 10 2020 Christian Birk <[email protected]> - 3:455.26.01-1
- Update to 455.26.01
* Wed Sep 30 2020 Christian Birk <[email protected]> - 3:455.22.04-1
- Update to 455.22.04
* Thu Aug 20 2020 Simone Caronni <[email protected]> - 3:450.66-1
- Update to 450.66.
* Fri Jul 10 2020 Simone Caronni <[email protected]> - 3:450.57-1
- Update to 450.57.
* Thu Jun 25 2020 Simone Caronni <[email protected]> - 3:440.100-1
- Update to 440.100.
* Thu Apr 09 2020 Simone Caronni <[email protected]> - 3:440.82-1
- Update to 440.82.
* Fri Feb 28 2020 Simone Caronni <[email protected]> - 3:440.64-1
- Update to 440.64.
* Tue Feb 04 2020 Simone Caronni <[email protected]> - 3:440.59-1
- Update to 440.59.
* Sat Dec 14 2019 Simone Caronni <[email protected]> - 3:440.44-1
- Update to 440.44.
* Sat Nov 30 2019 Simone Caronni <[email protected]> - 3:440.36-1
- Update to 440.36.
* Sat Nov 09 2019 Simone Caronni <[email protected]> - 3:440.31-1
- Update to 440.31.
* Thu Oct 17 2019 Simone Caronni <[email protected]> - 3:440.26-1
- Update to 440.26.
* Tue Sep 03 2019 Simone Caronni <[email protected]> - 3:435.21-1
- Update to 435.21.
* Thu Aug 22 2019 Simone Caronni <[email protected]> - 3:435.17-1
- Update to 435.17.
* Wed Jul 31 2019 Simone Caronni <[email protected]> - 3:430.40-1
- Update to 430.40.
* Fri Jul 12 2019 Simone Caronni <[email protected]> - 3:430.34-1
- Update to 430.34.
* Wed Jun 12 2019 Simone Caronni <[email protected]> - 3:430.26-1
- Update to 430.26.
* Sat May 18 2019 Simone Caronni <[email protected]> - 3:430.14-1
- Update to 430.14.
* Thu May 09 2019 Simone Caronni <[email protected]> - 3:418.74-1
- Update to 418.74.
* Sun Mar 24 2019 Simone Caronni <[email protected]> - 3:418.56-1
- Update to 418.56.
* Fri Feb 22 2019 Simone Caronni <[email protected]> - 3:418.43-1
- Update to 418.43.
- Trim changelog.
* Thu Jan 17 2019 Simone Caronni <[email protected]> - 3:415.27-1
- Update to 415.27.
* Thu Dec 20 2018 Simone Caronni <[email protected]> - 3:415.25-1
- Update to 415.25.
* Fri Dec 14 2018 Simone Caronni <[email protected]> - 3:415.23-1
- Update to 415.23.
* Sun Dec 09 2018 Simone Caronni <[email protected]> - 3:415.22-1
- Update to 415.22.
* Thu Nov 22 2018 Simone Caronni <[email protected]> - 3:415.18-1
- Update to 415.18.
* Mon Nov 19 2018 Simone Caronni <[email protected]> - 3:410.78-1
- Update to 410.78.
* Fri Oct 26 2018 Simone Caronni <[email protected]> - 3:410.73-1
- Update to 410.73.
* Wed Oct 17 2018 Simone Caronni <[email protected]> - 3:410.66-1
- Update to 410.66.
* Sat Sep 22 2018 Simone Caronni <[email protected]> - 3:410.57-1
- Update to 410.57.
* Wed Aug 22 2018 Simone Caronni <[email protected]> - 3:396.54-1
- Update to 396.54.
* Sun Aug 19 2018 Simone Caronni <[email protected]> - 3:396.51-1
- Update to 396.51.
* Fri Jul 20 2018 Simone Caronni <[email protected]> - 3:396.45-1
- Update to 396.45.
* Fri Jun 01 2018 Simone Caronni <[email protected]> - 3:396.24-1
- Update to 396.24, x86_64 only.
* Tue May 22 2018 Simone Caronni <[email protected]> - 3:390.59-1
- Update to 390.59.
* Tue Apr 03 2018 Simone Caronni <[email protected]> - 3:390.48-1
- Update to 390.48.
* Wed Mar 21 2018 Simone Caronni <[email protected]> - 3:390.42-2
- Re-add kernel 4.15 patch.
* Thu Mar 15 2018 Simone Caronni <[email protected]> - 3:390.42-1
- Update to 390.42.
* Tue Feb 27 2018 Simone Caronni <[email protected]> - 3:390.25-3
- Update Epoch so packages do not overlap with RPMFusion.
* Wed Feb 21 2018 Simone Caronni <[email protected]> - 2:390.25-2
- Add kernel 4.15 patch.
* Tue Jan 30 2018 Simone Caronni <[email protected]> - 2:390.25-1
- Update to 390.25.
* Fri Jan 19 2018 Simone Caronni <[email protected]> - 2:390.12-1
- Update to 390.12.