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