]>
Commit | Line | Data |
---|---|---|
1 | # TODO | |
2 | # - should -libs Require main package? | |
3 | # - solve this (shouldn't there be some obsoletes?): | |
4 | # error: xorg-driver-video-nvidia-169.12-3.i686 (cnfl Mesa-libGL) conflicts with installed Mesa-libGL-7.0.3-2.i686 | |
5 | # error: xorg-driver-video-nvidia-169.12-3.i686 (cnfl Mesa-libGL) conflicts with installed Mesa-libGL-7.0.3-2.i686 | |
6 | # | |
7 | # Conditional build: | |
8 | %bcond_without dist_kernel # without distribution kernel | |
9 | %bcond_without kernel # without kernel packages | |
10 | %bcond_without userspace # don't build userspace programs | |
11 | %bcond_with force_userspace # force userspace build (useful if alt_kernel is set) | |
12 | %bcond_with multigl # package libGL and libglx.so in a way allowing concurrent install with nvidia/fglrx drivers | |
13 | %bcond_with verbose # verbose build (V=1) | |
14 | ||
15 | %if "%{_alt_kernel}" != "%{nil}" | |
16 | %undefine with_userspace | |
17 | %endif | |
18 | %if %{with force_userspace} | |
19 | %define with_userspace 1 | |
20 | %endif | |
21 | %if %{without userspace} | |
22 | # nothing to be placed to debuginfo package | |
23 | %define _enable_debug_packages 0 | |
24 | %endif | |
25 | %define no_install_post_check_so 1 | |
26 | ||
27 | %define rel 7%{?with_multigl:.mgl} | |
28 | %define pname xorg-driver-video-nvidia | |
29 | Summary: Linux Drivers for nVidia GeForce/Quadro Chips | |
30 | Summary(hu.UTF-8): Linux meghajtók nVidia GeForce/Quadro chipekhez | |
31 | Summary(pl.UTF-8): Sterowniki do kart graficznych nVidia GeForce/Quadro | |
32 | Name: %{pname} | |
33 | Version: 285.05.09 | |
34 | Release: %{rel} | |
35 | Epoch: 1 | |
36 | License: nVidia Binary | |
37 | Group: X11 | |
38 | Source0: http://download.nvidia.com/XFree86/Linux-x86/%{version}/NVIDIA-Linux-x86-%{version}.run | |
39 | # Source0-md5: 2d469a90abef50320f548cfa8085e3a0 | |
40 | Source1: http://download.nvidia.com/XFree86/Linux-x86_64/%{version}/NVIDIA-Linux-x86_64-%{version}-no-compat32.run | |
41 | # Source1-md5: 2f4a0e78f5560c07220b7ed6fc1e27aa | |
42 | Source2: %{pname}-xinitrc.sh | |
43 | Source3: gl.pc.in | |
44 | Patch0: X11-driver-nvidia-GL.patch | |
45 | Patch1: X11-driver-nvidia-desktop.patch | |
46 | URL: http://www.nvidia.com/object/unix.html | |
47 | %if %{with kernel} | |
48 | %{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2} | |
49 | %endif | |
50 | BuildRequires: %{kgcc_package} | |
51 | BuildRequires: rpmbuild(macros) >= 1.379 | |
52 | BuildRequires: sed >= 4.0 | |
53 | BuildConflicts: XFree86-nvidia | |
54 | Requires: %{pname}-libs = %{epoch}:%{version}-%{rel} | |
55 | Requires: xorg-xserver-server | |
56 | Requires: xorg-xserver-server(videodrv-abi) <= 11.0 | |
57 | Requires: xorg-xserver-server(videodrv-abi) >= 2.0 | |
58 | Provides: xorg-driver-video | |
59 | Provides: xorg-xserver-module(glx) | |
60 | Obsoletes: XFree86-driver-nvidia | |
61 | Obsoletes: XFree86-nvidia | |
62 | Conflicts: XFree86-OpenGL-devel <= 4.2.0-3 | |
63 | ExclusiveArch: %{ix86} %{x8664} | |
64 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
65 | ||
66 | %define _noautoreqdep libGL.so.1 | |
67 | ||
68 | %description | |
69 | This driver set adds improved 2D functionality to the Xorg X server as | |
70 | well as high performance OpenGL acceleration, AGP support, support for | |
71 | most flat panels, and 2D multiple monitor support. Supported hardware: | |
72 | modern NVIDIA GeForce (from GeForce2 MX) and Quadro (Quadro4 and up) | |
73 | based graphics accelerators. | |
74 | ||
75 | The older graphics chips are unsupported: | |
76 | - NV1 and RIVA 128/128ZX chips are supported in the base Xorg install | |
77 | (nv driver) | |
78 | - TNT/TNT2/GeForce 256/GeForce2 Ultra/Quadro2 are suported by -legacy | |
79 | drivers. | |
80 | ||
81 | %description -l hu.UTF-8 | |
82 | Ez a meghajtó kibővíti az Xorg X szerver 2D működését OpenGL | |
83 | gyorsítással, AGP támogatással és támogatja a több monitort. | |
84 | Támogatott hardverek: modern NVIDIA GeForce (GeForce2 MX-től) és | |
85 | Quadro (Quadro4 és újabbak) alapú grafikai gyorsítók. | |
86 | ||
87 | A régekbbi grafikus chipek nem támogatottak: | |
88 | - NV1 és RIVA 128/128ZX chipek az alap Xorg telepítéssel (nv meghajtó) | |
89 | - TNT/TNT2/GeForce 256/GeForce2 Ultra/Quadro2 a -legacy driverekkel | |
90 | támogatottak. | |
91 | ||
92 | %description -l pl.UTF-8 | |
93 | Usprawnione sterowniki dla kart graficznych nVidia do serwera Xorg, | |
94 | dające wysokowydajną akcelerację OpenGL, obsługę AGP i wielu monitorów | |
95 | 2D. Obsługują w miarę nowe karty NVIDIA GeForce (od wersji GeForce2 | |
96 | MX) oraz Quadro (od wersji Quadro4). | |
97 | ||
98 | Starsze układy graficzne nie są obsługiwane przez ten pakiet: | |
99 | - NV1 i RIVA 128/128ZX są obsługiwane przez sterownik nv z Xorg | |
100 | - TNT/TNT2/GeForce 256/GeForce 2 Ultra/Quadro 2 są obsługiwane przez | |
101 | sterowniki -legacy | |
102 | ||
103 | %package libs | |
104 | Summary: OpenGL (GL and GLX) Nvidia libraries | |
105 | Summary(pl.UTF-8): Biblioteki OpenGL (GL i GLX) Nvidia | |
106 | Group: X11/Development/Libraries | |
107 | Requires(post,postun): /sbin/ldconfig | |
108 | Requires: libvdpau >= 0.3 | |
109 | Provides: OpenGL = 2.1 | |
110 | Provides: OpenGL-GLX = 1.4 | |
111 | %if %{without multigl} | |
112 | Obsoletes: Mesa | |
113 | %endif | |
114 | Obsoletes: X11-OpenGL-core < 1:7.0.0 | |
115 | Obsoletes: X11-OpenGL-libGL < 1:7.0.0 | |
116 | Obsoletes: XFree86-OpenGL-core < 1:7.0.0 | |
117 | Obsoletes: XFree86-OpenGL-libGL < 1:7.0.0 | |
118 | %if %{without multigl} | |
119 | Conflicts: Mesa-libGL | |
120 | %endif | |
121 | ||
122 | %description libs | |
123 | NVIDIA OpenGL (GL and GLX only) implementation libraries. | |
124 | ||
125 | %description libs -l pl.UTF-8 | |
126 | Implementacja OpenGL (tylko GL i GLX) firmy NVIDIA. | |
127 | ||
128 | %package devel | |
129 | Summary: OpenGL (GL and GLX) header files | |
130 | Summary(hu.UTF-8): OpenGL (GL és GLX) fejléc fájlok | |
131 | Summary(pl.UTF-8): Pliki nagłówkowe OpenGL (GL i GLX) | |
132 | Group: X11/Development/Libraries | |
133 | Requires: %{pname}-libs = %{epoch}:%{version}-%{rel} | |
134 | Provides: OpenGL-GLX-devel = 1.4 | |
135 | Provides: OpenGL-devel = 2.1 | |
136 | Obsoletes: X11-OpenGL-devel-base | |
137 | Obsoletes: XFree86-OpenGL-devel-base | |
138 | Obsoletes: XFree86-driver-nvidia-devel | |
139 | Conflicts: XFree86-OpenGL-devel < 4.3.99.902-0.3 | |
140 | ||
141 | %description devel | |
142 | OpenGL header files (GL and GLX only) for NVIDIA OpenGL | |
143 | implementation. | |
144 | ||
145 | %description devel -l hu.UTF-8 | |
146 | OpenGL fejléc fájlok (csak GL és GLX) NVIDIA OpenGL implementációhoz. | |
147 | ||
148 | %description devel -l pl.UTF-8 | |
149 | Pliki nagłówkowe OpenGL (tylko GL i GLX) dla implementacji OpenGL | |
150 | firmy NVIDIA. | |
151 | ||
152 | %package static | |
153 | Summary: Static XvMCNVIDIA library | |
154 | Summary(hu.UTF-8): Statikus XwMCNVIDIA könyvtár | |
155 | Summary(pl.UTF-8): Statyczna biblioteka XvMCNVIDIA | |
156 | Group: X11/Development/Libraries | |
157 | Requires: %{pname}-devel = %{epoch}:%{version}-%{rel} | |
158 | ||
159 | %description static | |
160 | Static XvMCNVIDIA library. | |
161 | ||
162 | %description static -l hu.UTF-8 | |
163 | Statikus XwMCNVIDIA könyvtár. | |
164 | ||
165 | %description static -l pl.UTF-8 | |
166 | Statyczna biblioteka XvMCNVIDIA. | |
167 | ||
168 | %package doc | |
169 | Summary: Documentation for NVIDIA Graphics Driver | |
170 | Group: Documentation | |
171 | ||
172 | %description doc | |
173 | NVIDIA Accelerated Linux Graphics Driver README and Installation | |
174 | Guide. | |
175 | ||
176 | %package progs | |
177 | Summary: Tools for advanced control of nVidia graphic cards | |
178 | Summary(hu.UTF-8): Eszközök az nVidia grafikus kártyák beállításához | |
179 | Summary(pl.UTF-8): Narzędzia do zarządzania kartami graficznymi nVidia | |
180 | Group: Applications/System | |
181 | Requires: %{pname} = %{epoch}:%{version}-%{rel} | |
182 | Suggests: pkgconfig | |
183 | Obsoletes: XFree86-driver-nvidia-progs | |
184 | ||
185 | %description progs | |
186 | Tools for advanced control of nVidia graphic cards. | |
187 | ||
188 | %description progs -l hu.UTF-8 | |
189 | Eszközök az nVidia grafikus kártyák beállításához. | |
190 | ||
191 | %description progs -l pl.UTF-8 | |
192 | Narzędzia do zarządzania kartami graficznymi nVidia. | |
193 | ||
194 | %package -n kernel%{_alt_kernel}-video-nvidia | |
195 | Summary: nVidia kernel module for nVidia Architecture support | |
196 | Summary(de.UTF-8): Das nVidia-Kern-Modul für die nVidia-Architektur-Unterstützung | |
197 | Summary(hu.UTF-8): nVidia Architektúra támogatás Linux kernelhez. | |
198 | Summary(pl.UTF-8): Moduł jądra dla obsługi kart graficznych nVidia | |
199 | Release: %{rel}@%{_kernel_ver_str} | |
200 | Group: Base/Kernel | |
201 | Requires(post,postun): /sbin/depmod | |
202 | Requires: dev >= 2.7.7-10 | |
203 | %{?with_dist_kernel:%requires_releq_kernel} | |
204 | Requires: %{pname} = %{epoch}:%{version}-%{rel} | |
205 | Provides: X11-driver-nvidia(kernel) | |
206 | Obsoletes: XFree86-nvidia-kernel | |
207 | ||
208 | %description -n kernel%{_alt_kernel}-video-nvidia | |
209 | nVidia Architecture support for Linux kernel. | |
210 | ||
211 | %description -n kernel%{_alt_kernel}-video-nvidia -l de.UTF-8 | |
212 | Die nVidia-Architektur-Unterstützung für den Linux-Kern. | |
213 | ||
214 | %description -n kernel%{_alt_kernel}-video-nvidia -l hu.UTF-8 | |
215 | nVidia Architektúra támogatás Linux kernelhez. | |
216 | ||
217 | %description -n kernel%{_alt_kernel}-video-nvidia -l pl.UTF-8 | |
218 | Obsługa architektury nVidia dla jądra Linuksa. Pakiet wymagany przez | |
219 | sterownik nVidii dla Xorg/XFree86. | |
220 | ||
221 | %prep | |
222 | cd %{_builddir} | |
223 | rm -rf NVIDIA-Linux-x86*-%{version}* | |
224 | %ifarch %{ix86} | |
225 | /bin/sh %{SOURCE0} --extract-only | |
226 | %setup -qDT -n NVIDIA-Linux-x86-%{version} | |
227 | %else | |
228 | /bin/sh %{SOURCE1} --extract-only | |
229 | %setup -qDT -n NVIDIA-Linux-x86_64-%{version}-no-compat32 | |
230 | %endif | |
231 | %patch0 -p1 | |
232 | %patch1 -p1 | |
233 | echo 'EXTRA_CFLAGS += -Wno-pointer-arith -Wno-sign-compare -Wno-unused' >> kernel/Makefile.kbuild | |
234 | ||
235 | %build | |
236 | %if %{with kernel} | |
237 | cd kernel | |
238 | ln -sf Makefile.kbuild Makefile | |
239 | cat >> Makefile <<'EOF' | |
240 | ||
241 | $(obj)/nv-kernel.o: $(src)/nv-kernel.o.bin | |
242 | cp $< $@ | |
243 | EOF | |
244 | mv nv-kernel.o{,.bin} | |
245 | %build_kernel_modules -m nvidia | |
246 | %endif | |
247 | ||
248 | %install | |
249 | rm -rf $RPM_BUILD_ROOT | |
250 | ||
251 | %if %{with userspace} | |
252 | install -d $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{drivers,extensions} \ | |
253 | $RPM_BUILD_ROOT{%{_includedir}/GL,%{_libdir}/vdpau,%{_bindir},%{_mandir}/man1} \ | |
254 | $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},/etc/X11/xinit/xinitrc.d} \ | |
255 | $RPM_BUILD_ROOT%{_sysconfdir}/OpenCL/vendors | |
256 | ||
257 | %if %{with multigl} | |
258 | install -d $RPM_BUILD_ROOT{%{_libdir}/nvidia,%{_sysconfdir}/ld.so.conf.d} | |
259 | %endif | |
260 | ||
261 | install -p nvidia-{settings,smi,xconfig,bug-report.sh} $RPM_BUILD_ROOT%{_bindir} | |
262 | cp -p nvidia-{settings,smi,xconfig}.* $RPM_BUILD_ROOT%{_mandir}/man1 | |
263 | cp -p nvidia-settings.desktop $RPM_BUILD_ROOT%{_desktopdir} | |
264 | cp -p nvidia-settings.png $RPM_BUILD_ROOT%{_pixmapsdir} | |
265 | install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/nvidia-settings.sh | |
266 | install -p nvidia.icd $RPM_BUILD_ROOT%{_sysconfdir}/OpenCL/vendors | |
267 | ||
268 | %if %{without multigl} | |
269 | install -p libGL.so.%{version} $RPM_BUILD_ROOT%{_libdir} | |
270 | %else | |
271 | install -p libGL.so.%{version} $RPM_BUILD_ROOT%{_libdir}/nvidia | |
272 | %endif | |
273 | ||
274 | for f in \ | |
275 | libOpenCL.so.1.0.0 \ | |
276 | libXvMCNVIDIA.so.%{version} \ | |
277 | libcuda.so.%{version} \ | |
278 | libnvcuvid.so.%{version} \ | |
279 | libnvidia-cfg.so.%{version} \ | |
280 | libnvidia-compiler.so.%{version} \ | |
281 | libnvidia-glcore.so.%{version} \ | |
282 | libnvidia-ml.so.%{version} \ | |
283 | tls/libnvidia-tls.so.%{version} \ | |
284 | ; do | |
285 | install -p $f $RPM_BUILD_ROOT%{_libdir} | |
286 | done | |
287 | ||
288 | /sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir} | |
289 | ||
290 | cp -a libXvMCNVIDIA.a $RPM_BUILD_ROOT%{_libdir} | |
291 | install -p libvdpau_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/vdpau | |
292 | ||
293 | install -p libglx.so.%{version} \ | |
294 | $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions | |
295 | install -p nvidia_drv.so \ | |
296 | $RPM_BUILD_ROOT%{_libdir}/xorg/modules/drivers/nvidia_drv.so.%{version} | |
297 | install -p libnvidia-wfb.so.%{version} \ | |
298 | $RPM_BUILD_ROOT%{_libdir}/xorg/modules | |
299 | ||
300 | cp -p gl*.h $RPM_BUILD_ROOT%{_includedir}/GL | |
301 | ||
302 | ln -sf libglx.so.%{version} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/libglx.so | |
303 | ln -sf nvidia_drv.so.%{version} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/drivers/nvidia_drv.so | |
304 | ln -sf libvdpau_nvidia.so.%{version} $RPM_BUILD_ROOT%{_libdir}/vdpau/libvdpau_nvidia.so.1 | |
305 | ||
306 | %if %{with multigl} | |
307 | echo %{_libdir}/nvidia >$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/nvidia.conf | |
308 | ||
309 | # OpenGL ABI for Linux compatibility | |
310 | ln -sf libGL.so.%{version} $RPM_BUILD_ROOT%{_libdir}/nvidia/libGL.so.1 | |
311 | ln -sf nvidia/libGL.so.1 $RPM_BUILD_ROOT%{_libdir}/libGL.so | |
312 | %else | |
313 | # OpenGL ABI for Linux compatibility | |
314 | ln -sf libGL.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libGL.so.1 | |
315 | ln -sf libGL.so.1 $RPM_BUILD_ROOT%{_libdir}/libGL.so | |
316 | %endif | |
317 | ||
318 | ln -sf libOpenCL.so.1.0.0 $RPM_BUILD_ROOT%{_libdir}/libOpenCL.so.1 | |
319 | ln -sf libOpenCL.so.1 $RPM_BUILD_ROOT%{_libdir}/libOpenCL.so | |
320 | ||
321 | ln -sf libXvMCNVIDIA.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libXvMCNVIDIA_dynamic.so.1 | |
322 | ln -sf libXvMCNVIDIA_dynamic.so.1 $RPM_BUILD_ROOT%{_libdir}/libXvMCNVIDIA.so | |
323 | ||
324 | ln -sf libcuda.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libcuda.so.1 | |
325 | ln -sf libcuda.so.1 $RPM_BUILD_ROOT%{_libdir}/libcuda.so | |
326 | ||
327 | ln -sf libnvcuvid.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libnvcuvid.so.1 | |
328 | ln -sf libnvcuvid.so.1 $RPM_BUILD_ROOT%{_libdir}/libnvcuvid.so | |
329 | %endif | |
330 | ||
331 | %if %{with kernel} | |
332 | %install_kernel_modules -m kernel/nvidia -d misc | |
333 | %endif | |
334 | ||
335 | install -d $RPM_BUILD_ROOT%{_pkgconfigdir} | |
336 | sed -e ' | |
337 | s|@@prefix@@|%{_prefix}|g; | |
338 | s|@@libdir@@|%{_libdir}|g; | |
339 | s|@@includedir@@|%{_includedir}|g; | |
340 | s|@@version@@|%{version}|g' < %{SOURCE3} \ | |
341 | > $RPM_BUILD_ROOT%{_pkgconfigdir}/gl.pc | |
342 | ||
343 | %clean | |
344 | rm -rf $RPM_BUILD_ROOT | |
345 | ||
346 | %post | |
347 | cat << 'EOF' | |
348 | NOTE: You must also install kernel module for this driver to work | |
349 | kernel-video-nvidia-%{version} | |
350 | ||
351 | EOF | |
352 | # until versioned SONAME is built for nvidia_drv.so, update symlink manually | |
353 | ln -sf nvidia_drv.so.%{version} %{_libdir}/xorg/modules/drivers/nvidia_drv.so | |
354 | %if %{with multigl} | |
355 | if [ ! -e %{_libdir}/xorg/modules/extensions/libglx.so ]; then | |
356 | /sbin/ldconfig -N %{_libdir}/xorg/modules/extensions | |
357 | ln -sf libglx.so.%{version} %{_libdir}/xorg/modules/extensions/libglx.so | |
358 | fi | |
359 | %else | |
360 | /sbin/ldconfig -N %{_libdir}/xorg/modules/extensions | |
361 | ln -sf libglx.so.%{version} %{_libdir}/xorg/modules/extensions/libglx.so | |
362 | %endif | |
363 | ||
364 | %post libs | |
365 | /sbin/ldconfig | |
366 | /sbin/ldconfig -N %{_libdir}/vdpau | |
367 | ||
368 | %postun libs | |
369 | /sbin/ldconfig | |
370 | /sbin/ldconfig -N %{_libdir}/vdpau | |
371 | ||
372 | %post -n kernel%{_alt_kernel}-video-nvidia | |
373 | %depmod %{_kernel_ver} | |
374 | ||
375 | %postun -n kernel%{_alt_kernel}-video-nvidia | |
376 | %depmod %{_kernel_ver} | |
377 | ||
378 | %if %{with userspace} | |
379 | %files | |
380 | %defattr(644,root,root,755) | |
381 | %doc LICENSE NVIDIA_Changelog README.txt | |
382 | %attr(755,root,root) %{_libdir}/xorg/modules/libnvidia-wfb.so.*.* | |
383 | %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libglx.so.* | |
384 | %attr(755,root,root) %ghost %{_libdir}/xorg/modules/extensions/libglx.so | |
385 | %attr(755,root,root) %{_libdir}/xorg/modules/drivers/nvidia_drv.so.*.* | |
386 | %attr(755,root,root) %ghost %{_libdir}/xorg/modules/drivers/nvidia_drv.so | |
387 | ||
388 | %files libs | |
389 | %defattr(644,root,root,755) | |
390 | %dir %{_sysconfdir}/OpenCL | |
391 | %dir %{_sysconfdir}/OpenCL/vendors | |
392 | %{_sysconfdir}/OpenCL/vendors/nvidia.icd | |
393 | %if %{with multigl} | |
394 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ld.so.conf.d/nvidia.conf | |
395 | %dir %{_libdir}/nvidia | |
396 | %attr(755,root,root) %{_libdir}/nvidia/libGL.so.*.* | |
397 | %attr(755,root,root) %ghost %{_libdir}/nvidia/libGL.so.1 | |
398 | %else | |
399 | %attr(755,root,root) %{_libdir}/libGL.so.*.* | |
400 | %attr(755,root,root) %ghost %{_libdir}/libGL.so.1 | |
401 | # symlink for binary apps which fail to conform Linux OpenGL ABI | |
402 | # (and dlopen libGL.so instead of libGL.so.1) | |
403 | %attr(755,root,root) %{_libdir}/libGL.so | |
404 | %endif | |
405 | %attr(755,root,root) %{_libdir}/libOpenCL.so | |
406 | %attr(755,root,root) %{_libdir}/libOpenCL.so.*.* | |
407 | %attr(755,root,root) %ghost %{_libdir}/libOpenCL.so.1 | |
408 | %attr(755,root,root) %{_libdir}/libXvMCNVIDIA.so | |
409 | %attr(755,root,root) %{_libdir}/libXvMCNVIDIA.so.*.* | |
410 | %attr(755,root,root) %ghost %{_libdir}/libXvMCNVIDIA_dynamic.so.1 | |
411 | %attr(755,root,root) %{_libdir}/libcuda.so | |
412 | %attr(755,root,root) %ghost %{_libdir}/libcuda.so.1 | |
413 | %attr(755,root,root) %{_libdir}/libcuda.so.*.* | |
414 | %attr(755,root,root) %{_libdir}/libnvcuvid.so | |
415 | %attr(755,root,root) %ghost %{_libdir}/libnvcuvid.so.1 | |
416 | %attr(755,root,root) %{_libdir}/libnvcuvid.so.*.* | |
417 | %attr(755,root,root) %{_libdir}/libnvidia-cfg.so.*.* | |
418 | %attr(755,root,root) %ghost %{_libdir}/libnvidia-cfg.so.1 | |
419 | %attr(755,root,root) %{_libdir}/libnvidia-compiler.so.*.* | |
420 | %attr(755,root,root) %{_libdir}/libnvidia-glcore.so.*.* | |
421 | %attr(755,root,root) %{_libdir}/libnvidia-ml.so.*.* | |
422 | %attr(755,root,root) %ghost %{_libdir}/libnvidia-ml.so.1 | |
423 | %attr(755,root,root) %{_libdir}/libnvidia-tls.so.*.* | |
424 | %attr(755,root,root) %{_libdir}/vdpau/libvdpau_nvidia.so.*.* | |
425 | %attr(755,root,root) %ghost %{_libdir}/vdpau/libvdpau_nvidia.so.1 | |
426 | ||
427 | %files devel | |
428 | %defattr(644,root,root,755) | |
429 | %dir %{_includedir}/GL | |
430 | %{_includedir}/GL/gl.h | |
431 | %{_includedir}/GL/glext.h | |
432 | %{_includedir}/GL/glx.h | |
433 | %{_includedir}/GL/glxext.h | |
434 | %if %{with multigl} | |
435 | %attr(755,root,root) %{_libdir}/libGL.so | |
436 | %endif | |
437 | %{_pkgconfigdir}/gl.pc | |
438 | ||
439 | %files static | |
440 | %defattr(644,root,root,755) | |
441 | %{_libdir}/libXvMCNVIDIA.a | |
442 | ||
443 | %files doc | |
444 | %defattr(644,root,root,755) | |
445 | %doc html/* | |
446 | ||
447 | %files progs | |
448 | %defattr(644,root,root,755) | |
449 | %attr(755,root,root) %{_bindir}/nvidia-bug-report.sh | |
450 | %attr(755,root,root) %{_bindir}/nvidia-settings | |
451 | %attr(755,root,root) %{_bindir}/nvidia-smi | |
452 | %attr(755,root,root) %{_bindir}/nvidia-xconfig | |
453 | %attr(755,root,root) /etc/X11/xinit/xinitrc.d/*.sh | |
454 | %{_desktopdir}/nvidia-settings.desktop | |
455 | %{_mandir}/man1/nvidia-* | |
456 | %{_pixmapsdir}/nvidia-settings.png | |
457 | %endif | |
458 | ||
459 | %if %{with kernel} | |
460 | %files -n kernel%{_alt_kernel}-video-nvidia | |
461 | %defattr(644,root,root,755) | |
462 | /lib/modules/%{_kernel_ver}/misc/*.ko* | |
463 | %endif |