-
Notifications
You must be signed in to change notification settings - Fork 3
/
nvidia-persistenced.spec
436 lines (298 loc) · 13.7 KB
/
nvidia-persistenced.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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
%undefine _ld_as_needed
Name: nvidia-persistenced
Epoch: 3
Version: 565.57.01
Release: 1%{?dist}
Summary: Daemon for maintaining persistent driver state
License: MIT and GPLv2+
URL: https://github.com/NVIDIA/%{name}
#Source0: %url/archive/%{version}/%{name}-%{version}.tar.gz
Source0: https://download.nvidia.com/XFree86/%{name}/%{name}-%{version}.tar.bz2
# This package is also available for 390xx/340xx
# So enable i686 and armv7hl
ExclusiveArch: x86_64 i686 armv7hl aarch64
BuildRequires: gcc
BuildRequires: m4
# https://fedoraproject.org/wiki/Changes/SunRPCRemoval
BuildRequires: libtirpc-devel
Buildrequires: systemd
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%description
A daemon for maintaining persistent driver state,
specifically for use by the NVIDIA Linux driver.
%prep
%setup -q
%build
export CFLAGS="%{optflags} -I%{_includedir}/tirpc"
export LDFLAGS="%{?__global_ldflags} -ltirpc"
%make_build \
%{_smp_mflags} \
NVDEBUG=1 \
NV_VERBOSE=1 \
STRIP_CMD=true NV_KEEP_UNSTRIPPED_BINARIES=1 \
X_LDFLAGS="-L%{_libdir}" \
CC_ONLY_CFLAGS="%{optflags}"
(cd _out/Linux_*/ ; cp %{name}.unstripped %{name} ; cd -)
%install
%make_install NV_VERBOSE=1 PREFIX=%{_prefix}
#Install the initscript
mkdir -p %{buildroot}%{_unitdir}
install -pm 0644 init/systemd/%{name}.service.template \
%{buildroot}%{_unitdir}/%{name}.service
#Change the daemon running owner
sed -i -e "s/__USER__/root/" %{buildroot}%{_unitdir}/%{name}.service
#Fix perm
chmod -x %{buildroot}%{_mandir}/man1/%{name}.1.*
%post
%systemd_post %{name}.service
%preun
%systemd_preun %{name}.service
%postun
%systemd_postun %{name}.service
%files
%doc README
%license COPYING
%{_unitdir}/%{name}.service
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.*
%changelog
* Tue Oct 22 2024 Leigh Scott <[email protected]> - 3:565.57.01-1
- Update to 565.57.01 beta
* Wed Aug 21 2024 Leigh Scott <[email protected]> - 3:560.35.03-1
- Update to 560.35.03 Release
* Tue Aug 06 2024 Leigh Scott <[email protected]> - 3:560.31.02-1
- Update to 560.31.02 beta
* Sat Aug 03 2024 RPM Fusion Release Engineering <[email protected]> - 3:560.28.03-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Tue Jul 23 2024 Leigh Scott <[email protected]> - 3:560.28.03-1
- Update to 560.28.03 beta
* Tue Jul 02 2024 Leigh Scott <[email protected]> - 3:555.58.02-1
- Update to 555.58.02
* Thu Jun 27 2024 Leigh Scott <[email protected]> - 3:555.58-1
- Update to 555.58 release
* Thu Jun 06 2024 Leigh Scott <[email protected]> - 3:555.52.04-1
- Update to 555.52.04 beta
* Tue May 21 2024 Leigh Scott <[email protected]> - 3:555.42.02-1
- Update to 555.42.02 beta
* Fri Apr 26 2024 Leigh Scott <[email protected]> - 3:550.78-1
- Update to 550.78 release
* Wed Apr 17 2024 Leigh Scott <[email protected]> - 3:550.76-1
- Update to 550.76 release
* Wed Mar 20 2024 Leigh Scott <[email protected]> - 3:550.67-1
- Update to 550.67 release
* Sat Feb 24 2024 Leigh Scott <[email protected]> - 3:550.54.14-1
- Update to 550.54.14 release
* Sun Feb 04 2024 RPM Fusion Release Engineering <[email protected]> - 3:550.40.07-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Wed Jan 24 2024 Leigh Scott <[email protected]> - 3:550.40.07-1
- Update to 550.40.07 beta
* Wed Nov 22 2023 Leigh Scott <[email protected]> - 3:545.29.06-1
- Update to 545.29.06 release
* Tue Oct 31 2023 Leigh Scott <[email protected]> - 3:545.29.02-1
- Update to 545.29.02 release
* Mon Oct 23 2023 Nicolas Chauvet <[email protected]> - 3:545.23.06-2
- rebuilt
* Wed Oct 18 2023 Leigh Scott <[email protected]> - 3:545.23.06-1
- Update to 545.23.06 beta
* Fri Sep 22 2023 Leigh Scott <[email protected]> - 3:535.113.01-1
- Update to 535.113.01
* Tue Aug 22 2023 Leigh Scott <[email protected]> - 3:535.104.05-1
- Update to 535.104.05
* Wed Aug 09 2023 Leigh Scott <[email protected]> - 3:535.98-1
- Update to 535.98
* Thu Aug 03 2023 RPM Fusion Release Engineering <[email protected]> - 3:535.86.05-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jul 18 2023 Leigh Scott <[email protected]> - 3:535.86.05-1
- Update to 535.86.05
* Thu Jun 15 2023 Leigh Scott <[email protected]> - 3:535.54.03-1
- Update to 535.54.03
* Tue May 30 2023 Leigh Scott <[email protected]> - 3:535.43.02-2
- Update to 535.43.02 beta
* Fri Mar 24 2023 Leigh Scott <[email protected]> - 3:530.41.03-1
- Update to 530.41.03
* Sun Mar 05 2023 Leigh Scott <[email protected]> - 3:530.30.02-1
- Update to 530.30.02 beta
* Fri Feb 10 2023 Leigh Scott <[email protected]> - 3:525.89.02-1
- Update to 525.89.02
* Thu Jan 19 2023 Leigh Scott <[email protected]> - 3:525.85.05-1
- Update to 525.85.05
* Thu Jan 05 2023 Leigh Scott <[email protected]> - 3:525.78.01-1
- Update to 525.78.01
* Mon Nov 28 2022 Leigh Scott <[email protected]> - 3:525.60.11-1
- Update to 525.60.11
* Thu Nov 10 2022 Leigh Scott <[email protected]> - 3:525.53-1
- Update to 525.53 beta
* Thu Oct 13 2022 Leigh Scott <[email protected]> - 3:520.56.06-1
- Update to 520.56.06
* Sun Sep 25 2022 Dennnis Gilmore <[email protected]> - 3:515.76-2
- add aarch64 support
* Wed Sep 21 2022 Leigh Scott <[email protected]> - 3:515.76-1
- Update to 515.76
* Mon Aug 08 2022 RPM Fusion Release Engineering <[email protected]> - 3:515.65.01-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild and ffmpeg
5.1
* Thu Aug 04 2022 Leigh Scott <[email protected]> - 3:515.65.01-1
- Update to 515.65.01
* Tue Jun 28 2022 Leigh Scott <[email protected]> - 3:515.57-1
- Update to 515.57
* Wed Jun 01 2022 Leigh Scott <[email protected]> - 3:515.48.07-1
- Update to 515.48.07
* Thu May 12 2022 Leigh Scott <[email protected]> - 3:515.43.04-1
- Update to 515.43.04 beta
* Tue Apr 26 2022 Nicolas Chauvet <[email protected]> - 3:510.68.02-1
- Update to 510.68.02
* Wed Mar 23 2022 Leigh Scott <[email protected]> - 3:510.60.02-1
- Update to 510.60.02 release
* Tue Feb 15 2022 Nicolas Chauvet <[email protected]> - 3:510.54-1
- Update to 510.54
* Thu Feb 10 2022 RPM Fusion Release Engineering <[email protected]> - 3:510.47.03-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Tue Feb 01 2022 Leigh Scott <[email protected]> - 3:510.47.03-1
- Update to 510.47.03 release
* Wed Jan 12 2022 Leigh Scott <[email protected]> - 3:510.39.01-1
- Update to 510.39.01 beta
* Tue Dec 14 2021 Leigh Scott <[email protected]> - 3:495.46-1
- Update to 495.46 release
* Tue Oct 26 2021 Leigh Scott <[email protected]> - 3:495.44-1
- Update to 495.44 release
* Fri Oct 15 2021 Leigh Scott <[email protected]> - 3:495.29.05-1
- Update to 495.29.05 beta
* Tue Sep 21 2021 Leigh Scott <[email protected]> - 3:470.74-1
- Update to 470.74 release
* Wed Aug 11 2021 Leigh Scott <[email protected]> - 3:470.63.01-1
- Update to 470.63.01 release
* Wed Aug 04 2021 RPM Fusion Release Engineering <[email protected]> - 3:470.57.02-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Mon Jul 19 2021 Leigh Scott <[email protected]> - 3:470.57.02-1
- Update to 470.57.02 release
* Wed Jun 23 2021 Leigh Scott <[email protected]> - 3:470.42.01-1
- Update to 470.42.01 beta
* Sat May 22 2021 Leigh Scott <[email protected]> - 3:465.31-1
- Update to 465.31 release
* Fri Apr 30 2021 Leigh Scott <[email protected]> - 3:465.27-1
- Update to 465.27 release
* Thu Apr 15 2021 Leigh Scott <[email protected]> - 3:465.24.02-1
- Update to 465.24.02 release
* Wed Mar 31 2021 Leigh Scott <[email protected]> - 3:465.19.01-1
- Update to 465.19.01 beta
* Fri Mar 19 2021 Leigh Scott <[email protected]> - 3:460.67-1
- Update to 460.67 release
* Thu Feb 25 2021 Leigh Scott <[email protected]> - 3:460.56-1
- Update to 460.56 release
* Thu Feb 04 2021 RPM Fusion Release Engineering <[email protected]> - 3:460.39-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Jan 27 2021 Leigh Scott <[email protected]> - 3:460.39-1
- Update to 460.39 release
* Thu Jan 7 2021 Leigh Scott <[email protected]> - 3:460.32.03-1
- Update to 460.32.03 release
* Wed Dec 16 2020 Leigh Scott <[email protected]> - 3:460.27.04-1
- Update to 460.27.04 beta
* Wed Nov 18 2020 Leigh Scott <[email protected]> - 3:455.45.01-1
- Update to 455.45.01 release
* Thu Oct 29 2020 Leigh Scott <[email protected]> - 3:455.38-1
- Update to 455.38 release
* Wed Oct 14 2020 Nicolas Chauvet <[email protected]> - 3:455.28-2
- Enable arches for legacy 390x/340xx
* Wed Oct 7 2020 Leigh Scott <[email protected]> - 3:455.28-1
- Update to 455.28 release
* Fri Sep 18 2020 Leigh Scott <[email protected]> - 3:455.23.04-1
- Update to 455.23.04 beta
* Wed Aug 19 2020 Leigh Scott <[email protected]> - 3:450.66-1
- Update to 450.66 release
* Thu Jul 09 2020 Leigh Scott <[email protected]> - 3:450.57-1
- Update to 450.57 release
* Wed Jun 24 2020 Leigh Scott <[email protected]> - 3:450.51-1
- Update to 450.51 beta
* Tue Apr 07 2020 leigh123linux <[email protected]> - 3:440.82-1
- Update to 440.82 release
* Fri Feb 28 2020 leigh123linux <[email protected]> - 3:440.64-1
- Update to 440.64 release
* Mon Feb 03 2020 Leigh Scott <[email protected]> - 3:440.59-1
- Update to 440.59 release
* Wed Dec 11 2019 Leigh Scott <[email protected]> - 3:440.44-1
- Update to 440.44 release
* Fri Nov 22 2019 Leigh Scott <[email protected]> - 3:440.36-1
- Update to 440.36 release
* Mon Nov 04 2019 Leigh Scott <[email protected]> - 3:440.31-1
- Update to 440.31 release
* Thu Oct 17 2019 Leigh Scott <[email protected]> - 3:440.26-1
- Update to 440.26 beta
* Fri Aug 30 2019 Leigh Scott <[email protected]> - 3:435.21-1
- Update to 435.21 release
* Tue Aug 13 2019 Leigh Scott <[email protected]> - 3:435.17-1
- Update to 435.17 beta
* Sat Aug 10 2019 RPM Fusion Release Engineering <[email protected]> - 3:430.40-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Mon Jul 29 2019 Leigh Scott <[email protected]> - 3:430.40-1
- Update to 430.40 release
* Tue Jul 16 2019 Leigh Scott <[email protected]> - 3:430.34-1
- Update to 430.34 release
* Mon Jun 17 2019 Nicolas Chauvet <[email protected]> - 3:430.26-2
- Add back on armv7hl/aarch64 for 390/l4t
* Tue Jun 11 2019 Leigh Scott <[email protected]> - 3:430.26-1
- Update to 430.26 release
* Tue May 14 2019 Leigh Scott <[email protected]> - 3:430.14-1
- Update to 430.14 release
* Wed Apr 24 2019 Leigh Scott <[email protected]> - 3:430.09-1
- Update to 430.09 beta
* Thu Mar 21 2019 Leigh Scott <[email protected]> - 3:418.56-1
- Update to 418.56 release
* Tue Mar 05 2019 RPM Fusion Release Engineering <[email protected]> - 3:418.43-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Feb 22 2019 Leigh Scott <[email protected]> - 3:418.43-1
- Update to 418.43 release
* Fri Feb 08 2019 Leigh Scott <[email protected]> - 3:418.30-1
- Update to 418.30 beta
* Wed Jan 16 2019 Leigh Scott <[email protected]> - 3:415.27-1
- Update to 415.27 release
* Wed Dec 26 2018 Leigh Scott <[email protected]> - 3:415.25-1
- Update to 415.25 release
* Fri Dec 14 2018 Leigh Scott <[email protected]> - 3:415.23-1
- Update to 415.23 release
* Fri Dec 07 2018 Leigh Scott <[email protected]> - 3:415.22-1
- Update to 415.22 release
* Wed Nov 21 2018 Leigh Scott <[email protected]> - 3:415.18-1
- Update to 415.18 release
* Fri Nov 16 2018 Leigh Scott <[email protected]> - 3:410.78-1
- Update to 410.78 release
* Thu Oct 25 2018 Leigh Scott <[email protected]> - 3:410.73-1
- Update to 410.73 release
* Tue Oct 16 2018 Leigh Scott <[email protected]> - 3:410.66-1
- Update to 410.66 release
* Thu Sep 20 2018 Leigh Scott <[email protected]> - 3:410.57-1
- Update to 410.57 beta
* Wed Aug 22 2018 Leigh Scott <[email protected]> - 3:396.54-1
- Update to 396.54
* Wed Aug 15 2018 Nicolas Chauvet <[email protected]> - 3:396.51-1
- Bump epoch
* Sat Aug 04 2018 Leigh Scott <[email protected]> - 396.51-1
- Update to 396.51
* Fri Jul 27 2018 RPM Fusion Release Engineering <[email protected]> - 396.45-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Jul 20 2018 Leigh Scott <[email protected]> - 396.45-1
- Update to 396.45
* Fri May 04 2018 Leigh Scott <[email protected]> - 396.24-1
- Update to 396.24
* Thu Mar 29 2018 Leigh Scott <[email protected]> - 390.48-1
- Update to 390.48
* Tue Mar 13 2018 Leigh Scott <[email protected]> - 390.42-1
- Update to 390.42
* Fri Mar 02 2018 RPM Fusion Release Engineering <[email protected]> - 390.25-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Mon Jan 29 2018 Leigh Scott <[email protected]> - 390.25-1
- Update to 390.25
* Thu Jan 11 2018 Leigh Scott <[email protected]> - 390.12-1
- Update to 390.12
- Switch to libtirpc-devel for rpc
* Sat Dec 02 2017 Leigh Scott <[email protected]> - 387.34-1
- Update to 387.34
* Mon Oct 30 2017 Nicolas Chauvet <[email protected]> - 387.22-1
- Update to 387.22
* Tue Sep 26 2017 Leigh Scott <[email protected]> - 384.90-1
- Update to 384.90
* Thu Aug 03 2017 Nicolas Chauvet <[email protected]> - 384.59-1
- Update to 384.59
* Thu Jun 27 2013 Nicolas Chauvet <[email protected]> - 319.32-1
- Initial version